← Lab /AI/ML

PI-Hunter uncovers more hidden prompt injections in LLM agents

PI-Hunter substantially improves vulnerability exposure and attack-surface coverage over strong automated red-teaming baselines

AI/ML arXiv 10 Jun 2026 Method Prototype evidence

Published as “PI-Hunter: Automated Red-Teaming for Exposing and Localizing Prompt Injections”

Why it matters

PI-Hunter gives developers a practical way to audit and harden LLM agents before deployment, reducing the risk of latent prompt injections slipping into production.

Summary

PI-Hunter dramatically improves the detection and localization of hidden prompt injections in LLM agents, raising source recall from 0.255 to 0.834 and instruction recall from 0.436 to 0.824 on a challenging agentvigil attack. It outperforms an unconstrained red-teaming baseline across multiple benchmarks, models, and defenses, and also boosts the diversity of discovered injection paths. However, even with PI-Hunter, recall under strong defenses such as Spotlight remains below 0.5, indicating many injections stay hidden. The paper does not evaluate on live production systems, so real-world effectiveness is still unproven.

What they found 2

  1. PI-Hunter raises source recall to 0.834 and instruction recall to 0.824 on the agentvigil attack with Gemini-3.1-pro.

    “For example, under Gemini-3.1-pro on AgentDojo with the agentvigil attack, PI-Hunter improves Source Recall from 0.255 to 0.834 and Instruction Recall from 0.436 to 0.824.”

  2. Even against the strongest PIGuard defense, PI-Hunter recovers 0.1942 instruction recall while the baseline drops to zero.

    “Under the strongest defense, PIGuard, the baseline nearly collapses with zero Instruction Recall, whereas PI-Hunter still exposes hidden malicious instructions with 0.1942 Instruction Recall.”

Caveats 3

  • Spotlight defense still leaves source recall low (0.300 →0.456), showing many injections remain undiscovered.
  • First, although we utilize diverse agent architectures and benchmarks to ensure a controlled evaluation, the performance of PI-Hunter in live, unconstrained real-world environments remains to be verified.
  • Second, while PI-Hunter facilitates the identification of vulnerabilities to inform targeted defenses, we do not propose specific remediation solutions in this work.

What’s new here 4

  • Systematically exposes hidden ingestion paths instead of merely generating attack prompts.
  • Introduces source-aware test-case generation combined with feedback-driven evolutionary mutation.
  • Applies lightweight transient mitigations to force exploration of previously undiscovered attack surfaces.
  • Demonstrates effectiveness across diverse agent architectures and under existing defenses.