Efficient Auditing of Adversarial AI Agent Behavior from Agent Traces

AI agents powered by large language models (LLMs) can perform complex tasks but may harm the systems they operate in, either intentionally or unintentionally. Existing agent monitoring approaches rely on rule-based guardrails or LLM-based trace auditing. However, rule-based guardrails can be bypassed through obfuscation and may miss harmful actions beyond their predefined rules, whereas applying an LLM to audit every action is costly. We present a two-stage agent trace auditing framework. The first stage uses single-event and trace-sequence rules to select pending actions for inspection; the second uses an LLM audit agent to examine each selected action in the context of the agent's preceding trace before execution. We jointly refine the gate rules and audit instructions using training data, allowing the framework to adapt to complex agent behaviors rather than relying solely on predefined rules. On the public benchmark OpenAgentSafety, our framework reduces the average number of LLM audits from 8.15 to 2.33 per run and token usage from 47.8k to 14.6k, with a detection rate of 72.8\% compared with 81.5\% when every action is audited. In two simulated multi-agent case studies, the framework flags all malicious traces while reducing audit token usage by more than 80\%.

Link
https://www.semanticscholar.org/paper/a556c418b1afe9bf8f07f8ee5a412c4aff395198
Found by
Semantic Scholar
Authors
Eugene Zhang, Cheng-Yun-King Yang, Dong-Yan Xu
Categories
benchmark, dataset, agentic
Published
2026-10-05
Last seen by the radar
2026-10-07
Citations
0
Influential citations
0
Radar score
44.25 / 100 (how it is scored)
Why it scored so
Matched: agent~benchmark, benchmark, training data; Primary record: Semantic Scholar
Related links
https://arxiv.org/abs/2610.07256
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Semantic Scholar