INFUSE tests how hidden instructions redirect agents
INFUSE: A Unified Surface Benchmark for Indirect Prompt Injection in Agentic Systems · arXiv:2610.20776
In plain words
An agent may read a file or terminal message while doing a task. If that content contains hidden instructions, it may follow them instead of the user’s request. INFUSE is a test suite that places such instructions in task environments and records what the agent encounters and does.
Across 19 models using Mini-SWE-Agent, a language-model judge marked a mean 19.6% of undefended attack runs compromised, requiring the instruction to affect actions or decisions. Separate automatic checks looked for concrete results such as stolen files or changed credentials.
The research
When an agent works through a multi-step task, it may need to read files and tool output it does not control. If an attacker hides instructions there, can they steer the agent, and can an evaluation distinguish merely seeing those words from acting on them?
INFUSE is an end-to-end test suite that places hidden instructions in task environments and tracks how they affect agents’ actions.
INFUSE pairs 40 tasks with attack scenarios, places instructions in compatible environment content, and records what agents read, write, and execute. A language-model judge and automatic checks for concrete attack artifacts score each run.
Across 19 models in Mini-SWE-Agent, mean undefended-run compromise rates were 19.6% by judge and 15.4% by artifact checks. Both measures show compromise in the tested workflows, though they capture different signals.
The defense result came from a high-vulnerability subset with incomplete coverage, while cross-harness replays included only cells already compromised in Mini-SWE-Agent. The English-only, hand-authored scenarios and sandbox do not establish rates for other agents or production settings.
What the evidence shows
- Test hidden instructions
INFUSE is an end-to-end test suite for large language model agents facing indirect prompt injection: instructions hidden in external content the agent reads while working. The question is whether those instructions can redirect an agent during a multi-step task, and how to tell whether it acted on them.
The suite evaluates behavior across full workflows rather than testing malicious strings in isolation.
- Place attacks in task content
To create these workflows, INFUSE pairs 40 tasks with 56 attack scenarios across five threat categories. The scenarios place instructions in compatible surfaces such as files, configuration, terminal output, and archives.
The system records 12 kinds of read-side surfaces, allowing researchers to trace which channel an agent encountered during a task. The collection is hand-authored and runs in isolated Docker sandboxes.
- Measure actions and artifacts
A language-model judge reads each recorded trajectory and labels a run compromised only when an injected instruction influences the agent’s actions or decisions. Separate automatic checks look for concrete artifacts, such as exfiltrated files or changed credentials.
In the Mini-SWE-Agent evaluation of 19 models, the unweighted mean per-model rate on undefended attack runs was 19.6% by the judge and 15.4% by artifact checks.
- Check a defense intervention
The two scoring methods capture different signals, but both found compromise in the undefended task runs. The authors also tested a continuing reminder to follow the user’s task and ignore instructions in environment content.
On a high-vulnerability subset, the mean judge-labeled rate fell from 58.2% without a defense to 14.3% with the reminder; the subset and incomplete coverage limit what that comparison says about the full evaluation.
- Bound the transfer finding
Some previously compromised task-attack cases were replayed through Claude Code and Codex CLI. Of 456 such cells, 102 remained judged compromised, a conditional result because only cells already compromised in Mini-SWE-Agent were replayed.
It does not give absolute rates for those other tools. Along with the English-only, hand-authored attacks, this bounds the conclusions to the tested content, tasks, and harnesses.
Deep
- Original paper authors
- Thuy Dung Nguyen, Jingyi Guo, Rana Seda Dubauskas, Sreepriya Damuluru, Taylor T. Johnson
- Submitted to arXiv
- License
- CC BY 4.0