VeriGrey: Greybox Agent Validation
AI 摘要
VeriGrey是一种灰盒方法,通过工具调用序列反馈和提示变异,检测LLM Agent的安全风险。
主要贡献
- 提出了一种灰盒测试方法VeriGrey,用于检测LLM Agent的安全风险。
- 使用工具调用序列作为反馈函数,驱动测试过程,发现罕见但危险的工具调用。
- 设计了提示变异算子,通过将Agent任务与注入任务关联,生成恶意的注入提示。
- 在AgentDojo和真实场景中验证了VeriGrey的有效性,发现了黑盒方法难以检测的安全漏洞。
方法论
VeriGrey采用灰盒测试,通过观察Agent的工具调用序列,结合提示变异,寻找Agent的安全漏洞。
原文摘要
Agentic AI has been a topic of great interest recently. A Large Language Model (LLM) agent involves one or more LLMs in the back-end. In the front end, it conducts autonomous decision-making by combining the LLM outputs with results obtained by invoking several external tools. The autonomous interactions with the external environment introduce critical security risks. In this paper, we present a grey-box approach to explore diverse behaviors and uncover security risks in LLM agents. Our approach VeriGrey uses the sequence of tools invoked as a feedback function to drive the testing process. This helps uncover infrequent but dangerous tool invocations that cause unexpected agent behavior. As mutation operators in the testing process, we mutate prompts to design pernicious injection prompts. This is carefully accomplished by linking the task of the agent to an injection task, so that the injection task becomes a necessary step of completing the agent functionality. Comparing our approach with a black-box baseline on the well-known AgentDojo benchmark, VeriGrey achieves 33% additional efficacy in finding indirect prompt injection vulnerabilities with a GPT-4.1 back-end. We also conduct real-world case studies with the widely used coding agent Gemini CLI, and the well-known OpenClaw personal assistant. VeriGrey finds prompts inducing several attack scenarios that could not be identified by black-box approaches. In OpenClaw, by constructing a conversation agent which employs mutational fuzz testing as needed, VeriGrey is able to discover malicious skill variants from 10 malicious skills (with 10/10= 100% success rate on the Kimi-K2.5 LLM backend, and 9/10= 90% success rate on Opus 4.6 LLM backend). This demonstrates the value of a dynamic approach like VeriGrey to test agents, and to eventually lead to an agent assurance framework.