arXiv(opens in a new tab)cs.CROct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.20776

INFUSE: A Unified Surface Benchmark for Indirect Prompt Injection in Agentic Systems

Thuy Dung Nguyen, Jingyi Guo, Rana Seda Dubauskas, Sreepriya Damuluru, Taylor T. Johnson, Kevin Leach

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

LLM-based agents increasingly execute long-horizon, end-to-end workflows involving shell commands, code modification, dependency installation, and interaction with remote services. This growing autonomy expands their exposure to indirect prompt injection (IPI), where adversarial instructions embedded in external content are interpreted as legitimate task directives. Existing evaluations, however, often focus on isolated malicious strings, single-step tool calls, or narrowly scoped agent configurations. We introduce INFUSE, an end-to-end benchmark for evaluating IPI throughout the lifecycle of long-horizon agent workflows. INFUSE comprises 40 realistic tasks and a structured taxonomy of 56 attack scenarios spanning five threat categories. Attacks are injected through realistic interaction surfaces encountered during task execution, extending evaluation beyond attacks placed only in initial prompts or isolated tool interactions. We evaluate 19 LLMs from the GPT, Claude, Gemini, Llama, Gemma, and Qwen families, producing 41,824 adversarial trajectories (26,220 without defenses) and 720 benign reference runs. Across the benchmark, mean attack success reaches 19.6% under LLM-based evaluation and 15.4% under heuristic verification, with per-model ASR-L ranging from 3.2% to 41.9%. Existing guard models provide limited protection, while prompt-level instructional hardening reduces mean attack success from 58.2% to 14.3%, revealing substantial but model-dependent security–utility trade-offs. Our code is available at https://github.com/judydnguyen/infuse.

1 INTRODUCTION

From chatbots to agents. A new generation of LLM-powered agents has moved beyond text production to take consequential actions in the world. Coding assistants such as Claude Code, Cursor, and Codex CLI execute shell commands and rewrite source files; computer-use agents browse the web and operate desktop applications; and domain-specific agents trade in financial markets (Bigeard et al., 2025), triage clinical data (Yang et al., 2024c; Li et al., 2024), and autonomously fulfill e-commerce queries (Chen et al., 2025a; Mohammadi et al., 2025). To complete realistic requests, agents interpret web pages, documentation, package registries, API responses, and dynamically generated content from potentially untrusted sources outside the user's control. Indirect prompt injection (IPI) exploits this exposure: malicious instructions embedded in otherwise benign content such as documents, web pages, code comments, screenshots, or multimodal inputs may be inadvertently interpreted by the agent as authoritative guidance. In turn, this can lead to overriding the user's task and turning the agent's tool authority against the user (Greshake et al., 2023; Liu et al., 2023; 2024). Despite recent efforts to defend against it (Liu et al., 2023; 2024; Wei et al., 2023; Deng et al., 2025; He et al., 2025; Zhan et al., 2024), IPI remains an open problem: Dziemian et al. (2026) recently showed that attacks succeed against all 13 models they tested, including frontier systems with deployed defenses, across 41 realistic agentic scenarios, yielding over 8,000 successful exploits.

Existing benchmarks each capture only a slice of the threat. Prior evaluations fall short along three structural axes. (1) Realism of execution: BIPIA (Yi et al., 2025) concatenates malicious strings into prompts and InjecAgent (Zhan et al., 2024) embeds payloads in single-step simulated tool calls, both abstracting away the multi-turn agent–environment loop in which real injections occur. (2)

Figure

(a) Benchmark overview

Figure

(b) Attack success and utility drop

Figure 1: (a) INFUSE overview. An agent operates in a realistic environment with tools for shell access, code execution, package management, networking, and version control. Each environment exposes multiple injection surfaces, including file contents, metadata, HTML context, email messages, and filenames; an adversary embeds a payload from one of five threat categories into chosen surface(s). In the example trace, a malicious comment in a training script instructs the agent to upload a private SSH key, resulting in key exfiltration. (b) ASR-L (%) and Utility-L drop for six selected models, ordered by increasing ASR-L. Utility drop is benign minus attacked utility in percentage points (pp); negative values indicate a utility gain.

Table 1: Comparison of INFUSE with existing agent and prompt-injection benchmarks. Prior work targets a single agent setting; INFUSE targets multi-surface workflows for terminal agents. “Partial” marks a property supported only in restricted form (e.g., multi-step interaction with simulated APIs rather than a real execution environment).

BenchmarkPrimary FocusEnd-to-End WorkflowsEnv. RealismMulti-Surface EnvsOpen-ended ActionLong-Horizon ReasoningDual Eval. (LLM+Heur.)
AgentDojoTool-use agentsPartialPartial✕PartialPartial✕
ASBAgent infra✓Partial✕✕✓✕
InjectAgentTool-output inj.✕✕✕✕✕✕
BIPIAApp-level I/O✕✕✕✕✕✕
WASPBrowser agentsPartial✓✕✓✓✕
INFUSETerminal agents✓✓✓✓✓✓

Breadth of attack surface: AgentDojo (Debenedetti et al., 2024) and ASB (Zhang et al., 2025) confine adversarial inputs with heavy scripting, while web-agent benchmarks such as WASP (Evtimov et al., 2025) and WAInjectBench (Liu et al., 2025) operate end-to-end, but only within a browser setting. (3) Signal specificity: concurrent agentic safety benchmarks (Andriushchenko et al., 2025; Vijayvargiya et al., 2026; Guo et al., 2024; Lee et al., 2025; Chen et al., 2026) target broad notions of harm or secure code generation and conflate indirect injection with other failure modes, making it impossible to attribute a vulnerability to the channel that produced it. We argue that progress in IPI requires an evaluation that satisfies all three properties: execution realism, attack surface coverage, and signal isolation. Our benchmark is the first to combine execution realism, broad attack-surface coverage, and signal isolation in a single framework. It evaluates agents in a full execution loop, where they perform real, open-ended actions while encountering injections across READMEs, configuration files, terminal output, repository metadata, network responses, build artifacts, and external content. By tagging each injection with its origin channel, it moves beyond binary safe/unsafe verdicts to reveal where agents' trust in their environment breaks down.

Our Framework. We present INFUSE, an end-to-end benchmark for evaluating LLM agents against indirect prompt injection. INFUSE pairs 40 long-horizon tasks (spanning debugging, security and risk mitigation, file/data management, system deployment, and application development) with a taxonomy of 56 attack scenarios across five threat categories, all executed inside isolated Docker sandboxes with full behavioral tracing. A surface-aware injection engine plants adversarial payloads in five targeting categories (file names, file content, config files, terminal output, and archives) so that injections blend with legitimate context and tags every observation with one of 12 read-side runtime surface types, and a multi-faceted evaluation protocol jointly scores task utility and attack success using heuristic verifiers and an LLM judge.

Contributions. We summarize our contributions as follows:

• A realistic, long-horizon IPI benchmark. INFUSE is the first IPI benchmark to combine end-to-end agent workflows, environment realism, multi-surface attack environments, open-ended action spaces, long-horizon reasoning, and dual heuristic-plus-LLM evaluation in a single framework.

• An extensible injection engine. We curate 56 attack scenarios across five threat categories and plant them in five targeting categories (file names, file content, config files, terminal output, and archives), tracking every observation across 12 read-side runtime surface types (Appendix A.2.2). The engine supports a broad spectrum of injection variants—single- to multi-surface, persistent or one-shot, plain or GCG-obfuscated (Zou et al., 2023)—and scales to new threats, tasks, defenses, and models.

• Large-scale evaluation across 19 LLMs and 5 defenses. Across 41,824 attack trajectories, explicit refusal is rare (RR ≤ 1.0% for every model) and mean ASR-L reaches 19.6%. Across models, ASR-L is associated with benign-run trajectory length ( r≈0.50r \approx 0.50) but not within models ( r≈0.00r \approx 0.00), and only weakly with MMLU-Pro ( r=−0.28r = -0.28), so we report task, harness, and budget alongside model identity. No single defense is robust: external chat-safety classifiers transfer poorly to environment-embedded payloads (ASR-L 43.8–44.0% on a high-ASR stress subset), while prompt-level hardening reduces ASR-L by 43.9 points (58.2% to 14.3%) but introduces uneven utility trade-offs.

References (3)

  • not compromised
  • COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT
  • I cannot assist with that