Inspiration

Open Agentic Web MVP 0.3 documents two hard browser trust gaps: consent cards preview only the opening 140 characters while peers receive the entire prompt, and indirect prompt injection inside a peer read response can trigger unconfirmed local write actions. Visitors also risk burning their own BYOK key balance across unbounded multi-hop peer graphs. Existing ecosystem checkers stop at warning scores. We built AgentFacts & OAW Red-Team Surgeon to reproduce those browser-boundary failures at $0 cost, protect visitor BYOK budgets, and generate drop-in hardened patches in one click.

What It Does

  1. Boots the official Apache-2.0 nsdeploy browser runtime (docs/runtime/) with site-actions.js and nsdeploy-actions-v1 MessageChannel bridging (docs/bridge/action-bridge.html), passing check_partner.mjs with zero errors.
  2. Audits agentfacts.json, agent-manifest.json, .network.json, links.json, and mcp.json together across 5 validation layers, strictly rejecting misplaced website_* strings (OAW021), shadow egress (DRIFT004), cycles (OAW018), and sly_data wildcards (DRIFT006).
  3. Simulates 140-char consent-card smuggling (REDTEAM001) and indirect read -> write confused-deputy attacks (REDTEAM002) side-by-side with zero API key required.
  4. Models worst-case visitor BYOK amplification (max_steps * (1 + hops * fanout)) and trips configurable max_hops, max_prompt_chars, and max_est_usd circuit breakers.
  5. Generates ready-to-commit bridge-actions.hardened.js, agent-manifest.hardened.json, and network.hardened.json patches plus Web Crypto ECDSA P-256 signed registry cards.

How We Built It

  • Pure Python 3.12 stdlib CLI and audit/hardening library (src/agentfacts_verifier/: nanda.py, oaw.py, mcp.py, drift.py, registry.py, hardening.py).
  • Parity ES module browser workbench (docs/verifier-core.js, docs/asymmetric-engines.js) paired with the vendored Apache-2.0 nsdeploy runtime (docs/runtime/).
  • Automated pytest suite (23 unit tests) plus Node.js parity verification against official validation.gen.mjs and check_partner.mjs.

Challenges We Ran Into

Enforcing nsdeploy actions.js schema strictness (Object schema requires properties and additionalProperties: false) required restructuring complex object tool inputs into validated JSON string parameters, and removing our earlier website_* whitelist uncovered how easy it is for static checkers to diverge from validation.gen.mjs.

Accomplishments That We Are Proud Of

  • Verified exit=0 on Cognizant's official check_partner.mjs and zero errors on validation.gen.mjs.
  • Exact Python CLI + browser JS parity (100/100 Grade A on live docs/, 0/100 Grade F on examples/drifted_bundle), 23/23 pytest passes.
  • Actionable output: instead of another passive linter, builders get copyable hardened code patches and visitors get a BYOK circuit breaker.

What Is Next

  • Automated GitHub Action workflow running agentfacts-verifier audit and harden --check on pull requests.
  • Live cross-origin partner probing via headless MessageChannel bridge handshakes.

Built With

Share this project:

Updates

Submission history