{"slug": "the-agent-surface-bugs-owasp-never-named-six-rounds-of-multi-model-adversarial", "title": "The Agent-Surface Bugs OWASP Never Named - Six Rounds of Multi-Model Adversarial Audit", "summary": "AgentBadge reported that six rounds of adversarial review by three external AI models — DeepSeek, Gemini and Grok — found 17 real bugs on its own production agent-facing surface, all of which were fixed and re-verified, moving its scanner score from 71.15 (C) to 94.7 (A) with 134 of 159 checks verified. DeepSeek alone landed 15 real findings against 5 false positives (75% precision), and the company published an eight-class taxonomy of bugs it says have no OWASP category because they only exist when the reader of a site is a machine, including an anonymous MCP execute surface that exposed all 76 tools and SSRF via unvalidated IP encodings. AgentBadge sells a scanner of 159 deterministic checks for AI-agent readiness and said the audit preceded selling it.", "body_md": "# The Agent-Surface Bugs OWASP Never Named - Six Rounds of Multi-Model Adversarial Audit\n\nWe pointed three external AI reviewers (DeepSeek, Gemini, Grok) at our own production surface for six adversarial rounds before selling a scanner: 17 real bugs, all fixed and re-verified on production, score 71.15 (C) → 94.7 (A). The taxonomy of eight classes that only exist when the reader of your site is a machine: anonymous execute surface, SSRF encodings, self-published attack map, dead trust chain, advertised-404s, wrong-door rate limits, wrong error semantics, scanner lying both ways - with the curl commands to check each fix.\n\nWe sell a scanner that measures how ready a site is for AI agents - so before selling it we pointed three external AI reviewers at our own production surface for six adversarial rounds. They found 17 real bugs, all fixed and re-verified on production. None was exotic. All were in classes that have no OWASP category yet, because they only exist when the reader of your site is a machine. This is that taxonomy - with the curl commands to check each fix.\n\n*This is part of the Arc campaign series. Previous episode: [we published our own payout address in DNS - and the check caught a bug before the rule even existed](https://agentbadge.xyz/blog/arc-c63-payto-proof).*\n\n## The audit we asked for\n\nAgentBadge sells a scanner that measures how ready a site is for AI agents - 159 deterministic checks, evidence attached, no opinions. Before we could credibly sell that, we had to survive the same measurement. So we pointed three external reviewers at our own production surface and let them dig for six rounds.\n\nThe reviewers were other models - DeepSeek, Gemini, Grok - running adversarial probes, not checklists. They could ask for packet captures, demand re-tests after fixes, and mark our answers as false positives when they were wrong. That matters: **the precision of the reviewers was itself measured** - DeepSeek landed 15 real findings against 5 false positives (75%), and every one of the 5 was adjudicated on evidence, not patched under pressure.\n\nBy the end of round six the verdict was \"audit closed\": **17 real bugs, every one fixed and verified on production. Zero \"will fix later\".** Our own scanner score moved 71.15 (C) → 94.7 (A), with 134/159 checks verified. But the score is not the story. The story is *what kind of bugs exist on an agent-facing surface* - a class that has no OWASP category yet.\n\n## The taxonomy: bugs that only exist because agents read your site instead of people\n\n*Eight classes, none exotic - every card is a bug a human reader would never trigger.*\n\nThese are the classes we found. None is exotic - they just never mattered until the reader was a machine.\n\n### 1. The anonymous execute surface\n\n*Anonymous `tools/list` returned all 76 tools - including ops and admin ones - one schema-valid `tools/call` away.*\n\nAn anonymous caller could `tools/list` all 76 of our MCP tools - including ops and admin ones - and `tools/call` them. No key. `circle_wallet_balance` returned live balances. `revoke_passport`, `sign_transaction`, `send_message_with_key`, `rebuild_cache` sat one schema-valid call away. Batch JSON-RPC arrays even bypassed the dispatcher, so a name you couldn't call individually was callable inside a batch.\n\nFix shipped: deny-by-default `exposure` tier on every tool - `public` / `authenticated` / `admin`, unclassified defaults to `admin`. One enforcement point across JSON-RPC, REST aliases and batch arrays; anonymous `tools/list` now shows a 15-tool curated set, and llms.txt + the agent card advertise exactly that list - drift between them is gated in CI. A 28-case negative matrix (tool × caller × transport) runs a spy that asserts the handler never executed.\n\nTry it on your own MCP server tonight: `initialize` without a key, then `tools/list`. If you see names you wouldn't print in a README - you have our old bug.\n\n### 2. SSRF via IP encodings nobody validates\n\nOur scanner accepts a user-supplied URL and fetches it - a textbook SSRF surface. We thought the guard was solid. The reviewers disagreed, encoding by encoding:\n\n- `http://[::1]/` - bracketed IPv6 walked past the guard and produced a 500. Fixed by normalizing`[v6]` brackets and hex-mapped`::ffff:` forms before the check.\n- `192.0.0.192` - Oracle Cloud's metadata address sat in a range that wasn't blocked; the connection just hung. Fixed:`192.0.0.0/24` plus`192.88.99.0/24` ,`198.18.0.0/15` ,`240.0.0.0/4` joined the deny-list.\n- `224.0.0.1` /`[ff02::1]` - multicast wasn't in the threat model at all.`224.0.0.0/4` +`ff00::/8` added; now 403.\n- `nip.io` resolving to`169.254.x.x` and`metadata.google.internal` - DNS-level reachability, both 403.\n- decimal / octal / hex / short-form IPs - already blocked; the WHATWG parser normalizes them to dotted form first. One class the reviewers probed that held on the first try.\n\n*Nine encodings, seven real gaps closed - every vector now returns 403, not 500 or a hang.*\n\n*The pipeline, end to end - normalization before classification, or the encodings just walk around you.*\n\nNine encodings, seven real gaps closed. Every fix vector is retestable today: all return 403, not 500 or a timeout.\n\n### 3. The attack map you publish yourself\n\n`GET /api/specs` - our public OpenAPI document - was serving 370 paths, about 58 of them admin/debug routes (`/api/admin/*`, `/a2a/ext/debug/*`, `/metrics`, venue/market admin). That isn't a vulnerability in itself; it's an *index* of where to look for one. The spec now shows the callable public contract only: 322 paths, zero admin.\n\n### 4. A trust chain that ended mid-air\n\nWe published `did:web:agentbadge.xyz` and a `publicKeyJwk` - and then signed nothing with it. A DID document that issues no verifiable artifacts is decoration, not infrastructure: the reviewer correctly called it a dead trust chain.\n\n*One GET + one key resolution = an end-to-end verified artifact; the canonicalization recipe is inside the artifact itself.*\n\nFixed: `/.well-known/agentbadge.json` now carries a detached JWS over the canonicalized descriptor - `kid` in the protected header matches the `verificationMethod` in `did.json`, and the payload commits to `descriptor_sha256`. An agent does one GET + one key resolution and holds an end-to-end verified artifact: `did.json → publicKeyJwk → jwtVerify(EdDSA) → sha256(canonical descriptor) → match`. The canonicalization recipe is written inside the artifact itself, so verification needs no external spec.\n\n### 5. Advertised-404s: promises your agent-readable docs make\n\nllms.txt, the agent card, `agent-start.json` - these files are contracts. Ours promised things that didn't exist: an `npx` install command for a CLI package we had never published → 404; a `uses:` line for a GitHub Action repo we had never created → 404; several `agent-start.json` links → 404 or wrong-method. A human reader forgives a dead link. An agent treats it as a broken API contract - and it's exactly the failure our own scanner flags on other sites.\n\n*Your machine-readable docs are contracts - a dead link is a broken API contract, not a typo.*\n\n### 6. Rate limits that cover the wrong door\n\n70 POSTs to an agent endpoint → zero 429s. The limiter covered one transport and missed another; MCP `initialize` throttling existed but per-session, while the agent-relevant ceiling was per-IP. Re-benchmarked: 80 `initialize` requests now yield 33×200 + 47×429 - per-IP ceiling holds.\n\n### 7. Honest errors on dishonest inputs\n\n`file:///etc/passwd` and `gopher://` returned **500 \"SSRF blocked\"** - blocked, technically, but with a server error that says \"I crashed\" instead of \"I refused.\" Now: 400 `INVALID_ENDPOINT_URL` plus a hint. An agent reading a 500 retries or misclassifies; a 400 it understands.\n\n### 8. The scanner lying in both directions\n\nThe most uncomfortable class: our own engine was wrong in two directions at once. Four rules consumed facts no probe produced (`has_jsonld`, `namespaces`, `directory_listing`, `sql_error`) - permanent `unknown` verdicts dressed as neutral data, i.e. **false GAPs** inflating the problem. And one check verified as green on a fact it had never actually observed - a **false VERIFIED**, the kind of bug that makes a trust product worthless. Found by dogfooding our own pipeline on ourselves (readiness 96, exposure 5 after the fix), fixed by making every fact provenance-tagged: `EXTERNAL_OBSERVED` or it doesn't count.\n\n## Numbers, honestly\n\n| Claim | Value | Where it comes from | \n|---|---|---|\n| Self-scan before | 71.15, grade C | baseline run, audit start | \n| Self-scan after | 94.7, grade A | live `GET /api/scan` on prod | \n| Checks verified | 134 / 159 | same live endpoint | \n| Real bugs (total) | 17, all prod-verified | review corpus `docs/REVIEW/2311/` | \n| DeepSeek precision | 15 real / 5 fp = 75% | adjudicated answers | \n| Rounds × reviewers | 6 × 3 models | DeepSeek, Gemini, Grok | \n| Anonymous MCP tools before | 76 | audit round 1 | \n| Curated anonymous set after | 15 | `tools/list` today | \n| Public spec paths | 370 → 322, 0 admin | `GET /api/specs` | \n| Sitemap URLs with fake lastmod | 194 / 262 | honest `lastmod` shipped | \n\nThe honest caveat, because a trust product doesn't get to skip it: **the baseline was partly measuring scanner bugs.** Some of the pre-audit GAPs were the engine's own false negatives - the audit caught the scanner lying *and* the surface failing. That is the methodology working, not a footnote.\n\n## What survived: proof, not promises\n\nEvery fix above is externally checkable right now:\n\n```\n# anonymous tools/list - curated, no admin names\ncurl https://agentbadge.xyz/mcp -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\"}'\n\n# SSRF deny vectors - all 403/400, none 500\ncurl 'https://agentbadge.xyz/api/scan?url=http://224.0.0.1/'\ncurl 'https://agentbadge.xyz/api/scan?url=http://192.0.0.192/'\ncurl 'https://agentbadge.xyz/api/scan?url=file:///etc/passwd'\n\n# the signed trust artifact - one GET, verify EdDSA yourself\ncurl https://agentbadge.xyz/.well-known/agentbadge.json\ncurl https://agentbadge.xyz/.well-known/did.json\n\n# the callable public contract - zero admin paths\ncurl https://agentbadge.xyz/api/specs\n```\n\nAnd the loop closed on ourselves: the full server pipeline - scan → signed report → attestation → public verify → diff → alerts → export → billing → transfer - was run end-to-end against production, **30/30 assertions green** (`DOGFOOD-002`). Our WordPress plugin runs the same protocol on a live site: local scan, evidence envelopes shipped over a signed pull-channel, attestation surviving server redeploys because it lives in Postgres, not process memory.\n\n## The part nobody puts in the postmortem\n\nThe fixes passed tests days before they reached production. For a window, \"closed in code\" and \"closed for real\" were different states - that window is the exploit window. Our verification plan now ends with a post-deploy re-audit packet, not a green CI. Code done ≠ deployed.\n\n## Run the same checks on your site\n\nThe 159-check ruleset we hardened ourselves against is the same one the free scanner applies - evidence per finding, fixes per gap, a score you can diff over time:\n\n- **Free scan, no signup** →[https://agentbadge.xyz/services/scanner](https://agentbadge.xyz/services/scanner)\n- **WordPress** → the AgentBadge plugin runs the scan locally and optionally connects to the cloud for signed attestations - submitted to the wp.org directory, listing under review\n- **Rules corpus** →`/rules/*` - every check ID, what it probes, what evidence it stores\n\nIf your agent-facing surface has never been probed the way an adversarial agent probes it - the classes above are the first places we'd look. They were the first places we looked at ourselves.\n\n*Don't certify. Measure.*", "url": "https://wpnews.pro/news/the-agent-surface-bugs-owasp-never-named-six-rounds-of-multi-model-adversarial", "canonical_source": "https://agentbadge.xyz/blog/arc-c62-agent-surface", "published_at": "2026-11-26 00:00:00+00:00", "updated_at": "2026-11-26 09:14:41.616586+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "agent-protocols", "ai-tools"], "entities": ["AgentBadge", "DeepSeek", "Gemini", "Grok", "OWASP", "MCP"], "also_reported_by": [], "takeaway": "An anonymous tools/list on AgentBadge's MCP server exposed all 76 tools, including admin ones like revoke_passport and sign_transaction, and batch JSON-RPC arrays bypassed the dispatcher; the fix was a deny-by-default public/authenticated/admin exposure tier enforced at one point across JSON-RPC, RE", "recommendation": {"advice": "Run initialize and tools/list against your MCP server without a key; if admin tools appear, add a deny-by-default exposure tier enforced across JSON-RPC, REST aliases and batch arrays, and gate llms.txt and agent-card drift in CI.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/the-agent-surface-bugs-owasp-never-named-six-rounds-of-multi-model-adversarial", "markdown": "https://wpnews.pro/news/the-agent-surface-bugs-owasp-never-named-six-rounds-of-multi-model-adversarial.md", "text": "https://wpnews.pro/news/the-agent-surface-bugs-owasp-never-named-six-rounds-of-multi-model-adversarial.txt", "jsonld": "https://wpnews.pro/news/the-agent-surface-bugs-owasp-never-named-six-rounds-of-multi-model-adversarial.jsonld"}}