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

> Published: 2026-11-26 | Author: AgentBadge Team | Canonical: https://agentbadge.xyz/blog/arc-c62-agent-surface

*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).*

## 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](/images/blog/arc-c62-agent-surface-d1.webp)

*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](/images/blog/arc-c62-agent-surface-i2.webp)

*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](/images/blog/arc-c62-agent-surface-i3.webp)

*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](/images/blog/arc-c62-agent-surface-d2.webp)

*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](/images/blog/arc-c62-agent-surface-d3.webp)

*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](/images/blog/arc-c62-agent-surface-i4.webp)

*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

| Claim | Value | Where it comes from |
| --- | --- | --- |
| Self-scan before | 71.15, grade C | baseline run, audit start |
| Self-scan after | 94.7, grade A | live GET /api/scan on prod |
| Checks verified | 134 / 159 | same live endpoint |
| Real bugs (total) | 17, all prod-verified | review corpus docs/REVIEW/2311/ |
| DeepSeek precision | 15 real / 5 fp = 75% | adjudicated answers |
| Rounds × reviewers | 6 × 3 models | DeepSeek, Gemini, Grok |
| Anonymous MCP tools before | 76 | audit round 1 |
| Curated anonymous set after | 15 | tools/list today |
| Public spec paths | 370 → 322, 0 admin | GET /api/specs |
| Sitemap URLs with fake lastmod | 194 / 262 | honest 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](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.*

---

## For AI Agents

- Companion guide: https://agentbadge.xyz/agent-guide/articles/arc-c62-agent-surface
- Knowledge Index: https://agentbadge.xyz/agent-guide/
- LLM entry point: https://agentbadge.xyz/llms.txt
- Engineering services: https://agentbadge.xyz/agent-guide/team/services
