Skip to content

SPIDES: Information Flow Control for Browser AgentsSPIDES: Information-Flow Control for Browser Agents

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2610.24277· Egor Zverev, Juhee Kim, Leon Trampert, Boris Köpf, Aashish Kolluri, Shruti Tople, Santiago Zanella-BéguelinISTA; Microsoft; CISPA Helmholtz Center for Information SecurityIndexed by this site · 2026-10-20· Originally publishedSelected DefensesSelectedAttention38

Quick read

Defenses

Based on the paper PDF (generated by Gemini); refer to the original

The authors propose SPIDES, an information flow control framework for browser agents that gates actions through element-level labels and achieves 0% Byzantine ASR on MicroNet.

Threat modelThe victim system is a browser agent that executes tasks based on accessibility snapshots. Attackers can inject untrusted web content through attacker-controlled websites, user-generated content on trusted websites, or third-party iframes; a worst-case Byzantine adversary is assumed, and when the model input is contaminated by untrusted content, the adversary can control the model's response; trusted principals are the user, the browser, the agent framework and its tools, the LLM and its provider.

Questions
When browser agents automate tasks across websites, directly reading and operating on web page content makes them prone to indirect prompt injection attacks, leading to unauthorized consequential actions or confidential data leakage. Existing mechanisms such as the same-origin policy cannot effectively balance legitimate cross-origin interaction with protection against same-origin internal injection.
Methods
The authors propose an information flow control framework, SPIDES. Website operators annotate DOM elements with integrity and confidentiality labels; the framework replaces untrusted and confidential content with opaque variables, allows only trusted actions to trigger consequential operations, and restricts confidential data to flow only to authorized sources, with violating actions requiring human approval.
Experiments and results
In evaluations on the MicroNet benchmark containing 28 sources and on 5 frontier models, SPIDES achieved 0% ASR against a worst-case Byzantine adversary. On benign tasks it achieved a 67%–86% task completion rate, and under the same safety guarantees it completed more tasks with fewer human approvals.
Limitations and future work
The method relies on website operators to maintain element-level labels; labeling errors or DOM integrity vulnerabilities weaken protection. The confidentiality reader set cannot distinguish between different recipients within the same source. The evaluation experiments cover 28 website sources, 56 benign tasks, and 56 attack scenarios, and were not tested on real online websites.
Experimental setupGPT-5.6 Sol、GPT-5.6 Terra et al. · MicroNet · TCR、ASR et al.
Evaluated models
GPT-5.6 SolGPT-5.6 TerraClaude Opus 5.5Claude Opus 5Claude Sonnet 5
Benchmarks
MicroNet
Metrics
TCRASRTCR@kHITL approvals per taskToken usageToken cost
AI summaryand selection rationaleThe researchers propose SPIDES, an information flow control framework for browser agents: website operators label DOM elements with integrity and confidentiality tags, and the framework constrains basic actions such as clicking, typing, and navigation accordingly; the paper reports an attack success rate of 0% across five frontier models. Untrusted and confidential content is replaced with opaque variables and revealed only when policy permits, and the policy distinguishes consequential actions by whether the action's target origin belongs to a user-trusted origin. The authors build the MicroNet benchmark, containing 28 interconnected sites, 56 benign tasks (22 of which require cross-origin), and 56 attack scenarios; under a worst-case adversary assumption, SOPGuard has an attack success rate of 53.2–73.2% and UCM 4.6–6.8%, while SPIDES and UCM+ block all attacks. SPIDES completes 67.1–86.1% of tasks, and under the same security guarantee with at most 8 human approvals allowed, it completes more tasks than SOPGuard and UCM on every model.

The researchers propose SPIDES, an information flow control framework for browser agents: website operators label DOM elements with integrity and confidentiality tags, and the framework constrains basic actions such as clicking, typing, and navigation accordingly; the paper reports an attack success rate of 0% across five frontier models. Untrusted and confidential content is replaced with opaque variables and revealed only when policy permits, and the policy distinguishes consequential actions by whether the action's target origin belongs to a user-trusted origin. The authors build the MicroNet benchmark, containing 28 interconnected sites, 56 benign tasks (22 of which require cross-origin), and 56 attack scenarios; under a worst-case adversary assumption, SOPGuard has an attack success rate of 53.2–73.2% and UCM 4.6–6.8%, while SPIDES and UCM+ block all attacks. SPIDES completes 67.1–86.1% of tasks, and under the same security guarantee with at most 8 human approvals allowed, it completes more tasks than SOPGuard and UCM on every model.

Why it was selectedThe paper applies information flow control to browser agents and compares safety and autonomy with SOPGuard and UCM on a self-built 28-site benchmark.

Related events and news

1 events · 1 news mentions

News that mentions this paper

Adversa AI 汇总 11 月 AI 智能体安全资源

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors state that existing defenses for browser agents struggle to balance security and autonomy, and the paper attempts to address consequential operations and data leakage caused by indirect prompt injection.

    Core problem: how to deterministically defend against consequential operations and sensitive data leakage caused by indirect prompt injection attacks while preserving the browser agent's ability to autonomously operate across sources.

    • Scenario and importance: Browser agents automate workflows across multiple websites on behalf of users. However, agents run across sources with user privileges and lack built-in isolation, so malicious content embedded in web pages may induce agents to execute unauthorized transfers or send out private data.
    • Limitations of existing defenses: The authors state that existing defenses struggle to balance integrity, confidentiality, and autonomy. SOPGuard relies on restoring the same-origin policy, but it impedes legitimate cross-source data flows and cannot defend against same-origin attacks; UCM only shadows untrusted content through an isolated model, cannot prevent confidential data leakage, and is susceptible to data injection attacks; ceLLMate only restricts request boundaries based on tasks and does not track whether requests are affected by untrusted data.
    • Core observation: Restoring the traditional same-origin policy is neither sufficient (public sinks within the same origin can also leak private data) nor necessary (legitimate tasks themselves require authorized cross-source data flows). Defending browser agents requires a new type of information flow control mechanism that can distinguish benign flows from accidental flows.
    • Threat model:
      • Victim system: A browser agent that executes an observe-act loop in the browser based on accessibility snapshots.
      • Attacker goals: Manipulate the agent to execute unauthorized consequential operations (integrity attacks), or send non-public data to unauthorized recipients (confidentiality attacks).
      • Attacker knowledge and capabilities: The attacker injects malicious content by controlling an entire website, posting user-generated content (UGC) on a trusted website, or controlling a third-party iframe in a trusted page; a worst-case Byzantine adversary is assumed, where the adversary can directly control model output when the model input contains untrusted content.
      • Trust boundary: Trusted principals include the user, the browser, the agent runtime framework and its tools, the LLM and its provider; the user creates accounts only on trusted sources and maintains a trusted source list.
    • Proposed approach: The paper proposes an information flow control framework based on element-level DOM labels, SPIDES, which ensures security by hiding untrusted and confidential content in snapshots and applying policy gating to raw browser actions.
  2. What related research exists?

    The authors review probabilistic defenses, dual-LLM deterministic IFC mechanisms and specialized defenses, and point out the shortcomings of existing approaches in granularity and in balancing same-origin and cross-origin.

    Probabilistic prompt injection defenses

    • Instruction hierarchy training and architectural separation: Wallace et al. (2024) proposed instruction hierarchy training; Zverev et al. (2025; 2026) and Chen et al. (2025a;b) separate instructions from data via fine-tuning or model architecture; Sharma et al. (2025) use input and output filters. The authors state that probabilistic defenses have been repeatedly shown to be ineffective against adaptive attacks (Nasr et al., 2026).

    Deterministic system defenses based on dual LLMs and information flow control

    • Dual LLM pattern: Willison (2023) pairs a privileged LLM with a quarantined LLM; the privileged LLM does not directly observe untrusted content.
    • Agent information flow control: CaMeL (Debenedetti et al., 2026), FIDES (Costa et al., 2025) and PFI (Kim et al., 2025) combine dual LLMs with information flow control. The authors note that these methods assume tools have a clear and single effect (e.g., sending email), whereas the effects of general-purpose browser tools cannot be known in advance, and existing methods rely on structured labels returned by tools, whereas web pages typically lack metadata.

    Security mechanisms for browser agents

    • SOPGuard (Wang et al., 2026): extends the same-origin policy to browser agent actions; cross-origin flows require user approval. The authors note that it does not monitor same-origin flows and cannot defend against same-origin leakage or consequential actions that do not violate the same-origin policy.
    • UCM (Nikolić et al., 2026): assumes websites mark UGC and mask it to prevent integrity violations. The authors note that UCM does not prevent confidential data leakage, and that data flows returned by the quarantined LLM can still influence tool calls, making it vulnerable to data injection attacks (Foerster et al., 2026).
    • ceLLMate (Meng et al., 2026): relies on websites providing an agent sitemap and intercepts HTTP requests that exceed the task policy boundary. The authors note that it does not track whether untrusted content influenced allowed requests.

    Baselines and evaluation benchmarks

    • Comparison baselines and benchmark coverage: the defense baselines compared in this paper are no defense (vanilla), SOPGuard (Wang et al., 2026), UCM (Nikolić et al., 2026), and UCM+ extended by the authors. Existing benchmarks include WASP (Evtimov et al., 2025), SOPBench (Wang et al., 2026), WARP (Li et al., 2026) and DoomArena (Boisvert et al., 2025). The authors note that existing benchmarks lack cross-origin benign tasks with element-level ground truth and comprehensive attack coverage (Table 5), so this paper constructs the MicroNet benchmark.

    The authors position SPIDES as a deterministic defense framework targeting the characteristics of general-purpose browser tools, using fine-grained element-level DOM labels and combining information flow control with the dual LLM pattern.

  3. How does the paper address this problem?

    SPIDES uses DOM element-level labels to shadow sensitive data in snapshots and enforces fine-grained information flow control policies by distinguishing target sources and action types.

    The paper proposes an information flow control framework, SPIDES, which deterministically prevents prompt injection and data leakage through web element-level labels, context taint tracking, and action policy gating.

    Element-level DOM labeling and snapshot propagation

    • Label model: Users maintain a list of trusted sources (which can be initialized via a reputation database). All elements from untrusted sources are automatically labeled (Untrusted, Public). Trusted sources are annotated by website operators with attributes on DOM elements: data-ifc-integrity annotates the integrity label I (Trusted or Untrusted); data-ifc-readers annotates the confidentiality reader set R (containing user and the set of authorized sources O).
    • Sparse inheritance: Unlabeled elements inherit the label of the nearest ancestor by default; when no ancestor is labeled, the default is (Trusted, Public).
    • Snapshot label mapping: The accessibility snapshot construction process of Playwright MCP is modified. To prevent the native implementation from collapsing multiple DOM elements into a single ARIA node and causing label confusion (Figure 4), SPIDES maintains ordered label metadata by UTF-8 byte range and merges adjacent ranges only when their labels are identical.

    Context taint tracking and variable shadowing mechanism

    • Selective shadowing: The agent context maintains a label ℓctx = (Ictx, Rctx), initially (Trusted, Public). The content of elements labeled (I, R) in the snapshot is replaced with an opaque variable [var_id] when the shadowing condition is satisfied: I_{\text{ctx}} = \text{Trusted} \land I = \text{Untrusted} \lor R_{\text{ctx}} \not\subseteq R The formula indicates that if revealing the content would downgrade the current context integrity to untrusted, or if the reader set allowed for the content is stricter than the current context, the content is variable-shadowed.
    • Variable handling tools: A quarantined_llm tool is provided to pass variables to an isolated model for processing, with the output saved as a new variable without contaminating the main context; a inspect_variable tool is provided to explicitly reveal the variable value to the main model, at which point the context label is merged with the variable label, integrity may be downgraded to Untrusted, and the reader set is reduced to the intersection.

    Information flow security policies for browser tools

    • Policy classification: The 16 core tools of Playwright are classified into categories and policies are applied (Table 1):
      • Observation tools (e.g., browser_snapshot): produce no outbound flow and no side effects, and are always allowed to execute (Always allow).
      • Pure outbound tools (e.g., browser_fill_form, browser_type(submit=false)): only fill in data without submitting; a robust declassification policy is enforced, and execution is allowed if the trusted action PT or the permitted flow PF is satisfied.
      • Potentially consequential actions (e.g., navigation, clicking, form submission, handling pop-ups): if the target source is a trusted source, it is conservatively treated as possibly executing a consequential operation as the user, and the trusted action PT is strictly required (neither the context nor the parameters may contain untrusted data); if the target source is an untrusted source, it is treated as a pure outbound tool, requiring PT ∨ PF.
      • Code execution tools (e.g., browser_evaluate): the effect cannot be determined in advance, so they are always blocked (Always block).
    • Permitted flow definition: For the source o_el where the target element resides, the parameter reader set is obtained by intersecting the reader sets of all variables in the parameters to obtain Rarg, and PF holds when: oel ∈ Rarg ∩ Rctx The formula indicates that the source where the target element resides must belong both to the intersection of the parameter variable reader sets and to the reader set of the agent context.

    Core security guarantees

    • Four formal properties: Under the given assumptions, SPIDES guarantees, independently of model alignment capability: isolation (G1, the context contains no attacker-controlled content before revelation), integrity (G2, consequential operations without human approval must originate from trusted data), confidentiality (G3, data leaves the reader set only when unaffected by untrusted content or after human approval), and quarantine containment (G4, isolated model outputs cannot flow beyond their bounds).
  4. What experiments did the paper conduct?

    On the MicroNet benchmark and 5 models, SPIDES achieves 0% ASR against a Byzantine adversary, a benign TCR of 67%–86%, and better autonomy than the comparison baselines.

    Experimental Setup

    • Models tested: GPT-5.6 Sol, GPT-5.6 Terra, Claude Opus 5.5, Claude Opus 5 and Claude Sonnet 5; the main model and the QLLM use the same model.
    • Benchmark ecosystem: the MicroNet benchmark, containing 28 internet site sources (16 configured as trusted sources) and 470 web pages.
    • Task and attack scale: 56 benign tasks (34 same-origin tasks, 22 cross-origin tasks; 41 data-independent tasks, 15 data-dependent tasks); 56 attack scenarios (28 integrity attacks, 28 confidentiality attacks; 26 same-origin flows, 30 cross-origin flows; 50 instruction injections, 6 data injections).
    • Comparison baselines: Vanilla (no defense), SPIDES, SOPGuard (Wang et al., 2026), UCM (Nikolić et al., 2026), and UCM+ extended by the authors.
    • Metrics and determination: task completion rate (TCR), attack success rate under a Byzantine adversary (ASR), completion rate with an approval cap (TCR@k), and approvals per task. Benign tasks are judged by deterministic checks and an LLM judge; data injection approval determination is assisted by GPT-5.6 Sol; each setting is repeated 5 times.

    Main Results

    Swipe horizontally to read the table

    Model testedSPIDES TCR / ASR (%)Vanilla TCR / ASR (%)SOPGuard TCR / ASR (%)UCM TCR / ASR (%)UCM+ TCR / ASR (%)
    GPT-5.6 Sol86 / 091 / 9693 / 5868 / 673 / 0
    GPT-5.6 Terra77 / 088 / 9586 / 5843 / 770 / 0
    Claude Opus 5.567 / 058 / 5758 / 5349 / 559 / 0
    Claude Opus 569 / 069 / 7266 / 6658 / 556 / 0
    Claude Sonnet 582 / 089 / 9290 / 7356 / 672 / 0

    Note: data from Figure 2; TCR and ASR are means over 5 repeated runs.

    • Safety comparison: the authors state that SPIDES and UCM+ both achieve 0% ASR against a Byzantine adversary on all 5 models; Vanilla lacks control (ASR 57%–96%), SOPGuard cannot defend against same-origin attacks and actions that do not violate the same-origin policy (ASR 53%–73%), and UCM is still broken in some scenarios (ASR 5%–7%).
    • Benign utility performance: the authors state that SPIDES achieves a TCR of 67%–86%, outperforming UCM on every model. On Claude Opus 5.5, SPIDES avoids provider classifier refusals by masking sensitive credentials, with a TCR (67%) higher than Vanilla (58%) and SOPGuard (58%).
    • Benefits of masked free text and checks: UCM+ generally improves TCR over UCM on each model, which the authors state reflects the role of the QLLM returning masked free text; SPIDES further outperforms UCM+, reflecting the support of the explicit variable check mechanism for data-dependent tasks.

    Breakdown Experiments on Injection Mechanisms and Data-Dependent Tasks

    • Test content: attacks are divided into instruction injection and data injection (Table 4), and benign tasks into data-independent and data-dependent (Table 3).
    • Experimental results: in the 50 instruction injection scenarios, UCM, UCM+ and SPIDES all have 0.0 ± 0.0% ASR; in the 6 data injection scenarios, UCM's ASR rises to 43.3%–63.3% (e.g., 60.0 ± 9.1% on GPT-5.6 Sol), while SPIDES and UCM+ maintain 0.0 ± 0.0% ASR (Table 4). In the 15 data-dependent benign tasks, SPIDES retains a TCR of 92.0%–98.7%, outperforming UCM+'s 68.0%–81.3% (Table 3).
    • Authors' interpretation: the authors state that UCM does not continuously track information flow after the QLLM returns data, and is therefore vulnerable to data injection; SPIDES effectively prevents data injection through context tainting at variable reveal time and subsequent approval.

    Autonomy and Approval Budget Analysis

    • Test content: under aligned safety guarantees, evaluate TCR@k when the maximum number of interventions k is limited (Figure 3), and count the average number of approvals under the default setting.
    • Experimental results: under a low approval budget (k ≤ 8), SPIDES completes more tasks than SOPGuard and UCM with approval patches added, on all 5 models (Figure 3). Under the default setting, SPIDES requires an average of 1.84 approvals to successfully complete a task, versus 0.22 for SOPGuard (Section 6).
    • Authors' interpretation: the authors note that SOPGuard's low default approvals are because its safety policy is too permissive; after imposing the same safety guarantees, SPIDES reduces false positives through its fine-grained policy, demonstrating higher autonomy.

    Runtime Cost and Tool Call Analysis

    • Test content: count the average token consumption of each defense in valid runs (Figure 5), estimate dollar costs (Figure 6), and the frequency of security mechanism tool calls (Figure 7).
    • Experimental results: SPIDES's estimated token cost per task is $0.37–$1.42, versus $0.17–$0.66 for Vanilla (Figure 6). SPIDES makes an average of 1.27–2.77 QLLM calls and 1.10–2.73 inspect_variable calls per task; UCM makes an average of 8.34–33.80 QLLM calls per task (Figure 7).
    • Authors' interpretation: the authors state that UCM frequently calls the QLLM because it directly returns unmasked values with restricted types, whereas SPIDES reduces extra QLLM calls through masked free text and explicit reveal.

    Other Ablations and Analyses

    • In the speaker-discount cross-origin benign task, SOPGuard requests approval in every one of 25 runs (33 in total), while SPIDES requires no approval in 21 runs (Appendix G).
    • In the private-message recovery-email same-origin attack, SOPGuard does not request approval and the attack succeeds in all 25 runs, while SPIDES prevents all 25 leaks (Appendix G).
    • In instruction injection scenarios, Vanilla's ASR on GPT-5.6 Sol is 97.6 ± 0.9%, and SOPGuard's is 59.2 ± 1.1% (Table 4).
    • In data injection scenarios, SOPGuard's ASR on GPT-5.6 Terra is 50.0 ± 11.8%, and Vanilla's is 76.7 ± 9.1% (Table 4).
    • In data-independent benign tasks, SPIDES's TCR on GPT-5.6 Terra is 69.8 ± 4.4%, and UCM's is 33.7 ± 5.3% (Table 3).

    Negative results and exceptions: when Claude Opus 5.5 and Claude Opus 5 handle tasks containing phishing emails, although the main model is protected by masking, the quarantined model QLLM still triggers provider safety classifier refusals when analyzing untrusted content, causing benign tasks to fail; on GPT-5.6 Terra, SPIDES's benign TCR (77%) is lower than Vanilla (88%) and SOPGuard (86%) (Figure 2b).

  5. What are some points that can be further explored?

    The authors note that label maintenance cost, coarse granularity of same-source recipients, and authentication state tracking are the main limitations, and the experiments were completed in a closed sandbox ecosystem under an ideal user assumption.

    Limitations and future directions noted by the authors

    • Element-level label maintenance cost and automatic labeling errors: The authors note in Section 7 that SPIDES relies on operators to provide DOM element-level labels, that maintaining these labels on dynamic pages incurs deployment overhead, and that automatic labeling may introduce errors, resulting in insufficient protection or overly strict policies.
    • Risk of trust list misconfiguration: The authors note in Section 7 that omitting a source from the trusted list causes its confidential data to be treated as public and consequential operations to be treated as pure outbound; conversely, mistakenly including an untrusted source allows an attacker to mark content they control as trusted.
    • Dependence on underlying DOM integrity: The authors note in Section 7 that because labels are provided through the DOM, vulnerabilities that compromise DOM integrity (such as XSS or client-side supply chain attacks) also compromise the SPIDES security mechanism.
    • Limited abstraction granularity of the confidentiality reader set: The authors note in Section 7 that SPIDES abstracts confidentiality readers as a subset of the user and source set, cannot distinguish between different authorized and unauthorized recipients within the same source, may cause false negatives for same-source confidentiality attacks, and may cause false positives because the same reader is represented differently across sources.
    • Inability to precisely track authenticated session state: The authors note in Section 4.2.2 and Appendix B that because mechanisms such as single sign-on (SSO) tokens and cross-subdomain cookies make authentication state difficult to track precisely, SPIDES can only conservatively assume that trusted sources are all in a logged-in state, so that clicks that could otherwise be treated as pure outbound before login are also strictly restricted.

    Experimental coverage

    • Models tested: The experiments tested 5 models, including GPT-5.6 Sol, GPT-5.6 Terra, Claude Opus 5.5, Claude Opus 5, and Claude Sonnet 5; the main model and QLLM use the same model.
    • Evaluation ecosystem and task scale: The experiments were conducted in a closed sandbox ecosystem, MicroNet, covering 28 website sources (16 configured as trusted sources) and 470 web pages; the evaluation includes 56 benign tasks and 56 attack scenarios.
    • Input modality limitation: The experiments tested only text accessibility snapshots built from the DOM, and did not cover screenshot-based multimodal visual browser agents.
    • No production environment testing reported: The experiments were conducted on locally served sandbox websites; the paper did not deploy or test on the real open internet or production online websites.
    • Ideal user assumption: The autonomy evaluation assumes an ideal human user able to accurately distinguish benign from malicious requests; the paper does not report the error rate or approval fatigue effects of real human users when facing approval requests.
  6. Summarize the main content of the paper

    Through element-level DOM labels and action gating, SPIDES achieves 0% Byzantine ASR on MicroNet while maintaining autonomy; the authors state that fine-grained IFC can protect browser agents.

    SPIDES is an information flow control defense framework for browser agents, aimed at deterministically preventing unauthorized consequential actions and sensitive data leakage caused by indirect prompt injection, without relying on the model's own alignment.

    • Problem background: browser agents lack security isolation when automating cross-origin interactions; the existing same-origin policy hinders legitimate cross-origin data flows and cannot defend against same-origin internal attacks, while coarse-grained masking schemes are vulnerable to data injection attacks.
    • Method design: website operators provide DOM element-level integrity and confidentiality labels; the framework replaces untrusted and confidential content with opaque variables, allows consequential actions on trusted sources only when both context and arguments are trusted, and restricts data to flow only to authorized sources; it provides a quarantined model call and an explicit variable check tool to support benign data-dependent operations.
    • Key experimental results:
      1. In evaluations on the MicroNet benchmark across 5 frontier models, SPIDES achieves 0% ASR against a worst-case Byzantine adversary, versus 57%–96% for Vanilla and 53%–73% for SOPGuard (Figure 2).
      2. On benign tasks, SPIDES achieves a 67%–86% task completion rate (TCR) and outperforms UCM on all models (Figure 2).
      3. In the 6 data injection attack scenarios, SPIDES maintains 0.0 ± 0.0% ASR on all 5 models, while UCM's ASR reaches 43.3%–63.3% (Table 4).
      4. In data-dependent benign tasks, SPIDES maintains a TCR of 92.0%–98.7%, outperforming UCM+'s 68.0%–81.3% (Table 3).
      5. In the autonomy evaluation under the same safety guarantees, when the number of allowed human interventions does not exceed 8, SPIDES completes more tasks than SOPGuard and UCM on all 5 models (Figure 3).
    • Authors' conclusions and implications: the authors consider fine-grained information flow control a viable path to effectively extending web security to browser agents, maintaining high autonomy and task completion capability without sacrificing safety guarantees.
Read originalarxiv.org