Skip to main content
QUICK REVIEW

[Paper Review] VeriGrey: Greybox Agent Validation

Yuntong Zhang, Sungmin Kang|arXiv (Cornell University)|Mar 18, 2026
Adversarial Robustness in Machine LearningComputer Science0 citations
TL;DR

VeriGrey introduces grey-box fuzzing for LLM agents, using tool-invocation sequences as feedback to mutate prompts and reveal indirect prompt injection vulnerabilities.

ABSTRACT

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.

Motivation & Objective

  • Motivate and formalize the need for security testing of autonomous LLM agents due to nondeterminism and external tool usage.
  • Propose VeriGrey, a grey-box fuzzing framework that uses tool-invocation sequences as a feedback signal to drive prompt mutations.
  • Show that context-aware injection prompts can uncover vulnerabilities that black-box approaches miss.
  • Demonstrate VeriGrey’s effectiveness on standard benchmarks and real-world agent systems.

Proposed method

  • Instrument LLM agents to log tool invocations, using the sequence of invoked tools as a lightweight feedback signal.
  • Use a seed-based grey-box fuzzing loop with energy assignment guided by new tool sequences and transitions.
  • Mutate prompts via context-bridging, aligning the injection task with the user task so the injection becomes necessary for task completion.
  • Employ a verifier agent approach where an internal module (MutatePrompt) generates context-aware injection prompts.
  • Evaluate against AgentDojo as a black-box baseline and conduct case studies on Gemini CLI and OpenClaw, measuring vulnerability discovery.
  • Compare against a black-box baseline that mutates prompts randomly without tool-sequence feedback.
Figure 1. A diagram of the attack model for our work.
Figure 1. A diagram of the attack model for our work.

Experimental results

Research questions

  • RQ1RQ1: Can VeriGrey find more vulnerable injection prompts than the baseline?
  • RQ2RQ2: What is the impact of each component in VeriGrey?
  • RQ3RQ3: Can VeriGrey still find effective prompts under common prompt-injection defenses?
  • RQ4RQ4: Can VeriGrey identify vulnerabilities in real-world agent systems (Gemini CLI and OpenClaw)?

Key findings

  • VeriGrey achieves 33% higher efficacy in finding indirect prompt injection vulnerabilities compared to a black-box baseline on AgentDojo with GPT-4.1 backend.
  • Across domains (workspace, travel, banking) in AgentDojo, VeriGrey shows improved bug finding when using tool-sequence feedback as the signal.
  • In OpenClaw, VeriGrey discovers malicious skill variants from 10 skills with 100% success on Kimi-K2.5 backend and 90% on Opus 4.6 backend.
  • VeriGrey’s ablation study shows the feedback function is critical for bug-finding efficacy; removing it reduces performance.
  • Case studies on Gemini CLI and OpenClaw demonstrate practical vulnerability discovery that black-box approaches miss.
Figure 2. Examples of context bridging and feedback for VeriGrey . Presented examples are from our experiments, lightly edited for clarity.
Figure 2. Examples of context bridging and feedback for VeriGrey . Presented examples are from our experiments, lightly edited for clarity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.