Inspiration
The open agentic web lets one site load another site's agent network and run it in your browser. That's powerful, but it means your agent reads instructions written by a stranger. The spec itself says peer networks must be treated as untrusted input that can try to manipulate the caller's model. Yet there was no easy way to check a site before linking to it, and the official repo's validation script was still marked as to-do. I built AgentGuard to fill that gap.
What it does
- Paste any agentic site's network URL, or tap a demo button
- AgentGuard fetches its agent-manifest.json and network file as data only. It never runs them.
- It checks spec conformance: HTTPS, CORS, exact network name match, front agent, unique agent names, resolved references, peer policy, and leaked API keys
- It scans every agent's instructions and descriptions for prompt injection: instruction overrides, role hijacks, system prompt requests, data sent to outside URLs, tracking-pixel image leaks, skipped confirmations, invisible zero-width text, and hidden base64 payloads, which it decodes before scanning
- It gives a trust score out of 100, a verdict (Safe to link, Use with caution, or Do not link), and an embeddable badge
- Three in-browser agents explain the results: a coordinator, a conformance auditor that tells site owners how to fix each issue, and an injection analyst that confirms or dismisses each flag
Demo: Kopi Corner
To show the threat is real, I built Kopi Corner, a friendly-looking kopitiam site whose AI barista hides 8 attacks. AgentGuard scores it 0/100. The official pizza example scores 100, and AgentGuard scores itself 100.
How I built it
- A plain HTML, CSS and JavaScript static site on GitHub Pages, with no server
- Agent network in Neuro SAN JSON format, following the MVP spec 0.2, with agent-manifest.json and the nsDeploy browser runtime
- The scanner is registered as site actions (scan_site, get_last_report), so the agents call real checks instead of guessing
- Bring Your Own Key: the visitor picks their LLM router and key, so the site pays nothing for inference
- The quick scan works with no AI key at all
Challenges
- My own security instructions triggered my own scanner, because words like "credentials" look suspicious. I changed scoring so mentions are informational and only cost points alongside a real attack, like sending data to a URL.
- A scan that stops early gave a misleadingly high score, so incomplete scans now score 0 with "Could not verify".
What I learned
How the agentic web spec handles consent, CORS, private context and pluggable inference, and how prompt injection hides in places humans never look, like function descriptions and invisible characters.
What's next
- A command-line version so site owners can check their site before publishing
- A public leaderboard of agentic sites and their trust scores
- Signed scan results that other runtimes can check before loading a peer
Try it
Live site: https://apihpih96.github.io/agentguard/ Code (MIT): https://github.com/Apihpih96/agentguard
Built With
- css3
- github
- html5
- javascript
- json
- neuro-san
- nsdeploy
- otari
