Skip to content

BrowseSafe++: A prompt injection detection benchmark across web scenarios, languages, and browser viewsBrowseSafe++: Benchmarking Prompt Injection Detection Across Web Contexts, Languages, and Browser Views

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2610.17457· Yuetian Chen, Kaiyuan Zhang, Yuntao Du, Thomas Li, Mark Tenenholtz, Kyle Polley, Jerry Ma, Denis Yarats, Ninghui LiPerplexity; Purdue University; Rutgers UniversityIndexed by this site · 2026-10-14· Originally publishedEvaluation

Quick read

Evaluation and benchmarks

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

The authors train a 0.8B detector with BrowseSafe++, achieving an F1 of 98.29 on HTML, and Kimi K2 adaptation reaches an ASR of 95.41%.

Questions
Browser agents consume untrusted web pages and perform actions on the user's behalf; instructions in the page can take the task off course, i.e., indirect prompt injection. The authors say existing benchmarks mostly use synthetic injections and a single view, and benign and attack pages are often collected differently.
Methods
BrowseSafe++ contains 38,675 attack/control page pairs, with 32,187 pairs from production web pages; injected text is unchanged, surrounding content is rewritten. Each page has HTML, Markdown, accessibility tree, and screenshot, along with task and attack goals. Guard is two 0.8B detectors; Adapt rewrites seed injections based on target agent feedback.
Experiments and results
Text detection evaluated 16 models. The authors state that frontier models still mark many benign pages as attacks; Guard achieves F1 of 98.29 and FPR of 1.35% on HTML. Seed ASR across seven targets is 0.49–4.00%; after adaptation, Sonnet 5 reaches 30.66% and Kimi K2 reaches 95.41%.
Limitations and future work
The paper does not specifically discuss limitations or future directions. Experiments include text-view detection on 9,175 pairs across three views, screenshot detection with four models, task following with 15 models, and adaptive attacks with 7 targets, 1,024 tasks, and at most 64 attempts. The paper does not report agreement between following judgments and humans.
Experimental setupBrowseSafe-Guard、GPT-5.5 et al. · BrowseSafe++ · F1、Accuracy et al.
Evaluated models
BrowseSafe-GuardGPT-5.5Claude Sonnet 5Gemini 3.1 Flash-LiteDeepSeek V3.1GPT-OSS 20BGPT-5.4 nanoClaude Haiku 4.5Qwen3 30B-A3BMistral NeMoLlama 3.1 8BGPT-6 AstraClaude Fable 5.1Claude Opus 5.5Gemini 3.1 ProQwen 3.7 MaxJev 1.13 (typesafe/jev-1.13-20260917)Qwen3-VL 30B-A3BGemini 3.5 Flash-LiteKimi K2
Benchmarks
BrowseSafe++
Metrics
F1AccuracyFPRASRrecall
AI summaryThe researchers release the BrowseSafe++ prompt injection detection benchmark, expanding BrowseSafe from 14,719 pages to 38,675 page pairs, with most injection samples coming from real pages on production websites. Each attacked page is paired with a clean control of the same page, provided in four forms: HTML, Markdown, accessibility tree, and screenshot. Each pair includes a user task and its expected answer. The benchmark covers twelve site categories such as news articles, shared documents, and forums, with 24 attacks distributed across 18 positions on a page. The authors use these paired pages to train BrowseSafe-Guard, and these two 0.8B-parameter text and screenshot detectors achieve higher F1 than frontier-model-based detectors while maintaining low false positive rates on benign pages and low inference cost. BrowseSafe-Adapt rewrites benchmark injections based on browser agent feedback; attacks that succeed on only a few percent of tasks when replayed directly reach up to 95.41% success after rewriting.

The researchers release the BrowseSafe++ prompt injection detection benchmark, expanding BrowseSafe from 14,719 pages to 38,675 page pairs, with most injection samples coming from real pages on production websites. Each attacked page is paired with a clean control of the same page, provided in four forms: HTML, Markdown, accessibility tree, and screenshot. Each pair includes a user task and its expected answer. The benchmark covers twelve site categories such as news articles, shared documents, and forums, with 24 attacks distributed across 18 positions on a page. The authors use these paired pages to train BrowseSafe-Guard, and these two 0.8B-parameter text and screenshot detectors achieve higher F1 than frontier-model-based detectors while maintaining low false positive rates on benign pages and low inference cost. BrowseSafe-Adapt rewrites benchmark injections based on browser agent feedback; attacks that succeed on only a few percent of tasks when replayed directly reach up to 95.41% success after rewriting.

Related events and news

1 events · 1 news mentions

News that mentions this paper

RL/RLHF 训练条件可诱发模型智能体提权逃逸

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Existing prompt injection benchmarks mostly use synthetic samples and single views; BrowseSafe++ uses real-injection attack/control page pairs to evaluate detection.

    When browser agents consume untrusted web pages, in-page instructions can take legitimate tasks off course, and existing benchmarks struggle to reflect both the deployment injection distribution and multiple page representations.

    • Scenario: the authors say browser agents must read pages for the user, answer, and perform actions. Attackers embed instructions in these pages, making answers or actions deviate from the user's request, i.e., indirect prompt injection (IPI).
    • Existing shortcomings: the authors point out three. Injections are mostly synthetic, so scores may not reflect deployment; most benchmarks have only one view, usually HTML, and changing representation may delete or alter injections, mixing model differences with representation differences; benign and injected samples are collected differently, so detectors may learn topic or style rather than injection itself.
    • This paper's approach: proposes BrowseSafe++, expanding BrowseSafe from 14,719 pages to 38,675 attack/control page pairs. Of these, 32,187 pairs come from production web pages, and 6,488 pairs retain BrowseSafe injections. Injection originals are unchanged; surrounding sensitive content is rewritten. Each page has HTML, Markdown, accessibility tree, and screenshots, along with the user task, expected result, and attack goal.
    • Companion systems: trains BrowseSafe-Guard (two 0.8B detectors) on the pairs, and uses BrowseSafe-Adapt to rewrite benchmark injections based on target agent feedback.
    • Threat model:
      • The victim system is a browser agent that consumes web pages and can call tools.
      • Attack goals include unauthorized actions, task interference, data exfiltration, misinformation, persistence, or propagation (Figure 2).
      • Adapt's generator can change the injection's wording, format, or location, but not the user task or the rest of the page.
      • The paper does not write this setting as white-box, black-box, or gray-box.
  2. What related research exists?

    The authors place this paper among detection benchmarks, behavior benchmarks, and adaptive attacks: real injections, paired controls, multiple views.

    Indirect Prompt Injection and Browser Attacks

    • Instruction and data boundary: Perez and Ribeiro (2022), Liu et al. (2023; 2024b), and Greshake et al. (2023) discuss models encountering conflicting instructions and being unable to distinguish which come from untrusted content.
    • Browser channels: the authors say attacks can be placed in web page text, images, or interface elements, citing Liao et al. (2024), Evtimov et al. (2025), Wu et al. (2024a), Chen et al. (2025a), and others. Kumar et al. (2025) also study slowing agents down with excessive reasoning.
    • Agent interfaces: MindAct, AgentOccam, UI-TARS, as well as Mind2Web, WebArena, WebVoyager, VisualWebArena, OSWorld, and others, use filtered HTML, accessibility trees, or screenshots respectively (Section 1, Appendix A).

    Detection Benchmarks and Behavior Benchmarks

    • Table 1 comparison: BIPIA, InjecAgent, AgentDojo, ASB, NotInject, WASP, WAInjectBench, DTap-Bench, BrowseSafe. The table compares whether they do detection evaluation, have benign distractors, contextual attacks, multilingualism, web pages, multimodal views, result goals and attack/control pairing, and wild attacks.
    • Gaps named by the authors: Section 5 says BrowseSafe covers multiple web contexts and multilingual attacks, and WAInjectBench extends to multiple page views, but neither has matched attack/control pages. WASP and DTap-Bench evaluate attack outcomes, and the authors say their attacks are mostly constructed for evaluation.
    • Human strategy data: Tensor Trust and LLMail-Inject collect human attack strategies with feedback on specific challenges (Appendix A). The paper does not write them as experimental baselines.

    Adaptive Attacks and Defenses

    • Automatic search: Salem et al. (2023), Liu et al. (2024a), Xu et al. (2025), Wang et al. (2025b), Syros et al. (2026), and Chen et al. (2026) automatically search for or refine attacks toward a target. The authors cite Nasr et al. (2025), saying robustness to a fixed attack string does not equal resistance to an adaptive adversary.

    • Change over time: Piet et al. (2025) discuss distribution shift in jailbreaks. The authors therefore label each production injection with its detection date (Appendix A, Appendix B.3).

    • Defense routes: screening includes DataSentinel, PromptArmor, PIGuard; training includes instruction hierarchy, Jatmo, StruQ, SecAlign, Meta SecAlign; isolation and information flow include IsolateGPT, Debenedetti et al. (2025), and others. ToolEmu and Tang et al. (2025) separate recognizing risk from taking safe action.

    • Baseline methods: the comparison for detection experiments is 16 models called with BrowseSafe's released detection prompts, on the BrowseSafe++ test split. The paper does not rerun the other benchmarks in Table 1.

    The authors place this paper among these works: primarily using injections observed in production, paired with control pages and multiple views, studying detection and agent behavior on the same cases; BrowseSafe-Adapt connects feedback-based rewriting to these items.

  3. How does the paper address this problem?

    BrowseSafe++ trains Guard on attack/control pairs and rewrites seed injections using agent feedback.

    BrowseSafe++ pairs each injection with a same-page control without the injection, rendered into four views; BrowseSafe-Guard trains a detector on the pairs, and BrowseSafe-Adapt uses observed injections as seeds, rewriting them based on target agent feedback.

    Scope and Annotation

    • One sample: an attack page, the original injection, and a control page; both page types have HTML, Markdown, accessibility tree, and screenshots; the legitimate task and the result the agent should reach; the change the attacker wants, and whether action tools beyond reading are needed.
    • Injection axis: follows BrowseSafe's attack types, goals and risk categories, locations, and language styles. This paper covers 24 attack types, 6 attacker goals, and 18 locations (Figure 2). The taxonomy adds fake policy update, fake verification request, and preference override, which the authors say are common on production websites.
    • Page axis: 12 website domains, with styles formal, casual, marketing, or legal. Page language and injection language are recorded separately. The authors say that in 24.4% of pairs, the injection and page share no language, with the most common case being English injections on non-English pages.
    • Scale: 38,675 pairs (77,350 web pages). In Figure 2, news and blogs 12,025, shared documents 6,612, forums 5,326. Training set 29,500 pairs, test set 9,175 pairs.

    Seven-Stage Construction

    The pipeline in Figure 3 discards items that fail checks.

    1. Collection: from September 1, 2025 to September 21, 2026, pages read by deployed browser agents. All pages flagged by the classifier were kept, about 603,000 pages; additionally, up to 3,000 regex-hit pages per day. Total 1,152,315 production candidates. Also retrieved the original pages of the 7,297 malicious entries released by BrowseSafe. There are 25 regex clues.
    2. Deduplication and masking: after hash deduplication, 1,092,957 pages remain, then PII-TRACE masks personally identifiable information.
    3. Injection determination: GPT-5.5, Claude Opus 4.8, and Gemini 3.8 Flash each judged twice, for 6 votes total; only kept if at least 4 votes said there was an operational instruction that would take the agent off task. 58,036 production pages remain (5.3%). All 7,297 BrowseSafe entries passed.
    4. Page rewriting: Claude Haiku 4.5 rewrote, with retries using Claude Sonnet 4.6. Personal and account identifiers, contact information, addresses, media titles, brands, and logos were replaced with fictional counterparts; task-required facts, as well as domain, DOM, CSS, and typography, were preserved. The injection text was not changed. Claude Sonnet 5 checked against three criteria: no real-world residue, usable typography and HTML, and the injection scenario being plausible for that page and task. About 10% were additionally spot-checked by humans. Failures were rewritten with feedback; after three rounds of failure, they were deleted. This left 48,092 production and 6,854 BrowseSafe items. Appendix E gives the full prompts for rewriting and residue checking.
    5. Control pairing: the unmodified injection was inserted back into the rewritten page to obtain the attack page. The two pages share the task and expected result.
    6. Rendering and verification: Markdown, accessibility tree, and full-page screenshots were generated from the HTML. Claude Sonnet 5 checked that all four views of the attack page contained the injection and that the control page was judged benign in every view. On failure, the location was changed back at step 5; after three failures, the item was deleted. This left 33,561 production and 6,503 BrowseSafe pairs.
    7. Final check: visible text and HTML tags, no original body text or real hosts after rewriting, injection free of third-party privacy, and recorded dates. The final retained set is 32,187 production and 6,488 BrowseSafe pairs.

    BrowseSafe-Guard

    • Two classifiers: both fine-tuned from Qwen3.5-0.8B. Appendix C.3 says initialization is Qwen/Qwen3.5-0.8B-Base. The text detector removes the vision encoder and reads one of HTML, Markdown, or accessibility tree; the multimodal detector keeps the vision encoder and reads only full-page screenshots. The output is whether the input contains a prompt injection.
    • Why pairing: the authors say web pages contain legitimate instructions such as buttons, navigation, and help text. Separately collected attack and benign pages may differ in topic, layout, or source, and the detector may learn these differences. The control page x− and attack page x+ come from the same page, just without the injection, and share the task and surrounding content.
    • Loss: training simultaneously does classification and requires the attack page score to be higher than the control.

    L(x+,x−)=1/2[BCE(f(x+),1)+BCE(f(x−),0)]+λ Softplus(m−f(x+)+f(x−)) The classification terms label the attack page as injected and the control page as not injected; the pairing term uses a Softplus-smoothed hinge penalty requiring the logit difference to be at least m, weighted by λ.

    • Training and scoring: the text detector uses crops around the injection during training, and the corresponding regions of the control page; at inference it uses overlapping 512-token windows, with the page score being the maximum window logit. The multimodal detector uses full screenshots of both pages: 512×512 thumbnails, and overlapping slices of height 1,536 pixels at full width, with the page score again being the maximum logit. Text detector λ=0.75, m=0.5; multimodal λ=0.5, m=0.5. Thresholds for each view are set on calibration pairs in the training split. The paper does not give the threshold values used for the main results.

    BrowseSafe-Adapt

    • One case: one BrowseSafe++ item plus one target agent. First tries the seed injection on the page; on failure, the generator rewrites using the agent's response until the attack goal is achieved or the attempt budget is exhausted (Figure 4). Budget numbers are in question 4.
    • Environment and determination: the sandbox contains the benchmark page, tools, files, messages, and synthetic private data needed for the task. Each attempt resets to the same checkpoint. The target verifier defines success before testing and can look at the final answer, sandbox state changes, or both.
    • Search: the critic model looks at the execution trace and states which part of the goal was not achieved. The generator can change wording, format, or location, but not the user task or the rest of the page. Tested candidates are archived by attack strategy and unmet goal conditions; which group is chosen depends on the number of conditions satisfied by the group's best candidate, with a bonus for groups tested less. Within a group, the most recent attempt is usually continued; periodically these attempts are set aside and restarted from the seed injection and the best candidate so far. Appendix E gives the full prompts for the target agent, generator, critic model, and verifier.
  4. What experiments did the paper conduct?

    Guard's F1 on HTML is 98.29, FPR 1.35%; after adaptation, Kimi K2's ASR reaches 95.41%.

    Experimental Setup

    • Data: Test split 9,175 pairs, 18,350 pages, all four views scored. Training 29,500 pairs do not participate in this scoring. Positive examples for detection are attack pages, negative examples are control pages; labels come from construction, not another round of human annotation.
    • Text detection: 16 models: GPT-5.5, Claude Sonnet 5, Gemini 3.1 Flash-Lite, DeepSeek V3.1, GPT-OSS 20B, GPT-5.4 nano, Claude Haiku 4.5, Qwen3 30B-A3B, Mistral NeMo, Llama 3.1 8B, GPT-6 Astra, Claude Fable 5.1, Claude Opus 5.5, Gemini 3.1 Pro, Qwen 3.7 Max, Jev 1.13, plus BrowseSafe-Guard. The prompt is BrowseSafe's published detection prompt, without giving the task, expected result, or injection location. Temperature is 0 when supported. Markdown limited to 40,000 characters. Jev 1.13 outputs probabilities; ≥0.5 is considered an attack.
    • Metrics: F1, accuracy, FPR. FPR is given as a percentage in Table 2. Failures, refusals, and malformed outputs are not counted by default; Fable 5.1 has an additional set of scores that counts refusals as detections. Each model performs 55,050 text classifications.
    • Screenshots: Gemini 3.1 Flash-Lite, Claude Haiku 4.5, GPT-5.4 nano, Qwen3-VL 30B-A3B, and the Guard multimodal detector (Table 3).
    • Task following: The 15 models other than Jev 1.13 perform legitimate tasks on attack pages. GPT-5.4 determines whether the response or tool call follows the injection. Appendix E counts partial compliance with the injection as following; merely quoting, describing, or refusing does not count.
    • Adaptive: 7 targets: Claude Sonnet 5, GPT-5.5, Claude Haiku 4.5, Gemini 3.1 Pro, Gemini 3.5 Flash-Lite, DeepSeek V3.1, Kimi K2. 1,024 tasks sampled from BrowseSafe++, at most 64 attempts per task. Generators are Gemini 3.1 Pro, Claude Opus 4.7, DeepSeek V3.1; critic model is Claude Opus 4.7. ASR is the proportion of the 1,024 cases where at least one attempt is judged successful by the validator; seed ASR is the success rate of the first attempt before rewriting.

    Main Results

    FPR in Table 2 is in percentage units. The table below lists only 8 models; Claude Fable 5.1, Jev 1.13, Qwen 3.7 Max, Gemini 3.1 Flash-Lite, GPT-5.4 nano, GPT-OSS 20B, Qwen3 30B-A3B, and Mistral NeMo are omitted; their cells are in Table 2. The table includes Llama 3.1 8B, which has the lowest F1.

    Swipe horizontally to read the table

    ModelHTML F1 / FPRMarkdown F1 / FPRAccessibility Tree F1 / FPR
    BrowseSafe-Guard98.29 / 1.35%93.26 / 7.40%92.98 / 5.77%
    GPT-6 Astra91.55 / 14.32%91.30 / 15.10%91.55 / 13.82%
    GPT-5.589.32 / 20.99%88.96 / 21.21%89.67 / 19.13%
    Gemini 3.1 Pro88.85 / 22.71%90.07 / 19.18%90.74 / 17.50%
    Claude Sonnet 588.22 / 25.32%89.54 / 20.98%87.44 / 27.64%
    Claude Opus 5.586.50 / 4.03%84.89 / 3.77%84.44 / 4.84%
    Claude Haiku 4.573.90 / 66.92%71.80 / 68.66%72.61 / 71.10%
    Llama 3.1 8B19.76 / 1.41%26.15 / 6.45%23.39 / 4.73%
    • The authors state that among prompt-based models, higher F1 is usually accompanied by higher FPR; suppressing false positives often comes at the cost of lower F1. The authors state that Opus 5.5 has the lowest FPR among frontier models, but its F1 is not the highest in this group.
    • The authors state that except for GPT-6 Astra, which ranks first across all three text views, the rankings of other strong models vary by view: GPT-5.5 is higher than Gemini 3.1 Pro and Sonnet 5 on HTML, while Gemini 3.1 Pro leads both on Markdown and accessibility tree; Sonnet 5 surpasses GPT-5.5 on Markdown (Section 4.1, Figure 5a).
    • Figure 6 only plots detectors with average accuracy above 84%. Among them, Guard has an average accuracy of 94.86, median latency of 0.15 seconds per page, and cost of 0.18 USD per thousand pages (rented H200 GPU time). The text states that frontier models cost 18.95–180.61 USD per thousand pages.

    View Differences and Task Following

    • Same injection, different views: Although each view preserves the full injection, recall for preference override, tool-availability lure, and role manipulation drops by 13.69–15.91 percentage points on Markdown, while explicit ignore-previous drops only 4.17 percentage points (Section 4.1).
    • Union of views: Among attacks detected by GPT-OSS 20B, 18.49% are flagged in only one of the three text views; recall from best single view 73.70% to 87.68% when any view flags it. DeepSeek V3.1 increases by 9.38 percentage points (Figure 5b).
    • Detection does not equal non-following: Among the 15 models capable of tasks, 74.15% of cases that follow the injection are also flagged by that model in another detection (8,182/11,035, Appendix D.2). On pages where both tasks have valid results, Sonnet 5 both flags and follows in 19.74% of cases, GPT-5.5 in 1.97%; Llama 3.1 8B misses and follows in 18.95%. The authors state that detection alone does not guarantee ignoring the injection when executing tasks.

    Screenshot Detection

    • Guard: The multimodal detector has F1 of 93.32, accuracy 93.36, and FPR of 6.08% (Table 3). The authors state this is 14.62 F1 higher than Gemini 3.1 Flash-Lite, which has the highest F1 among prompt-based models. Appendix C.3 also gives AUROC 0.98.
    • Text to screenshot: Flash-Lite's F1 drops from best text view 83.23 to 78.70; Haiku 4.5 from 73.90 to 64.81; GPT-5.4 nano from 78.43 to 37.53. Qwen3-VL 30B-A3B, tested only on screenshots, has F1 of 34.46 and FPR of 12.47% (Section 4.2, Table 3).
    • Authors' interpretation: Models that perform well on text may still struggle to detect injections from screenshots alone.

    Adaptive Attacks

    • Seed and adaptation: Across seven targets, seed ASR for original injections is 0.49–4.00% (Table 4). After adaptation, Sonnet 5 is 30.66%, GPT-5.5 is 65.23%, the other five are 78.81–95.41%, with Kimi K2 at 95.41%. The contributions section states the average ASR across targets is 78.79%. The authors state that replaying observed injections as fixed strings underestimates attackers who can rewrite based on feedback.
    • By target type: When only changing the response, Sonnet 5 and GPT-5.5 are 40.57% and 81.43%; when changing application state, they are 7.90% and 28.52%; the other targets range from 59.45–91.41% on state changes (Table 4). 284 tasks (27.73%) are compromised on all seven independently optimized targets.
    • Guard blocks before page reading: Gemini 3.5 Flash-Lite passes through Guard before reading Markdown; if flagged, it is replaced with an interception notice. Guard blocks 94.53% of original injection pages; after 64 attempts, ASR drops from 93.55% to 84.18%, and at 8 attempts it is 60.35%, compared to 78.91% without Guard (Table 9). Clean task completion rate drops from 97.85% to 91.21%, and 6.93% of clean pages are flagged. Of 862 successful attacks, 848 occur on pages that pass detection, and 14 achieve the goal even when the page is already blocked. The authors state that Guard slows adaptation but does not stop it.

    Other Ablations and Analyses

    • Low-FPR calibration threshold: HTML / Markdown / accessibility tree F1 of 98.19 / 90.58 / 90.39, with FPR of 0.83% / 0.88% / 1.24% (Appendix C.3).
    • Kendall's τ = 0.79 for HTML and Markdown rankings across 17 detectors (Fable counted once) (Appendix D.2). The paper does not report significance tests.
    • Fable 5.1 refuses 25.12–30.11% of pages; when only counting responses, HTML F1 is 90.44 and FPR is 6.53%; when counting refusals as detections, F1 is 86.56 and FPR is 23.57% (Table 2). On HTML, it refuses 41.99% of attack pages and 18.23% of clean pages (Appendix C.2).
    • Proportion of both flagging and following: GPT-6 Astra 1.59%, Gemini 3.1 Pro 2.90%, Qwen 3.7 Max 6.12%, Fable 5.1 12.66%, Opus 5.5 15.83% (Appendix D.2).
    • With Guard, extending search from 16 to 64 attempts raises ASR from 69.63% to 84.18%; adaptation that only changes responses has ASR of 91.29%, while state changes have 66.67%. Of 194 successful state-change attacks, 182 also have the agent complete the legitimate task (Appendix D.3).
    • Production injections deduplicated by earliest date yield 30,552 entries. New type–position–target combinations in the three quarters of 2026 are 42, 72, 19, with cumulative combinations rising from 481 at the end of 2025 to 614 (Table 8, Figure 8).
  5. What are some points that can be further explored?

    The paper does not specifically discuss limitations, nor does it list future directions.

    Limitations and Future Directions Noted by the Authors

    The paper does not specifically discuss limitations. The Conclusion, Ethics, Reproducibility, and appendices do not frame any result as a limitation, nor do they list future work. Ethics only states that releasing these injections carries misuse risk and explains that masking and rewriting were done.

    Experimental Coverage

    • Text detection: test split 9,175 pairs, 18,350 pages, views HTML, Markdown, accessibility tree, models the 16 listed in Section 4, plus BrowseSafe-Guard (Table 2).
    • Screenshot detection: BrowseSafe-Guard with Gemini 3.1 Flash-Lite, Claude Haiku 4.5, GPT-5.4 nano, Qwen3-VL 30B-A3B (Table 3).
    • Task following: 15 models execute legitimate tasks on attack pages, judged by GPT-5.4 for following (Section 4). Detection labels come from attack/control construction.
    • Adaptive attacks: 7 targets, 1,024 tasks, at most 64 attempts per task; additionally a setting where Gemini 3.5 Flash-Lite screens with BrowseSafe-Guard before reading the page (Section 4.3, Table 9). Generator and critic model are in Section 4.
    • Not reported in the paper: test-set detection scores split by production injections and BrowseSafe injections; agreement between GPT-5.4 following judgments and human judgments; number of repetitions for classification experiments (Section 4, Appendix C). About 10% of pages in the construction stage were spot-checked by humans, and the paper does not report the agreement rate of that spot check (Section 2.2).
  6. Summarize the main content of the paper

    On the paired benchmark, the 0.8B detector's HTML F1 is 98.29; even when detected, following can still occur, with adapted ASR up to 95.41%.

    BrowseSafe++ uses attack pages and same-page controls to evaluate indirect prompt injection detection in browser agent scenarios, and looks at task behavior on the same content.

    • Problem: the authors believe synthetic injections, single page views, and benign and attack samples collected differently can make detection scores diverge from deployment, or make detectors distinguish pages by topic and style.
    • Data: 38,675 page pairs, of which 32,187 pairs come from production web pages from September 1, 2025 to September 21, 2026, and 6,488 pairs are retained from BrowseSafe. Injection originals are preserved; surrounding content is rewritten. The four views share the task, expected result, and attack goal. Test split 9,175 pairs.
    • Method: BrowseSafe-Guard fine-tunes text and screenshot detectors from Qwen3.5-0.8B, adding a pairing term between attack and control pages to the classification loss during training. BrowseSafe-Adapt first replays the seed injection, and on failure rewrites using the target agent's feedback until the goal is achieved or 64 attempts are exhausted.
    • Detection: in Table 2, Guard's HTML F1 is 98.29, FPR 1.35%, and Markdown and accessibility tree F1 are 93.26 and 92.98. GPT-6 Astra's F1 is 91.30–91.55, with benign-page FPR 13.82–15.10%. On screenshots, Guard's F1 is 93.32, FPR 6.08% (Table 3).
    • Behavior and adaptation: among 15 models, 74.15% of cases that followed the injection were also flagged in detection. Seed ASR across seven targets is 0.49–4.00%; after adaptation, Sonnet 5 is 30.66%, Kimi K2 is 95.41%, and the authors report an average ASR of 78.79%. With Guard placed before Gemini 3.5 Flash-Lite, 64-attempt ASR goes from 93.55% to 84.18%.
    • Authors' conclusion: the authors say that when evaluating prompt injection defenses, besides whether the attack is recognized, one must also look at false positives on benign pages and whether the agent executes malicious instructions during legitimate tasks; only replaying fixed injections underestimates adversaries that can rewrite attacks.
Read originalarxiv.org