VeriGrey:灰盒代理验证
VeriGrey: Greybox Agent Validation
AI总结:
本文提出VeriGrey方法,通过工具调用序列反馈函数驱动测试过程,发现LLM代理中隐含的提示注入漏洞,并在实际案例中验证其有效性。
摘要:
Agentic AI近年来备受关注。一个大语言模型(LLM)代理通常包含一个或多个LLM在后台。前端通过结合LLM输出和调用外部工具的结果进行自主决策。与外部环境的自主交互引入了关键的安全风险。本文提出一种灰盒方法,探索LLM代理的多样化行为并发现安全风险。我们的方法VeriGrey利用调用的工具序列作为反馈函数来驱动测试过程。这有助于发现不频繁但危险的工具调用,导致意外代理行为。作为测试过程中的变异操作符,我们通过将代理任务与注入任务联系起来,使注入任务成为完成代理功能的必要步骤。在著名的AgentDojo基准上,与黑盒基线相比,VeriGrey在使用GPT-4.1后台时发现了33%额外的间接提示注入漏洞。我们还对广泛使用的编码代理Gemini CLI和著名的OpenClaw个人助手进行了实际案例研究。VeriGrey发现了无法被黑盒方法识别的多个攻击场景。在OpenClaw中,通过构建一个需要进行突变模糊测试的对话代理,VeriGrey能够从10个恶意技能中发现恶意技能变体,在Kimi-K2.5 LLM后端实现100%的成功率,在Opus 4.6 LLM后端实现90%的成功率。这证明了类似VeriGrey的动态方法在测试代理和最终建立代理保证框架中的价值。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。