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
- Boots the official Apache-2.0
nsdeploybrowser runtime (docs/runtime/) withsite-actions.jsandnsdeploy-actions-v1MessageChannelbridging (docs/bridge/action-bridge.html), passingcheck_partner.mjswith zero errors. - Audits
agentfacts.json,agent-manifest.json,.network.json,links.json, andmcp.jsontogether across 5 validation layers, strictly rejecting misplacedwebsite_*strings (OAW021), shadow egress (DRIFT004), cycles (OAW018), andsly_datawildcards (DRIFT006). - Simulates 140-char consent-card smuggling (
REDTEAM001) and indirectread -> writeconfused-deputy attacks (REDTEAM002) side-by-side with zero API key required. - Models worst-case visitor BYOK amplification (
max_steps * (1 + hops * fanout)) and trips configurablemax_hops,max_prompt_chars, andmax_est_usdcircuit breakers. - Generates ready-to-commit
bridge-actions.hardened.js,agent-manifest.hardened.json, andnetwork.hardened.jsonpatches plus Web CryptoECDSA P-256signed 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.0nsdeployruntime (docs/runtime/). - Automated
pytestsuite (23 unit tests) plus Node.js parity verification against officialvalidation.gen.mjsandcheck_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=0on Cognizant's officialcheck_partner.mjsand zero errors onvalidation.gen.mjs. - Exact Python CLI + browser JS parity (
100/100 Grade Aon livedocs/,0/100 Grade Fonexamples/drifted_bundle), 23/23pytestpasses. - 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 auditandharden --checkon pull requests. - Live cross-origin partner probing via headless
MessageChannelbridge handshakes.
Built With
- agentfacts
- css3
- html5
- javascript
- model-context-protocol
- open-agentic-web
- python
- svg
- web-crypto-api