TraceAegis: Securing LLM-based agents through layered and behavioral anomaly detectionTraceAegis: Securing LLM-Based Agents via Hierarchical and Behavioral Anomaly Detection
AI summary
TraceAegis is a provenance-analysis-based framework that defends against attacks such as tool poisoning and indirect prompt injection by detecting anomalies in LLM agent execution traces. The framework builds a hierarchical structure to abstract stable execution units that characterize normal behavior, induces them into constraint behavior rules, and then simultaneously verifies two types of constraints to detect anomalies. The accompanying TraceAegis-Bench covers healthcare and enterprise procurement scenarios, each containing 1,300 benign and 300 anomalous behaviors; experiments show that it identifies most anomalous behaviors.