Live Reverse-Exfiltration Workbench · MessageChannel + Dedicated Worker + SQLite DO
ACP Context Firewall Lab
Connecting your own personal Agent Client Protocol (ACP) harness to a website lets you reuse your preferences and model across the web instead of using isolated site chatbots. It also creates a reverse data-leak risk: an untrusted site can prompt your agent to disclose off-site personal data. This workbench sends live JSON-RPC 2.0 ACP messages across two browser MessageChannel pairs and a Dedicated Worker to measure what four defense layers (L0–L3) actually stop.
Browsers isolate websites with the Same-Origin Policy and Storage Partitioning. Bridging a shared personal ACP agent into https://shop.example opens a reverse path: hostile prompts, product reviews, or WebMCP tool descriptions can coerce the agent into leaking salary, address, private repo, or bank.example tab data.
2. What this opens up
Visitors can bring their own model, API keys, and portable profile to any site—sharing only checked fields such as shipping_country, shoe_size, and budget_limit—without creating siloed chatbot accounts or exposing off-site private context.
3. How the tests work
Pick any defense layer (L0–L3) and run 8 attacks over real MessagePort channels into /agent-worker.js. Compare a system prompt, a port-authority DLP proxy, a taint-lock diff gate, and a per-origin clean-room Worker recorded in a SQLite Durable Object.
ArchitectureHow an untrusted site reaches your agent across two MessagePort hops
Browser Runtime · Real MessageChannel pairs + Dedicated Worker (/agent-worker.js)
Untrusted Site
Untrusted Storefront https://shop.example
session/prompt · DOM reviews · WebMCP tools/call
Sends JSON-RPC 2.0 ACP requests over MessagePort #1
Re-checks every attack verdict server-side on POST /api/evaluate and stores each session's granted scopes, blocked/leaked counts, and transcripts in SQLite at GET /api/audit/:sessionId.
Every test sends real JSON-RPC 2.0 ACP frames across two MessageChannel pairs into /agent-worker.js. Selecting Layer 3 removes ungranted claims from the Worker's session memory altogether.
1. Pick a Defense Layer
Choose how strongly to isolate your personal agent before running attacks over live MessageChannel pipes.
2. Choose Allowed Personal Fields
Check only the fields https://shop.example is allowed to receive; Layer 3 omits unchecked fields from Worker memory.
Grant
Claim & Canary Value
Origin
Status
3. Run an Attack Vector
Click any scenario to send a real JSON-RPC 2.0 ACP turn across MessageChannel into /agent-worker.js.
Idle
4. Inspect Firewall Verdict & Wire Output
Run any attack or the full 8×4 scorecard to compare raw Worker output against what reaches the site.
Reference browser bridge pattern that intercepts MessagePort traffic between a page and a personal agent outside page JavaScript.
Why Bring-Your-Own ACP Agent to Websites?
Evaluating user benefits alongside reverse-exfiltration hazards when a personal agent replaces first-party site widgets.
1. Portable User Context Without Account Duplication
Users avoid re-entering sizing, shipping destination, dietary constraints, or budget limits into hundreds of separate site chatbots. One user-controlled profile supplies only scoped claims per origin.
2. User-Chosen Model, Cost, and Retention Policy
Instead of routing prompts through an opaque vendor widget that logs conversations for ad targeting, the user connects a local or self-hosted ACP agent over a bridge such as port-authority.
3. Standardized Tool Composition (WebMCP + ACP)
Sites declare typed tools once (search_catalog, check_inventory) and expose them over WebMCP or MessagePort, eliminating brittle DOM scraping while enabling strict schema validation.
4. The Structural Cost: Asymmetric Trust
The moment a personal agent with cross-origin memory ingests untrusted website DOM, reviews, or tool schemas, the page gains an indirect prompt channel into the user's private context. Confidentiality therefore requires architectural isolation, not prompt wording.
Architectural Layering Model: Harness vs. Proxy vs. Browser-Native
What each layer enforces, where it fails empirically, and why the harness alone cannot be trusted.
Architectural Layer
Trust Anchor
Reliably Prevents
Cannot Prevent (Empirically Falsified)
Engineering Conclusion
Full 8-Vector Reverse-Exfiltration Attack Taxonomy
Every vector below is executable in Tab 1 against all four defense layers.
Bridging the gap between what port-authority achieves today and what browser platforms should standardize.
Per-Origin Context Partitioning: Just as browsers partition storage, cookies, and caches by origin, a browser-native ACP mediator should spawn an isolated context per origin so bank.example transcripts never coexist with shop.example prompts.
Browser-Mediated Scoped Permission UI: Claim grants (shipping_country, shoe_size, budget_limit) belong in trusted browser chrome outside page DOM control, analogous to WebAuthn or Geolocation permission prompts.
Closed-Enum WebMCP Schema Enforcement: Browser runtimes can enforce additionalProperties: false and closed enums on WebMCP tools/call arguments before bytes cross back into the site's JavaScript realm.
On-Device Semantic Egress Classification: Lightweight local models such as Chrome's built-in LanguageModel API can screen tainted responses for semantic paraphrases without sending user data to a third-party server, backing up clean-room scope isolation.
Honest Residual Side-Channel Disclosure: Even with clean-room isolation, any claim explicitly granted to an origin remains observable via output length, inference latency, or selection behavior—so minimization of granted scopes remains mandatory.