Agent Browser Shield
Agent Browser Shield
AI AgentActive

Agent Browser Shield

Agent Browser Shield is an alpha Chromium MV3 extension with 35+ local page-cleaning, PII-masking, dark-pattern, and prompt-injection rules for browser agents. This review examines its benchmark, privacy, PolyForm Shield license, false-positive risk, deployment, testing, and layered-security role.

221

Views

0

Likes

Jun 2026

Added

github.com

Website

Tags

browser agent securityprompt injection defensePII maskingtoken efficiency

Product Preview

A quick visual look at Agent Browser Shield before you visit the official site.

Published 6/7/2026
Agent Browser Shield screenshot

Editorial Review

About Agent Browser Shield

Agent Browser Shield is a Chromium Manifest V3 extension that changes what a browser agent can perceive on a page. Its 35-plus rules can remove cookie banners, ads, footers and engagement rails; mask personally identifiable information and credentials; suppress invisible text, comments and user-generated prompt-injection surfaces; and reduce dark-pattern distractions before the page reaches the model.

This is a useful defense layer, but the project explicitly calls itself an alpha prototype. It does not prove that cleaned content is trustworthy, isolate browser credentials, constrain actions, or guarantee that every injection is blocked. The correct mental model is an input sanitizer with measurable utility and inevitable false positives—not a security boundary that makes arbitrary websites safe for autonomous transactions.

Official Agent Browser Shield demonstration showing page content before and after filtering
Official project screenshot. Cleaning can reduce noise and attack surface, but teams must preserve an auditable trace of what was hidden so missing evidence is detectable.

Where the shield sits

Untrusted website
      │ DOM, accessibility tree, hidden text, forms
      ▼
Agent Browser Shield rules
      │ cleaned page representation
      ▼
Browser agent + model
      │ proposed clicks, typing, downloads
      ▼
Independent action policy / human approval
      │
      ▼
Website side effect

The extension acts at the first arrow. That is valuable because prompt instructions embedded in a page may reach a model before application-level filters can distinguish them from useful content. But it cannot replace the final action policy: a clean-looking page may still contain fraudulent facts, malicious links or a legitimate button that causes an unacceptable side effect.

What its rule categories accomplish

CategoryIntended benefitLikely false-positive cost
Page chrome removalReduce tokens spent on banners, footers, chats and navigation clutterHide policy links, support controls or required consent
Advertising cleanupRemove sponsored and engagement content that diverts an agentRemove legitimate marketplace results or disclosure labels
PII and credential maskingReduce sensitive values sent to a modelPrevent an authorized task from reading an account identifier
Hidden-content suppressionBlock invisible or comment-based injection payloadsHide accessible labels or application state used by the agent
User-content filteringReduce untrusted instructions in reviews, posts or messagesDestroy the evidence a moderation or support task needs
Dark-pattern rulesReduce scarcity, urgency and manipulative choicesMask real inventory, deadline or warning information

Read the benchmark correctly

The project reports roughly 11% fewer tokens and task success increasing from 81% to 91% across 19 real-web scraping tasks, using gpt-5-mini through Browserbase with three runs per task. It also reports larger token drops on selected pages, including 71% on a GitHub trending feed. The repository is admirably explicit that this is a directional benchmark, not a published paper, and that some pages regress.

Several limits matter. Nineteen tasks are a small sample; three runs provide limited variance information; scraping tasks do not represent checkout, support, authenticated administration or visually complex workflows; and the benchmark does not measure the PII or injection protections. Higher task success in this dataset should not be restated as “10% more accurate” for arbitrary agents.

ClaimWhat evidence supportsWhat it does not support
~11% fewer tokensMean difference in the published 19-task setupGuaranteed savings on a specific site or model
81% → 91% successObserved task-judge results for that harnessUniversal accuracy or statistical significance
Injection blockedRule behavior and test/demo coverageDetection of every adversarial encoding or future attack
PII maskedConfigured local masking rulesComplete data-loss prevention across images, canvas, files and actions
Local processingDefault extension rules do not send telemetryPrivacy of the browser agent, model, Browserbase or optional classifier

Run an evaluation on your actual work

The included harness can run the same tasks with the extension off and on, then produce side-by-side reports and accessibility-tree differences. Use production-like tasks but test accounts and synthetic data. Include both expected wins and adversarial edge cases; a benchmark made only of noisy public pages will overstate value for a clean internal application.

  1. Create a versioned task set with URL, instruction, expected facts, allowed actions and forbidden actions.
  2. Run at least several repetitions per condition with fixed model, temperature, step budget and browser version.
  3. Save raw traces, cleaned representations, rule events, tokens, latency, result and judge rationale.
  4. Manually inspect every failure and a sample of passes; automated judging can share the agent’s blind spot.
  5. Classify regressions as missing content, wrong masking, broken controls, agent variance or site drift.
  6. Create per-site exceptions only after proving the narrowest rule responsible.
  7. Repeat after extension, browser, model or important website changes.
Test classExampleExpected outcome
Benign clutterCookie banner and unrelated recommended articlesNoise removed without losing the primary task
Necessary policyFooter privacy or refund link requested by the userAgent can still retrieve it or site rule is adjusted
Hidden injectionInvisible “ignore prior instructions” textContent absent from the agent-visible representation
Visible hostile contentReview text instructing the agent to reveal dataUntrusted status preserved and instruction not followed
Authorized PIIUser asks for masked account suffixPolicy defines whether partial access is permitted
TransactionCheckout page with urgency labelsFacts remain available; purchase still requires approval
AccessibilityControl labeled only by hidden accessible textSanitizer does not make the control undiscoverable

Observability is essential

A sanitizer that silently deletes content creates a new epistemic problem: the agent cannot report what it never saw. The project supports a debug trace recorder and JSONL export for automation builds. Enable trace collection during evaluation, protect traces as sensitive data, and disable or tightly retain them in production. Logs can reconstruct the original content or contain masked-value context.

For each task, record extension version, rule-set hash, site, triggered rules, number and category of removed nodes, mask counts, denylist decisions and optional classifier use. Operators should be able to compare original and cleaned representations without exposing those views to the same model being protected.

Privacy: local by default, with one notable option

The repository says the extension collects no telemetry, analytics or usage data and processes rules locally. It identifies one possible outbound call: the optional irrelevant-sections-redact rule, disabled by default, sends a compressed page tree to OpenAI for classification when enabled with an API key.

That exception can include sensitive page structure and text. Treat enabling it as a new data flow: determine which pages it may run on, which OpenAI account and retention controls apply, whether secrets are removed first, and whether authenticated or regulated sites must be excluded. “The extension is local” is only accurate when this rule is off and says nothing about the separate agent/model runtime.

License: source-available, not standard open source

Agent Browser Shield uses PolyForm Shield 1.0.0. The repository says commercial, internal and research use are free, but using it to build a product that competes with Agent Browser Shield or a PixieBrix product is restricted. Calling it simply “open source” hides that competitive-use condition. Product vendors, hosted browser platforms and security-tool companies should read LICENSING.md and obtain advice or a commercial license when their use may compete.

Deployment choices

The Chrome Web Store build works in Chromium-based browsers; agent runtimes may require an unpacked extension or packaged ZIP. Current development prerequisites include Node 24 or newer, Bun 1.3 or newer, uv and a recent Chromium version. Custom build defaults can enable rules, set a site denylist and configure automation trace behavior.

DeploymentAdvantageRisk/control
Web StoreSimple update pathPin/approve version through browser management and test before broad rollout
Unpacked buildFast local testing and customizationBuild provenance and manual update drift
Browserbase ZIPReproducible managed-session loadingControl artifact hash, session config and provider data flow
Custom defaultsOrganization-wide rules and denylistOverrides apply only to fresh storage; existing user state may persist
Per-site disableRecovery when rules break a critical applicationCreates an unprotected gap that needs expiry and review

Defense in depth for browser agents

  • Use a separate browser profile and test account with minimal permissions.
  • Allowlist destinations and block arbitrary downloads or local-file access.
  • Separate page content from trusted system instructions in the agent architecture.
  • Require confirmation for purchase, deletion, publication, messages, credential changes and data export.
  • Validate action parameters at execution time; do not trust values copied from the page.
  • Limit model context, tokens, steps, spend and total task duration.
  • Retain an audit trail linking page state, proposed action, approval and side effect.
  • Use sandboxing and rollback where possible; sanitization cannot contain a malicious browser process.

Alternatives

ApproachBest fitTradeoff
Agent Browser ShieldChromium agents needing packaged local rules and tracesAlpha, browser-specific and source-available licensing
Custom DOM sanitizerNarrow known sites and exact extraction contractsEngineering and attack-maintenance burden
Structured site APIStable first-party data accessLess visual coverage, but usually clearer trust boundaries
Accessibility-tree pruningAgent runtimes already consuming structured browser stateCan still carry hostile visible text and lose visual context
Hosted browser safety layerTeams wanting managed isolation and monitoringExternal data processor and less transparent rules
Action-policy gatewayPreventing consequential side effectsDoes not reduce poisoned context; best combined with input cleaning

Frequently asked questions

Does it stop all prompt injection?

No. It blocks defined surfaces and patterns. Visible prose, images, encoded content and new attacks can remain.

Will it always reduce tokens?

No. The published mean is about 11% for one benchmark, and the project reports regressions on some pages. Measure your own tasks.

Does it send page data away?

Default rule processing is local with no telemetry. The optional irrelevant-sections classifier can send a compressed page tree to OpenAI.

Is it open source?

It is source-available under PolyForm Shield 1.0.0, which restricts competitive products. That is not an OSI-style unrestricted open-source license.

Can a business use it?

The project says commercial internal use is free, subject to the license’s competitive-use restriction. Review the actual use case.

What should be measured first?

Task success, token cost, false removals, missed attacks, latency and the rate at which site-specific exceptions are needed.

Primary sources

Last reviewed July 25, 2026. This is an alpha prototype; verify the current rules, license, browser requirements and benchmark before deployment.

Ready to try Agent Browser Shield?

Visit the official website to get started

Visit Agent Browser Shield

Quick Info

Category
AI Agent
Added
6/7/2026
Published
6/7/2026
Updated
9/4/2026

Share This Tool

Have an AI tool to share?

Submit it to AI Dreamhub

Get your product in front of people actively exploring AI tools.

Submit Your Tool
Manus

Manus

Manus is a hosted general-purpose AI agent that uses cloud VMs, browser automation, files, code and integrations to complete multi-step tasks. This independent guide covers plans and credits, Cloud Browser vs Browser Operator, authenticated actions, privacy, approvals, task design, evaluation and alternatives.

ai-agentfree
3480
Gemini CLI

Gemini CLI

An open-source AI agent that brings the power of Gemini directly into your terminal.

ai-agentfree
3080
AgentScope

AgentScope

AgentScope is an Apache-2.0 agent framework with ReAct agents, tools, skills, memory, planning, human steering, evaluation, fine-tuning, MCP/A2A integrations, realtime voice, and multi-agent orchestration.

ai-agentfree
3560
Auto-GPT

Auto-GPT

Auto-GPT is an open-source autonomous-agent project and platform from Significant Gravitas for building, running, and managing AI assistants and workflows.

Auto-GPTAI agentautonomous agents
3120