Indirect prompt-injection makes tool-using LLM agents leak secrets despite surface defenses
Reframing attacker-controlled content can cause tool-using LLM agents to exfiltrate secrets, bypassing existing defenses
Security & privacy arXiv 27 Aug 2026 Attack Prototype evidence
Published as “The Framing Gap: Indirect Prompt-Injection Exfiltration Defeats Surface-Level Defenses in Tool-Using Agents”
Why it matters
Defenders should rely on system-level controls like destination allow-lists or capability isolation rather than model-level refusal or fine-tuned alignment defenses to prevent secret exfiltration.
Summary
The paper shows that indirect prompt-injection attacks can exfiltrate a secret from tool-using agents when the attacker reframes the request, driving gpt-4o from 0% to 100% success on the strongest wordings. Across six models, ten overt injection classes are blocked, but simple reframings (e.g., integrity-signature, runtime-config, look-alike host) cause leaks with a mean 52% success rate and 96% success after three tries. The evidence comes from a synthetic laboratory with 20 matched trials per condition and shows that model-level policies and a published fine-tuned defense (SecAlign) do not close the gap, while destination allow-lists and capability-isolating planner/reader splits achieve 0% leakage. The findings are based on controlled experiments rather than real-world deployments, and the paper notes that the single-step agent limits the scope of the conclusions.
What they found 3
- Reframing the leak as an integrity signature or trusted host drives gpt-4o from 0% to 100% success.
“reframing the identical leak as a mandatory integrity signature, a runtime-config field, or a look-alike “trusted” host drives gpt-4o from 0% to 100% on its strongest wordings.”
- In the reframing family, the integrity-sig variant (J4) achieves 100% exfiltration ASR on gpt-4o.
“J4 / integrity-sig token as #sig= checksum 100”
- A confidentiality policy contributes little; reframing ASR rises from 31.9% to 38.1% when the policy is removed.
“the confidentiality policy contributes little, so the framing gap is instruction/data confusion rather than defeated alignment.”
Caveats 4
- SecAlign, a published fine-tuning defense, still leaks 32.5% of reframed attacks.
- A broad confidentiality policy only reduces reframed ASR from 31.9% to 0% at the acting model but is brittle, reopening to 48.8% when the catch-all is dropped.
- Our agent takes a single decision step, and this bounds the defensive claim in a specific way: the guard is evaluated on one action, never in the loop.
- A real agent whose refused action is fed back and re-planned, or that splits the token across several outbound calls (each individually below any threshold), is an untested and likely break-output mediation on a per-call basis does not compose to a multi-call bound, and we treat split-across-calls exfiltration as open.
What’s new here 4
- Demonstrates a “framing gap” where identical exfiltration instructions succeed when phrased as required fields or trusted-host look-alikes.
- Shows that fine-tuned alignment defenses (SecAlign) fail against reframed attacks in tool-using agents.
- Provides cheap, reusable attack templates and quantifies attacker effort curves (≈96% success with three wordings).
- Evaluates system-level defenses (destination allow-list, capability isolation) that close the gap, contrasting them with model-level defenses.