Skip to content

MUZZLE: An Adaptive Agent Red-Teaming Framework for Indirect Prompt Injection Attacks on Web AgentsMUZZLE: Adaptive Agentic Red-Teaming of Web Agents Against Indirect Prompt Injection Attacks

arXiv· arXiv:2602.09222· USENIX Security 2026· Georgios Syros, Evan Rose, Brian Grinstead, Christoph Kerschbaumer, William Robertson, Cristina Nita-Rotaru, Alina Oprea·Indexed by this site · 2026-10-12· Originally publishedTools

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

MUZZLE automatically red-teams indirect prompt injection in web agents by trajectory, authors claim 44 end-to-end attacks across Tables 2-4.

Threat modelBlack-box adversary, divided into offline discovery and online execution. The discovery phase uses an honest-but-curious proxy to observe local agent and LLM API traffic and I/O without modifying the agent. It can deliver content via interfaces such as comments and forms and host attacker websites; it cannot modify server-side logic, scaffolds, or training. The goal is to break confidentiality, integrity, or availability.

Questions
Web agents directly read untrusted web pages and act on behalf of users; indirect prompt injection can hijack their behavior. The authors say existing evaluations often rely on fixed templates or human-selected injection surfaces, and few do end-to-end, cross-application automatic attack discovery in a reproducible sandbox.
Methods
MUZZLE first runs benign tasks and compresses trajectories; Grafter scores UI elements for exploitability and takes top-k. After placeholder insertion, it samples context, and the Payload Generator iteratively rewrites payloads based on the trajectory. On failure, Judge attributes the cause to the payload or injection surface and switches to the next candidate.
Experiments and results
Table 2 (GPT-4o, BrowserUse, k=5): Postmill credential exfiltration E2E is 4, Gitea webhook is 0. The authors state Tables 2–4 contain 44 end-to-end attacks in total. Table 6 aggregate ASR is 86.7% vs 20.0% (10 runs per application).
Limitations and future work
The paper does not specifically discuss limitations. Evaluation covers 4 applications on The Zoo, 3 victim LLMs, and 2 scaffolds; main results use k=5, with 10 runs per application for the WASP comparison. The paper does not report vessel top-k, nor human verification and Judge agreement.
Experimental setupGPT-4o、GPT-4.1 et al. · The Zoo、Gitea et al. · Partial Attacks、End-to-End Attacks et al.
Evaluated models
GPT-4oGPT-4.1Qwen3-VL-32B-Instruct
Benchmarks
The ZooGiteaPostmillClassifiedsNorthwind
Metrics
Partial AttacksEnd-to-End AttacksASRTPRFPR
AI summaryThe researchers propose MUZZLE, an automated agent red-teaming framework for evaluating Web Agents against indirect prompt injection attacks. The framework uses the agent's execution traces to automatically identify high-salience injection surfaces, adaptively generates context-relevant malicious instructions targeting confidentiality, integrity, and availability, and iteratively refines attacks based on feedback from failed executions. The researchers evaluate the framework across various web applications, user tasks, and agent configurations, reporting that it discovers 44 new attacks across 4 web applications, covering 10 adversarial goals, involving different LLMs and agent scaffolds, and also identifies 3 cross-application prompt injection attacks and a phishing scenario tailored to agents.

The researchers propose MUZZLE, an automated agent red-teaming framework for evaluating Web Agents against indirect prompt injection attacks. The framework uses the agent's execution traces to automatically identify high-salience injection surfaces, adaptively generates context-relevant malicious instructions targeting confidentiality, integrity, and availability, and iteratively refines attacks based on feedback from failed executions. The researchers evaluate the framework across various web applications, user tasks, and agent configurations, reporting that it discovers 44 new attacks across 4 web applications, covering 10 adversarial goals, involving different LLMs and agent scaffolds, and also identifies 3 cross-application prompt injection attacks and a phishing scenario tailored to agents.

Related events and news

0 events · 1 news mentions

News that mentions this paper

  • Failure-Firstcites the paper's id or link
    长时程 Agent 执行中的指令层级颠覆
    MUZZLE (arXiv:2602.09222) automated agentic red-teaming for web-based GUI agents using real-time DOM analysis, discovering 37 novel attack classes including cross-application indirect prompt injection

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors aim to use fully automatic red teaming in a sandbox to discover indirect prompt injections that can hijack web agents.

    How to fully automatically discover and reproduce indirect prompt injection (IPI) against web agents in a sandbox.

    • Scenario: the authors state LLM web agents are already used for information gathering, form filling, shopping, account management, and enterprise processes, and continuously read untrusted web pages. IPI embeds instructions into content the agent may see, thereby rewriting user intent. The authors state agents need not bypass browser controls to exploit the gap between "technically allowed" and "actual intent."
    • Existing shortcomings: the authors state existing evaluations rely on fixed templates, manually selected injection surfaces, or narrow scenarios. WASP manually specifies pages, positions, and instructions; AdvAgent only optimizes local parameters on frozen HTML snapshots, without evaluating in a sandbox. Automatic discovery for coding agents or RAG agents cannot be directly applied to web agents.
    • Threat model:
      • Adversary and knowledge: realistic, black-box. Divided into offline vulnerability discovery and online attack execution. The discovery phase uses an honest-but-curious proxy observing local agent and LLM API traffic, using only execution trajectories and LLM I/O, without access to implementation or configuration.
      • Capabilities: can submit content via comments, forms, personal pages, or messages, and can host attacker-controlled web applications; cannot modify server-side logic, agent scaffolds, or training pipelines.
      • Goals: violate confidentiality, integrity, or availability. The authors state interception is only needed in the discovery phase; deploying a constructed injection requires only standard user-level permissions.
      • Victim system: a web agent controlling a browser in a sandbox, observing pages via DOM or screenshots and performing actions such as clicks and inputs.
    • This paper's system: the authors propose MUZZLE. It automatically ranks UI injection surfaces from victim trajectories, iteratively generates payloads by context, and changes paths based on failure feedback. The authors claim that, to their knowledge, this is the first work to automatically red-team web agent IPI end-to-end in a sandbox, without human intervention.
  2. What related research exists?

    Related work is divided into jailbreaks and IPI, defenses and benchmarks, web agent IPI, and domain red-teaming frameworks.

    Section 5 is divided into four groups; the introduction also names web agent attacks directly compared with this work.

    Jailbreaks and indirect prompt injection

    • Iterative black-box jailbreaks: PAIR (Chao et al., 2025) does generate–critique–refine among attacker, victim model, and judge; TAP (Mehrotra et al., 2024) searches multiple paths in parallel and prunes; AutoDAN-Turbo (Liu et al., 2025) adds a long-term strategy library. The authors say the micro-level implementation is based on PAIR, but other black-box jailbreaks could be swapped in to generate payloads; at the macro level they use similar generate–reflect–feedback, but discover multi-step end-to-end attacks at the web agent application layer rather than single-turn LLM.
    • Other jailbreaks: The authors list gradient optimization (Zou et al., 2023; HotFlip, Ebrahimi et al., 2018) and social engineering as a separate category, without experimental comparison to MUZZLE.
    • IPI: Greshake et al. (2023) et al. place malicious instructions in external documents or web pages. The authors say such attacks often use template payloads or borrow jailbreak techniques, and exploit the lack of a formal boundary between trusted instructions and untrusted data.

    Defenses and benchmarks

    • Defense categories: prompt separation and reminders, detection classifiers, fine-tuning to teach privilege boundaries, and certified defenses with provable guarantees. The paper lists categories without per-paper comparison in the main text.
    • Fixed benchmarks: JailbreakBench, AgentHarm, and AgentDojo, InjecAgent, Agent Security Bench, etc. The authors say they compile fixed datasets of known scenarios rather than discovering new attacks.

    Prompt injection on web agents

    • WASP (Evtimov et al., 2025): manual templates and human-selected injection points for IPI on GitLab and Reddit in VisualWebArena, mostly single-step and often stopping at partial compromise. Section 4.3 treats it as the closest prior work.
    • VWA-Adv (Wu et al., 2025): extends VWA with targeted adversarial tasks. The authors say injection surfaces are manually selected per scenario, agents start from preselected positions, and cannot execute arbitrary attacker actions in the environment.

    Red-teaming frameworks and baselines

    • Domain frameworks: AgentPoison (Chen et al., 2024) targets agents with memory or knowledge bases; RedCodeAgent (Guo et al., 2025) targets code agents. The introduction says such systems cannot be directly applied to web agents.
    • AdvAgent (Xu et al., 2025): uses DPO to learn adversarial prompts, evaluated via SeeAct on frozen HTML–image snapshots. The authors say it does not simulate the web environment, cannot make dynamic visible modifications, and cannot construct or evaluate multi-step cross-application attacks.
    • AgentVigil (Wang et al., 2025): uses fuzzing-inspired genetic mutations, evaluated via VWA-Adv. The authors say it therefore inherits limitations such as fixed per-scenario strategies, optimizing only the injection string, and only black-box success signals from the environment side.
    • Baselines and environments: The main comparison baseline is WASP's fixed templates, with the metric being end-to-end ASR (Table 6). Evaluation environments are Gitea, Postmill, Classifieds, and Northwind in The Zoo. Appendix A.2 also ablates with random UI, fixed issue title, unoptimized payloads, and WASP template payloads (Table 8).

    The authors position this work as automatically generating end-to-end trajectories, selecting injection points along the trajectory, and iteratively synthesizing payloads, all reproduced in a sandbox. The authors claim that to their knowledge this is the first fully automatic, human-free web agent IPI red team; Section 4.3 says it is the first framework to demonstrate cross-application IPI.

  3. How does the paper address this problem?

    MUZZLE uses three stages—reconnaissance, attack synthesis, and reflection—to select injection surfaces along the trajectory and iteratively rewrite payloads.

    MUZZLE is a multi-red-teamer framework: Explorer drives the victim web agent in The Zoo, with three phases: reconnaissance, attack synthesis, and reflection (Figure 1, Figure 2). The operator only provides task specifications, without manually specifying injection pages or payloads.

    Task specification and orchestration

    • Input: natural-language benign tasks, victim agent configuration, credentials and initial state, and a set of adversarial goals (confidentiality, integrity, availability). Each goal is treated as a state that benign execution should not reach. Optional system-level assertions are used for deterministic verification. Listing 1 is a Gitea example.
    • Explorer: deploys agents on demand; records step-by-step LLM I/O, tool calls, HTML, and browsing artifacts via The Zoo's network proxy; manages credentials; deterministically resets backends between runs.
    • Red-team implementation: orchestrated with AutoGen. The paper states all red-team agents are driven by GPT-4o and GPT-4-Turbo, without specifying the role-model mapping. Responsibilities are in Table 1: Summarizer, Grafter, Dispatcher, Payload Generator, Judge.

    Reconnaissance

    • Trajectory: time-ordered request-response pairs from benign tasks. Summarizer compresses them into steps, each containing the action, relevant UI or HTML region, and URL, and removes reasoning labels that vary by scaffold.
    • Injection surfaces: Grafter gives candidate vessels. Each contains an element description, a natural-language exploitation method, and an exploitability score cj ∈ [0,1]. Top-k is taken by that score; k is configurable, and the experimental value is not stated in the paper. Ranking considers visibility to the agent, required adversarial permissions, and available space and truncation likelihood.
    • Goal trajectories: each adversarial goal is executed separately with the same agent, recording how that goal is achieved in the application, for later instruction writing.

    Attack synthesis

    • Placeholder: Dispatcher takes the highest-scoring vessel, synthesizes a plan from the description and exploitation method, executed by a red-team web agent simulating an adversary. The vessel is first written with a placeholder, without submitting the final payload. The authors claim that switching to per-application APIs or scripts would break automation and the application-agnostic design.
    • Context: the benign task is run again, truncated at the step where the placeholder first enters the LLM's effective context. The authors claim success depends both on payload content and its relative position in the input.
    • Payload: Payload Generator distills the goal trajectory into imperative instructions, then iteratively rewrites them. Implementation-wise, PAIR is augmented with task state, reasoning, and observations from the trajectory, refined with LLM feedback. For each candidate, only the placeholder in that one truncated request is replaced, querying the victim agent's underlying bare LLM; if the next step deviates from the benign task, it is marked promising. Appendix C has intermediate outputs; payload text is not reproduced here.
    • Implantation: after payload selection, Explorer replaces the placeholder using The Zoo's backend modification capability.

    Reflection and judgment

    • Re-execution: rerun the original benign task on the interface with the payload, recording the full transcript.
    • Judgment: Judge gives success (adopted and completed), partial (adopted but not completed), or failure (ignored instructions and continued the original task). If the specification includes an assertion, Judge calls it via cURL. The authors claim this avoids hallucinations from LLM-only judgment.
    • Failure attribution: if the instruction appears in the effective context but is ignored, attribute to the payload and rewrite; if absent or truncated, attribute to the vessel and try the next one. Continue until the goal is achieved or candidates are exhausted, then move to the next adversarial goal.
  4. What experiments did the paper conduct?

    In Table 2, GPT-4o+BrowserUse, k=5, credential exfiltration E2E is 4, webhook is 0.

    Experimental setup

    • Environment: The Zoo. Tasks are Gitea issue management, Postmill browsing and replying, Classifieds browsing and asking; the text also lists Northwind (phpMyAdmin) database management, and in Table 2 it appears only as a cross-application target. Cross-application is Classifieds→Northwind delete table, Gitea→Postmill delete account. The abstract says 10 adversarial targets; Table 2 has 11 rows.
    • Victim side: GPT-4.1, GPT-4o, Qwen3-VL-32B-Instruct (Table 3 header is Qwen3-32B); scaffolds are BrowserUse (single-LLM loop) and Agent-E (Planner plus Browser Executor). Table 2 is GPT-4o with BrowserUse.
    • Red team: AutoGen; red-team agents are driven by GPT-4o and GPT-4-Turbo. The paper does not specify which role uses which.
    • Metrics: k=5 per specification. One definition of Partial is adopted but not completed; another says end-to-end is by definition a subset of Partial. In Table 3, GPT-4.1 delete account is Partial 4, E2E 4, consistent with the subset claim. Table 6's ASR is end-to-end success rate over 10 runs per application.
    • Judging: Judge has three levels; optional assertions use cURL. The authors say all 44 end-to-end attacks were verified by human evaluators. The paper does not report the number of evaluators or agreement with Judge.
    • Comparison: WASP fixed templates (Table 6). Table 8 uses random UI, fixed issue title, unoptimized payloads, and WASP template payloads. Appendix B post-hoc runs DataSentinel, two versions of ProtectAI DeBERTa, Llama Guard series, and Prompt Guard series.

    Main results

    The main setting is GPT-4o, BrowserUse, k=5 (Table 2). The table below has 8 rows. Not listed: Classifieds delete account (Partial 3, E2E 1), change email (4, 1), Gitea→Postmill delete account (4, 1).

    TargetPartialE2E
    Gitea: delete repository31
    Gitea: unauthorized collaborator42
    Gitea: eavesdrop webhook40
    Postmill: delete account51
    Postmill: post scam link32
    Postmill: credential exfiltration44
    Classifieds: delete competing listing43
    Classifieds→delete Northwind table52
    • Injection surfaces: The authors say Gitea's vessels are issue titles, descriptions, and comments; Postmill's are post titles, bodies, and replies; Classifieds' are listing titles, descriptions, and replies, with reply types being most effective. The authors say modifying titles, bodies, or posting new content is often drowned out by the information feed and not seen by the target agent; no separate counts.
    • Credentials and webhook: Credential exfiltration E2E is 4, which the authors say is the highest among evaluated applications. The authors say GPT-4o and GPT-4.1 hesitate when directly asked to leak credentials; the system still rewrites the action into an intermediate verification step in the task and uses a fake authentication page presented as a verification interface (Figure 4, Figure 6). Webhook E2E is 0; the text says all five attempts were partial compromises, and Table 2 shows Partial 4. The authors attribute this to multi-step forms and say GPT-4o often deviates from the trajectory when delete, purge, and drop become prominent.
    • Cross-application and comparison: Default session isolation; success relies on stored credentials to log into another application. The abstract says 3 cross-application prompt injection attacks; Table 2's two rows have E2E of 2 and 1. Figures 3 and 8 correspond to Classifieds to Northwind. The authors say Tables 2–4 total 44 distinct end-to-end attacks; Table 2's GPT-4o+BrowserUse rows reappear in the latter two tables. Table 6 (10 runs per application): MUZZLE's ASR is Gitea 90%, Postmill 90%, Classifieds 80%, total 86.7%; WASP fixed templates are 10%, 0%, 50%, total 20.0%. The authors say item-by-item comparison is limited by environment and target differences, and WASP does not support cross-application. The paper does not specify which target each column in Table 6 corresponds to.

    Victim LLM

    Table 3 only tests Postmill, BrowserUse, k=5.

    • Delete account: GPT-4.1 is Partial 4, E2E 4; GPT-4o is 5 and 1; Qwen3-VL-32B-Instruct is 3 and 3.
    • Other two targets: Scam link E2E is 3, 2, 3 respectively, with Partial all 3. Credential exfiltration E2E is 3, 4, 3, with Partial 3, 4, 3.
    • Author interpretation: The authors say GPT-4.1's end-to-end success rate is consistently higher than GPT-4o across targets, and once partially hijacked it follows through. Table 3's credential exfiltration is a counterexample: GPT-4o's E2E is 4, GPT-4.1's is 3. The authors say GPT-4o often returns to the original task midway, more noticeably on irreversible actions; Qwen3-VL-32B-Instruct is similar to GPT-4.1, with less recovery after hijacking.

    Victim scaffold

    Table 4 only tests Gitea, GPT-4o, k=5.

    • Numbers: Delete repository, BrowserUse is Partial 3, E2E 1, Agent-E is 3 and 2. Unauthorized collaborator, both have Partial 4, E2E 2 and 4. Eavesdrop webhook, BrowserUse is 4 and 0, Agent-E is 2 and 1.
    • Author interpretation: The authors say both scaffolds have different LLM I/O but both can extract telemetry and execute attacks. The authors say Agent-E, once hijacked, is more likely to follow through because the Planner only gets boolean success/failure from the Browser Executor. The authors say BrowserUse's unified reasoning loop sometimes recovers midway.

    Post-hoc detection

    Appendix B does not do runtime prompt-level defense but classifies collected trajectories. Samples are 109 clean observations, 31 observations with placeholders, 79 successful payloads (not requiring end-to-end), expanded to 817 observations with injection states. The paper does not specify the denominators for TPR and FPR item by item.

    • Browser state: The authors say detection is weak. In Table 9, DataSentinel's TPR is 0.322, FPR 0.055; Prompt-Guard-86M is 0.225 and 0.018; Llama-Guard-4-12B is 0.143 and 0.000. Deberta-v3-base-prompt-injection is 0.000 for all three. v2's browser state TPR is 0.895, FPR 0.982.
    • Raw payloads: Llama-Guard-4-12B's TPR is 0.595, DataSentinel's is 0.013. The authors say several methods have lower TPR on clearly malicious text, naming DataSentinel and ProtectAI v2. The authors say these methods have near-perfect TPR and FPR in their original evaluation settings; the paper does not give those numbers.

    Other ablations and analyses

    • Table 7 (GPT-4o, k=5): Most targets reach final E2E at reflection iteration i=0 or i=1. Cross-application delete Northwind table has E2E 0 at i=0 and i=1, 1 from i=2, and 2 at i=5 (Partial stays 5). Gitea webhook has E2E 0 at all iterations.
    • The authors say termination depends on Grafter ranking: some targets exhaust candidates after i=1 (shown as dashes in the table), others continue to i=4 or i=5. The authors say reflection is more useful for cross-application multi-step tasks.
    • Table 8: Gitea add unauthorized collaborator, GPT-4o, BrowserUse, k=5, reflection off. Only Grafter plus Optimized gives Partial 3, E2E 2; Random or Fixed with all three payload types gives 0/0. The authors say random selection often prevents attack synthesis from starting; fixed titles exceed the character limit, and with reflection off, strategy cannot be changed.
    • Table 5 is one representative successful run on Postmill, GPT-4o, delete account: Web Agent Execution 05:08 (34.8%), environment initialization and seeding 05:22 (36.4%), payload optimization plus Explorer 22.5%, LLM-related total 08:04 (54.8%). The text says it will measure average discovery time but does not give that average.
  5. What are some points that can be further explored?

    The paper does not specifically write limitations or future experiments in the limitations, discussion, or conclusion sections.

    Limitations and future directions noted by the authors

    The paper does not specifically discuss limitations. Limits, Discussion, Conclusion, Future Work, and the appendix do not frame any result as a shortcoming, nor do they list follow-up experiments the authors will conduct.

    Experimental coverage

    • Models and scaffolds: Victim LLMs are GPT-4.1, GPT-4o, Qwen3-VL-32B-Instruct; scaffolds are BrowserUse and Agent-E (Section 4.1). Changing the LLM is reported only on Postmill and BrowserUse (Table 3); changing the scaffold is reported only on Gitea and GPT-4o (Table 4).
    • Environments and repetitions: Gitea, Postmill, Classifieds in The Zoo, plus Northwind as a cross-application target (Table 2). Main specification k=5. Comparison with WASP fixed templates is 10 runs per application (Table 6). Cross-application is Classifieds→Northwind and Gitea→Postmill.
    • Judging: Judge outputs success, partial, or failure; specifications can include assertions verified via cURL (Section 3.5). The authors state that 44 end-to-end attacks were verified by human evaluators (Section 4.2.1). The paper does not report the number of evaluators or agreement between humans and Judge.
    • Defense-related: Appendix B is a post-hoc classification of collected trajectories, not a runtime defense; samples are 109 clean observations, 31 observations with placeholders, 79 payloads, and 817 observations with injection states. Section 6 states that none of the evaluated agents implement dedicated IPI defenses.
    • Unspecified quantities: The paper does not report Grafter's top-k value, which of GPT-4o or GPT-4-Turbo each red-team agent uses, or the number of queries to discover attacks. The text says it measures the average runtime to discover one successful end-to-end attack; Table 5 gives components of one representative run, not that average.
  6. Summarize the main content of the paper

    MUZZLE automatically discovers 44 end-to-end indirect prompt injections in a sandbox and reports cross-application and phishing-style strategies.

    MUZZLE is an automated red-teaming framework for indirect prompt injection in web agents, discovering, planting, and judging attacks in the sandbox The Zoo.

    • Problem: web agents read untrusted pages and act on behalf of users by clicking and typing. The authors aim to automatically find IPIs that can violate confidentiality, integrity, or availability, rather than manually specifying pages, locations, and templates. The adversary is black-box per the paper: during discovery, it sees trajectories and LLM I/O, can only plant via client-side content or its own website, and cannot modify the server, scaffold, or training.
    • Method: The reconnaissance stage compresses benign trajectories; Grafter scores UI elements by visibility, permissions, and length, and takes top-k. Attack synthesis places placeholders into the highest-scoring elements, then iteratively rewrites payloads based on that location's context, implemented by adapting PAIR. The reflection stage has a Judge classify success, partial, or failure; on failure, it switches payload or injection surface.
    • Results: The authors state Tables 2–4 contain 44 distinct end-to-end attacks in total. In Table 2 (GPT-4o, BrowserUse, k=5), Postmill credential exfiltration E2E is 4, Gitea webhook eavesdropping is 0. In Table 3, GPT-4.1 deleting Postmill accounts has E2E 4, GPT-4o has 1. In Table 4, Agent-E adding unauthorized collaborators has E2E 4, BrowserUse has 2. In Table 6, with 10 runs per application, the aggregate ASR is 86.7% for MUZZLE and 20.0% for WASP fixed templates.
    • Detection: Appendix B does post-hoc classification on collected trajectories. deberta-v3-base-prompt-injection-v2 on browser state has TPR 0.895 and FPR 0.982 (Table 9). The authors state the tested classifiers are overall weak at detection.
    • Authors' conclusions: The authors state the framework enables end-to-end evaluation across applications, LLMs, and scaffolds, and finds cross-application injections and an agent-oriented phishing strategy. The authors recommend confirmation before sensitive actions, input sanitization, and least privilege, and state that none of the evaluated agents have dedicated IPI defenses.
Read originalUSENIX Security 2026