AgentAuditor: Human-Level Safety and Security Evaluation for LLM Agents

Han-Jun Luo, Shenyu Dai, Chiming Ni, Xin-Feng Li, Gui-Min Zhang +3 more
6/1/2025

No confident code implementation found for this paper.

Abstract

Despite the rapid advancement of LLM-based agents, the reliable evaluation of their safety and security remains a significant challenge. Existing rule-based or LLM-based evaluators often miss dangers in agents'step-by-step actions, overlook subtle meanings, fail to see how small issues compound, and get confused by unclear safety or security rules.

Show full abstract

To overcome this evaluation crisis, we introduce AgentAuditor, a universal, training-free, memory-augmented reasoning framework that empowers LLM evaluators to emulate human expert evaluators. AgentAuditor constructs an experiential memory by having an LLM adaptively extract structured semantic features (e.g., scenario, risk, behavior) and generate associated chain-of-thought reasoning traces for past interactions. A multi-stage, context-aware retrieval-augmented generation process then dynamically retrieves the most relevant reasoning experiences to guide the LLM evaluator's assessment of new cases. Moreover, we developed ASSEBench, the first benchmark designed to check how well LLM-based evaluators can spot both safety risks and security threats. ASSEBench comprises 2293 meticulously annotated interaction records, covering 15 risk types across 29 application scenarios. A key feature of ASSEBench is its nuanced approach to ambiguous risk situations, employing"Strict"and"Lenient"judgment standards. Experiments demonstrate that AgentAuditor not only consistently improves the evaluation performance of LLMs across all benchmarks but also sets a new state-of-the-art in LLM-as-a-judge for agent safety and security, achieving human-level accuracy. Our work is openly accessible at https://github.com/Astarojth/AgentAuditor.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{luo2025agentauditor,
  title  = {AgentAuditor: Human-Level Safety and Security Evaluation for LLM Agents},
  author = {Han-Jun Luo and Shenyu Dai and Chiming Ni and Xin-Feng Li and Gui-Min Zhang and Kun Wang and Tongliang Liu and H. Salam},
  year   = {2025},
  eprint = {2506.00641},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2506.00641},
  url    = {https://doi.org/10.48550/arXiv.2506.00641},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.00641.svg)](https://codeofpaper.com/paper/2506.00641)

Discussion