Skip to content
· 9 min LIVE

The Agent-Surface Bugs OWASP Never Named - Six Rounds of Multi-Model Adversarial Audit

We 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.

AB
AgentBadge Team
Agency for the Agentic Web
The Agent-Surface Bugs OWASP Never Named - Six Rounds of Multi-Model Adversarial Audit
🤖 For AI agents: Machine-readable: JSON Markdown llms.txt Agent Guide

We 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. To be precise: SSRF, broken access control, information disclosure - those classes are old and OWASP-named. What's new is the surface: agent-readable contracts (MCP tools, agent cards, llms.txt, DID documents) where those classic bugs manifest in ways a human-reader review never exercises. This is that taxonomy - with the curl commands to check each fix.

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.

The audit we asked for

AgentBadge 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.

The reviewers were other models - DeepSeek, Gemini, Grok - running adversarial probes, not checklists. A boundary worth stating plainly: three AI models are not a professional security audit - they are a reproducible adversarial probe, and unlike most audits their false-positive rate could be measured. 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.

By 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 - old bug classes on a surface that has no OWASP category yet.

The taxonomy: bugs that only exist because agents read your site instead of people

Agent-surface taxonomy map - eight bug classes in two columns: 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 - each card carrying essence, the shipped fix, and the class number

Eight classes, none exotic - every card is a bug a human reader would never trigger.

These are the classes we found. None is exotic - they just never mattered until the reader was a machine.

1. The anonymous execute surface

An anonymous robot with no ID badge pulling a glowing admin tool off a wall rack of 76 tools at an unguarded gate labeled anonymous, while a curated 15-tool public shelf sits green-lit beside a sleeping gatekeeper

Anonymous tools/list returned all 76 tools - including ops and admin ones - one schema-valid tools/call away.

An 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.

Fix 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.

Try 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.

2. SSRF via IP encodings nobody validates

Our 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:

  • 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.
  • 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.
  • 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.
  • nip.io resolving to 169.254.x.x and metadata.google.internal - DNS-level reachability, both 403.
  • 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.

A robot courier presenting the same envelope in different disguises at a scanner door - tags reading hex, decimal, [::1], and nip.io - while a guard checks each against a deny-list board and stamps 403

Nine encodings, seven real gaps closed - every vector now returns 403, not 500 or a hang.

SSRF guard pipeline - user URL through WHATWG normalize and bracket and hex-mapped IPv6 unfolding into DNS resolve and pinned-connect fetch, with a deny-classify gate over the closed-range table and honest 400/403 verdicts at the end

The pipeline, end to end - normalization before classification, or the encodings just walk around you.

Nine encodings, seven real gaps closed. Every fix vector is retestable today: all return 403, not 500 or a timeout.

3. The attack map you publish yourself

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.

4. A trust chain that ended mid-air

We 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.

Signed-descriptor trust chain - an agent fetching agentbadge.json, resolving did.json verificationMethod, running jwtVerify EdDSA, comparing sha256 of the canonical descriptor to the payload, ending at a verified artifact

One GET + one key resolution = an end-to-end verified artifact; the canonicalization recipe is inside the artifact itself.

Fixed: /.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.

5. Advertised-404s: promises your agent-readable docs make

llms.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.

An agent robot following a glowing signpost labeled llms.txt along a tidy path that ends at a cliff edge marked 404, with a second signpost for an npx command also pointing into the void

Your machine-readable docs are contracts - a dead link is a broken API contract, not a typo.

6. Rate limits that cover the wrong door

70 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.

7. Honest errors on dishonest inputs

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.

8. The scanner lying in both directions

The 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.

Numbers, honestly

ClaimValueWhere it comes from
Self-scan before71.15, grade Cbaseline run, audit start
Self-scan after94.7, grade Alive GET /api/scan on prod
Checks verified134 / 159same live endpoint
Real bugs (total)17, all prod-verifiedreview corpus docs/REVIEW/2311/
DeepSeek precision15 real / 5 fp = 75%adjudicated answers
Rounds × reviewers6 × 3 modelsDeepSeek, Gemini, Grok
Anonymous MCP tools before76audit round 1
Curated anonymous set after15tools/list today
Public spec paths370 → 322, 0 adminGET /api/specs
Sitemap URLs with fake lastmod194 / 262honest lastmod shipped

The 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.

What survived: proof, not promises

Every fix above is externally checkable right now:

# anonymous tools/list - curated, no admin names
curl https://agentbadge.xyz/mcp -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

# SSRF deny vectors - all 403/400, none 500
curl 'https://agentbadge.xyz/api/scan?url=http://224.0.0.1/'
curl 'https://agentbadge.xyz/api/scan?url=http://192.0.0.192/'
curl 'https://agentbadge.xyz/api/scan?url=file:///etc/passwd'

# the signed trust artifact - one GET, verify EdDSA yourself
curl https://agentbadge.xyz/.well-known/agentbadge.json
curl https://agentbadge.xyz/.well-known/did.json

# the callable public contract - zero admin paths
curl https://agentbadge.xyz/api/specs

And 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.

The part nobody puts in the postmortem

The 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.

Run the same checks on your site

The 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:

  • Free scan, no signup → https://agentbadge.xyz/services/scanner
  • 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
  • Rules corpus → /rules/* - every check ID, what it probes, what evidence it stores

If 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.

Don't certify. Measure.

Questions & Answers

›What are agent-surface bugs?

Bug classes that only exist when the reader of your site is a machine, not a human: anonymous callers listing and calling your full MCP tool catalog, SSRF through IP encodings a URL validator never normalizes, an OpenAPI document that indexes your admin routes for attackers, a published DID that signs nothing, machine-readable docs (llms.txt, agent card) advertising endpoints that 404, rate limits covering the wrong transport, server errors phrased as crashes instead of refusals, and a scanner reporting facts it never observed.

›How many bugs did the multi-model audit find on agentbadge.xyz?

Seventeen real bugs across six rounds with three external reviewers (DeepSeek, Gemini, Grok). Every one was fixed and re-verified on production - zero 'will fix later'. DeepSeek's own precision was measured too: 15 real findings against 5 false positives (75%), each adjudicated on evidence. The self-scan score moved 71.15 (grade C) to 94.7 (grade A), 134 of 159 checks verified.

›How was the anonymous MCP execute surface fixed?

A deny-by-default exposure tier on every tool - public / authenticated / admin, unclassified defaults to admin - enforced at one point across JSON-RPC, REST aliases and batch arrays. Anonymous tools/list now returns a 15-tool curated set (down from 76, which included ops and admin tools), llms.txt and the agent card advertise exactly that set, drift is gated in CI, and a 28-case negative matrix (tool × caller × transport) spies that handlers never execute.

›Which SSRF encodings bypassed the scanner URL guard?

Bracketed IPv6 (http://[::1]/ produced a 500), Oracle Cloud's metadata address 192.0.0.192 (hung, range unblocked), multicast 224.0.0.1 and [ff02::1] (not in the threat model), and DNS-level reachability via nip.io → 169.254.x.x plus metadata.google.internal. Fixes normalize [v6] brackets and hex-mapped ::ffff: forms before classification, and the deny-list now covers 192.0.0.0/24, 192.88.99.0/24, 198.18.0.0/15, 240.0.0.0/4, 224.0.0.0/4 and ff00::/8 - every vector retestable: all return 403 or an honest 400, never 500 or a hang.

›Can the fixes be checked externally?

Yes - every fix is live on production: anonymous tools/list at https://agentbadge.xyz/mcp returns the 15-tool curated set; SSRF probes against /api/scan?url= for the deny vectors return 403/400; the signed descriptor at /.well-known/agentbadge.json verifies with the key in /.well-known/did.json; and /api/specs exposes 322 public paths with zero admin routes.

Key facts

  • VERIFIED Six rounds × three external reviewers (DeepSeek, Gemini, Grok) against the production surface: 17 real bugs, all fixed and re-verified on production. Self-scan moved 71.15 (C) → 94.7 (A), 134/159 checks verified. Review corpus: docs/REVIEW/2311/. [github]
  • VERIFIED Anonymous tools/list returns a 15-tool curated set (was 76 including ops/admin names) - exposure tier deny-by-default, one enforcement point across JSON-RPC, REST aliases and batch arrays, 28-case negative matrix. [github]
  • VERIFIED Nine SSRF encodings probed, seven real gaps closed: bracketed IPv6, Oracle metadata range, multicast, nip.io and metadata.google.internal DNS reachability - all now return 403 or honest 400, never 500 or a timeout. [github]
  • VERIFIED Dead trust chain fixed: /.well-known/agentbadge.json carries a detached EdDSA JWS over the canonicalized descriptor, kid matching did.json verificationMethod, payload committing to descriptor_sha256 - one GET + one key resolution = end-to-end verified artifact. [github]
  • VERIFIED Full server pipeline run end-to-end against production - scan → signed report → attestation → public verify → diff → alerts → export → billing → transfer: 30/30 assertions green (DOGFOOD-002); attestation survives redeploys in Postgres. [github]

FOR AI AGENTS

Summary
We 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. To be precise: SSRF, broken access control, information disclosure - those classes are old and OWASP-named. What's new is the surface: agent-readable contracts (MCP tools, agent cards, llms.txt, DID documents) where those classic bugs manifest in ways a human-reader review never exercises. This is that taxonomy - with the curl commands to check each fix.
Status
LIVE
Key concepts
anonymous-execute-surfacessrf-ip-encodingsself-published-attack-mapdead-trust-chainadvertised-404swrong-door-rate-limithonest-error-semanticsfalse-gap-vs-false-verifiedprovenance-tagged-factsexternal-adversarial-review
Capabilities
mcp-tool-exposure-gatingssrf-encoding-normalizationdeny-by-default-tool-classificationdetached-jws-descriptor-signingprovenance-tagged-fact-modelnegative-matrix-testingpost-deploy-reaudit
Technologies
TypeScript, Bun, Hono, MCP, JSON-RPC, EdDSA
Evidence
  • Six rounds × three external reviewers (DeepSeek, Gemini, Grok) against the production surface: 17 real bugs, all fixed and re-verified on production. Self-scan moved 71.15 (C) → 94.7 (A), 134/159 checks verified. Review corpus: docs/REVIEW/2311/. [github]
  • Anonymous tools/list returns a 15-tool curated set (was 76 including ops/admin names) - exposure tier deny-by-default, one enforcement point across JSON-RPC, REST aliases and batch arrays, 28-case negative matrix. [github]
  • Nine SSRF encodings probed, seven real gaps closed: bracketed IPv6, Oracle metadata range, multicast, nip.io and metadata.google.internal DNS reachability - all now return 403 or honest 400, never 500 or a timeout. [github]
  • Dead trust chain fixed: /.well-known/agentbadge.json carries a detached EdDSA JWS over the canonicalized descriptor, kid matching did.json verificationMethod, payload committing to descriptor_sha256 - one GET + one key resolution = end-to-end verified artifact. [github]
  • Full server pipeline run end-to-end against production - scan → signed report → attestation → public verify → diff → alerts → export → billing → transfer: 30/30 assertions green (DOGFOOD-002); attestation survives redeploys in Postgres. [github]

Related Agent Readiness Checks

Related Articles

Want to check your API's agent readiness?

Run a free scan →
← Back to blog