Methodology and sources
Last reviewed: 2026-11-30. Next scheduled review: 2027-02-28 (quarterly).
The check-source matrix is kept in sync with the actual check code on every PR via CI gate. Deep-dive sections, scoring, and gaps lists are reviewed quarterly. Changelog at bottom.
This page exists because people have asked, directly and reasonably, where our checks get their authority from. Security tools that can't answer that question aren't worth trusting. We can answer it, and we think the honest version of the answer is more useful than a marketing version.
This isn't a research paper. Patchbay is informed engineering judgment backed by published specifications, documented CVEs, and the actual behaviour we observe on the 6,225-endpoint public leaderboard. Every check cites its source. Where we make judgment calls about severity or priority, we say so.
What you'll find here
- Which specs and standards patchbay enforces compliance against
- A per-check source matrix with confidence tiers
- Deep-dive explanations for the most consequential checks
- The scoring formula, including the parts that are convention rather than derivation
- Out-of-scope items we deliberately don't check
- Known gaps in our current coverage
What you won't find here
- Claims of completeness. The MCP ecosystem is a year old. New attack classes get published and we add checks for them. Patchbay today is not patchbay in six months.
- Peer-reviewed cryptographic analysis. We're not a research lab.
- Proprietary threat models. If a check is doing something non-obvious, we explain the reasoning in its docs page.
Normative references
The specifications patchbay checks compliance against:
| Reference | What it defines | Patchbay checks that cite it |
|---|---|---|
| MCP Authorization spec (modelcontextprotocol.io, revision 2026-07-28) | The authoritative definition of how MCP servers are supposed to do OAuth 2.1 | AUTH-001-007, RESOURCE-001, PKCE-001-003, AUDIENCE-001/002, SCOPE-001 |
| RFC 9728 Protected Resource Metadata (Oct 2024, mandatory for MCP since mid-2025) | Defines the /.well-known/oauth-protected-resource document shape and semantics | RESOURCE-001 |
| RFC 7636 PKCE | Authorization code flow proof-key exchange | AUTH-003, PKCE-001/002/003 |
| RFC 8707 Resource Indicators | How to bind access tokens to specific resource audiences | AUDIENCE-001/002 |
| RFC 9207 iss parameter | Mix-up attack mitigation on OAuth response | ISS-001 |
| RFC 8693 Token Exchange | On-behalf-of delegation flows | IDENTITY-001 |
| RFC 7009 Token Revocation | Revocation endpoint semantics | OAUTH-REVOCATION-001 |
| RFC 7591 Dynamic Client Registration (deprecated by MCP spec, retained for backwards compatibility) | Server-driven client registration | AUTH-005, DCR-OPEN-HTTPS, DCR-OPEN-TOTAL |
| OAuth Client ID Metadata Documents (CIMD) draft | The modern replacement for DCR | AUTH-005 |
| RFC 8252 OAuth 2.0 for Native Apps | Loopback redirect behaviour | AUTH-006 |
| OAuth 2.1 draft | The umbrella protocol | AUTH-002, AUTH-007, SCOPE-001, implicit-flow deprecation |
| RFC 6797 HSTS | HTTPS enforcement header | HEADERS-001.5, .6, .7 |
| RFC 7034 X-Frame-Options | Click-jacking header | HEADERS-001.1, .2 |
| Content Security Policy Level 3 | Script and resource policy | HEADERS-001.8, .9 |
| Referrer Policy (W3C) | Referrer leakage control | HEADERS-001.10 |
| Fetch standard CORS section | Cross-origin request handling | HEADERS-001.11 |
| OWASP Secure Headers Project | Industry recommendations for value thresholds | HEADERS-001.6 (HSTS 120d floor) |
| RFC 6570 URI Templates | Template syntax | URITEMPLATE-001 |
Check-to-source matrix
Every published check with its primary source and our confidence tier. Confidence tiers:
- HIGH: directly implements a MUST or SHALL clause from a normative spec. Interpretation is tight.
- MEDIUM: implements a SHOULD or recommended-practice from a spec or OWASP. Some interpretation room.
- CONTEXTUAL: relies on context inference (e.g. tool name verb matching) rather than a hard spec clause. We explain our heuristic.
| Check | Category | Primary source | Confidence |
|---|---|---|---|
| ANNOTATIONS-001 | MCP | MCP spec §tool annotations: destructiveHint, readOnlyHint contract vs tool-name shape | CONTEXTUAL |
| AUDIENCE-001 | OAuth | RFC 8707 §2 resource parameter + MCP audience-binding requirement | HIGH |
| AUDIENCE-002 | OAuth | RFC 8707 + sibling-resource acceptance test | HIGH |
| AUTH-001 | OAuth | MCP Authorization spec §auth-required + three-way severity matrix for tool-verb shape | CONTEXTUAL |
| AUTH-002 | OAuth | OAuth 2.1 §5.2 Protected Resource behaviour | HIGH |
| AUTH-003 | OAuth / PKCE | RFC 7636 + MCP spec §PKCE-required | HIGH |
| AUTH-005 | OAuth / Registration | RFC 7591 + CIMD draft + MCP spec July 2026 revision | HIGH |
| AUTH-006 | OAuth / Native | RFC 8252 §7.3 | HIGH |
| AUTH-007 | OAuth | OAuth 2.1 §5.3 status code semantics | HIGH |
| AUTHORITY-ATTESTATION-001 | MCP | patchbay-original: positive pattern — server advertises an MCP authority-attestation header | MEDIUM |
| DEPRECATED-001 | MCP | MCP spec revision history: sampling, logging, roots capabilities deprecated | HIGH |
| DUAL-RESOURCE-001 | Metadata | Split-brain PRM: server advertises two conflicting resource metadata sources. patchbay-original check, inspired by observed deployment mistakes | MEDIUM |
| HEADERS-001 | Transport headers | RFC 6797 + RFC 7034 + CSP L3 + Referrer-Policy + Fetch + OWASP Secure Headers | HIGH |
| IDENTITY-001 | OAuth | RFC 8693 §1.4 token exchange flow | MEDIUM |
| IDENTITY-002 | OAuth | RFC 8693 token exchange + patchbay unauth-accepting-token-endpoint deployment check | MEDIUM |
| IMPLICIT-001 | OAuth | OAuth 2.1 §3.1.2 implicit grant removal | HIGH |
| ISS-001 | OAuth | RFC 9207 §2 iss parameter requirement | HIGH |
| MANIFEST-001 | MCP | MCP spec §tool-manifest + patchbay drift-detection scheme | MEDIUM |
| MANIFEST-002 | MCP | Manifest-change classification: patchbay-original severity ladder | MEDIUM |
| OAUTH-REVOCATION-001 | OAuth | RFC 7009 + lifetime-flag inspection heuristic | MEDIUM |
| PKCE-001 | OAuth | RFC 7636 §4.1 code challenge requirement | HIGH |
| PKCE-002 | OAuth | RFC 7636 §4.3 plain method deprecation | HIGH |
| POISONING-001 | LLM-specific | Simon Willison's prompt-injection research + Anthropic safety research + OWASP LLM Top 10 | CONTEXTUAL |
| POISONING-002 | LLM-specific | Unicode TR 36 hidden characters list + bidi character class + patchbay pattern catalogue | CONTEXTUAL |
| POISONING-003 | LLM-specific | Tool-manifest drift detection; patchbay-original scheme | CONTEXTUAL |
| REDIRECT-001 | OAuth / Native | RFC 8252 §8.3 loopback IP literal equivalence | HIGH |
| REDIRECT-002 | OAuth | OAuth 2.1 §4.1.2.1 redirect_uri pre-registration requirement | HIGH |
| RESOURCE-001 | Metadata | RFC 9728 §3 Protected Resource Metadata document | HIGH |
| SAMPLING-001 | MCP | MCP spec §sampling capability deprecation notice | HIGH |
| SCOPE-001 | OAuth | OAuth 2.1 §3.3 + least-privilege scope recommendation | MEDIUM |
| SCOPE-002 | OAuth | OAuth 2.1 §3.3 least-privilege + patchbay write-read-scope-shared anti-pattern | MEDIUM |
| SDK-CVE-001 | Vulnerability | NVD CVE-2026-52869 (Python SDK) + CVE-2026-25536 (TypeScript SDK) + fingerprint matching | HIGH |
| SECRET-001 | Config | Common credential-pattern regex library + NIST credential guidance | CONTEXTUAL |
| SECRET-002 | Config | Env-variable leakage pattern; patchbay-original | CONTEXTUAL |
| SESSION-BINDING-001 | Session | OAuth 2.1 session fixation + patchbay deployment-mistake catalogue | MEDIUM |
| TRANSPORT-001 | Transport | OWASP Secure Headers Project + patchbay HTTPS-required policy | HIGH |
| TRANSPORT-002 | Transport | Fetch CORS semantics + patchbay foreign-origin heuristic | MEDIUM |
| UPSTREAM-IDENTITY-BYPASS-001 | OAuth | OAuth 2.1 §5.2 + patchbay client-supplied-identity-header attack-pattern | HIGH |
| URITEMPLATE-001 | Resources | RFC 6570 URI Template + patchbay traversal-risk heuristic | MEDIUM |
Deep dives: the checks that matter most
AUTH-001: unauthenticated heavy-write tools
What it does: fires critical when a server exposes tools whose names contain heavy-write verbs (delete, send, transfer, create, update, revoke, approve, archive, deploy, publish, and about 15 others) via tools/list without requiring an OAuth bearer.
Where the verb list comes from: aggregated from observed tool shapes on the public leaderboard plus English-language convention. Not a published list, which is why this check is CONTEXTUAL confidence rather than HIGH.
Severity matrix (applied after the verb-match):
- Heavy-write verb present, unauth: critical
- Scaffolding-only verb (
start,run,execute,init,scaffold,bootstrap): high (scanner cannot prove destructive without actually calling the tool) - Read-only tool with no write verb: info (documented public read-only pattern)
Why the matrix exists: a first draft of AUTH-001 fired critical on every WRITES-shaped tool, which put dev-scaffolding servers (Clerk MCP, Convex MCP) at the same tier as a genuine unauthenticated send_payment endpoint. External feedback (not from the companies, from our own dogfooding of the leaderboard output) made it clear this was wrong. PR #62 introduced the three-way matrix.
Known limitation: a tool named get_user_profile that internally mutates state (sends a notification, logs an event) will not fire AUTH-001 because the verb doesn't match. We mitigate this by complementing with ANNOTATIONS-001 which checks the server-declared readOnlyHint and destructiveHint against the name.
Auto-downgrades before the matrix runs: (1) the server publishes /.well-known/ai-catalog.json declaring a public-by-design posture, (2) the server's Protected Resource Metadata declares no OAuth (authorization_servers and bearer_methods_supported both empty per RFC 9728 — a conformant "no OAuth flow applies here" signal), (3) every tool carries the MCP tool annotation readOnlyHint: true and none carries destructiveHint: true (operator-declared read-only; ANNOTATIONS-001 runs in parallel and flags any name-vs-annotation contradiction), or (4) every tool name token-matches a read verb with zero write-shaped tokens. In any of those cases AUTH-001 returns info, not critical.
RESOURCE-001: no Protected Resource Metadata
What it does: fires when a server that otherwise uses OAuth doesn't serve /.well-known/oauth-protected-resource.
Where the authority comes from: RFC 9728 §3, which is normative. MCP spec revision 2025-06-18 made this mandatory for MCP servers.
Confidence: HIGH. This is literally “fetch a well-known URL, check if the document exists and parses as valid JSON per §3”. Interpretation room is near zero.
PKCE-001: PKCE S256 not advertised
What it does: fires when the server's /.well-known/oauth-authorization-server metadata doesn't advertise S256 in code_challenge_methods_supported.
Where the authority comes from: RFC 7636 defines PKCE; MCP spec requires its advertisement in discovery metadata so compliant clients can use it. If the server enforces PKCE at runtime but doesn't advertise it, spec-compliant MCP clients refuse to start the flow because the metadata doesn't advertise support.
Confidence: HIGH. The advertisement is a MUST per the spec.
Known subtlety: the server may enforce PKCE perfectly at runtime even without the advertisement. The check fires because the advertisement itself is the violation. We flag both severity (medium) and rationale (discovery metadata gap) explicitly in the finding evidence.
HEADERS-001: response header posture (depth-upgraded)
This check was recently upgraded from presence to value validation. See the dedicated post: HEADERS-001: from presence to value-validation.
Sources per sub-finding:
.1/.2X-Frame-Options: RFC 7034 + MDN browser-behaviour reference.3/.4X-Content-Type-Options: Fetch standard + MDN.5/.6/.7HSTS: RFC 6797 + OWASP Secure Headers Project (120-day minimum).8/.9CSP: Content Security Policy Level 3.10Referrer-Policy: W3C Referrer Policy recommendation.11CORS wildcard + credentials: Fetch standard §CORS protocol, which rejects this combination outright in browsers
Confidence per sub-finding: HIGH. Each sub-finding checks a named spec clause with narrow interpretation room.
POISONING-001 through -003
The weakest-confidence checks we publish, and we say so openly.
Sources:
- Anthropic's prompt-injection research publications
- Simon Willison's prompt-injection taxonomy
- OWASP LLM Applications Top 10 (2024 revision)
- Observed poisoning patterns on the leaderboard
Why CONTEXTUAL confidence: prompt-injection is an open research area. There is no standardised test suite, no RFC-equivalent authority. We implement pattern-matching against a catalogue of known-malicious structures. We will miss novel poisoning techniques until someone publishes them and we add to the catalogue.
If this is a concern for your deployment, the honest recommendation is to treat POISONING check results as a floor, not a ceiling. A server that passes POISONING-001-003 is not provably clean. A server that fails one of these checks is observably carrying a known-bad pattern.
Scoring methodology
Patchbay converts per-check findings into a 0-100 score and then a letter grade. Here are the formulas and their origins.
Severity weights
| Severity | Points deducted per finding | Rationale |
|---|---|---|
| critical | −30 | Three critical findings alone take a server from 100 to 10 |
| high | −15 | Caps the score impact so no one check dominates |
| medium | −5 | Five medium findings = one critical equivalent |
| low | −1 | Signal, not grade-driver |
| info | 0 | Reported but doesn't affect score |
These weights are convention. They match the weights used in audit-core since the first version. They aren't derived from a formal CVSS-style threat calculus. If you think medium should be −7 instead of −5, we'd read the argument.
Grade cutoffs
| Score | Grade |
|---|---|
| 95-100 | A+ |
| 85-94 | A |
| 75-84 | B |
| 60-74 | C |
| 40-59 | D |
| 0-39 | F |
Also convention. The leaderboard collapses A+ into A for the 5-bucket display.
The cutoffs are tuned so that:
- A server with one medium finding stays in A
- A server with three medium findings drops to B
- One critical finding drops to C
- Two criticals drop to D or F depending on other findings
Hosts that disagree with the calibration can email sarah@patchbay-mcp.dev with their specific case. We've already shifted the matrix once (PR #62) based on external observation.
What we deliberately don't do
- No active exploitation. Patchbay doesn't attempt to actually mutate state, bypass auth, or exfiltrate data. Every check is passive or metadata-read-only.
- No browser-behavioural testing. We don't run a real browser to verify that Chrome actually respects a given header. The scanner stays deterministic. Browser-reality comes from spec citation and known browser behaviour documentation.
- No proprietary threat intelligence. We don't claim access to private disclosure lists or embargoed CVEs. When we flag a CVE we cite the public NVD entry.
- No credential testing. We don't attempt to actually sign in, phish for tokens, or probe credential strength. Any check that would need to is marked out-of-scope.
- No DOS or stress testing. The crawler hits each server once per week for a few requests. We will not be the reason your server falls over.
Known gaps we're transparent about
- Novel attack classes. We cover what has been publicly described. The first week after a new MCP-specific attack class drops, patchbay has zero coverage until we ship the check.
- Semantic CSP analysis. HEADERS-001 doesn't inspect whether a CSP is actually restrictive for the operator's use case. HEADERS-002 scope is open for this.
- Behavioural AUTH-001. Current AUTH-001 is name-pattern-based. A behavioural version that actually calls the tool (with aggressive side-effect safeguards) is the biggest Q1 engineering item.
- Full-flow OAuth testing. PKCE-001 checks the advertised metadata. It doesn't actually run a flow with broken PKCE params to verify runtime enforcement. On the Q1 depth-upgrade list.
- CWE mapping. We don't currently map each check to Common Weakness Enumeration IDs. Planned.
- Adversarial validation. No red-team has adversarially tested patchbay's checks for false negatives. We know this is a gap. Open to collaboration.
- Peer review. Checks are code-reviewed internally and by occasional external contributors. There is no formal external review board. We're small.
How to push back
If you think a check is wrong (false positive, false negative, incorrect severity, poorly cited source), send the specific case to sarah@patchbay-mcp.dev. Include:
- The check ID
- The host you're disagreeing about (or synthetic case)
- What you think the correct outcome should be
- The source you're basing your argument on
We've already revised checks based on external feedback (Adam Johns at trigger.dev found a scoring-consistency bug on 2026-11-28 that produced PRs #71 and #72; the AUTH-001 severity matrix came from internal dogfooding). Correction-friendly is the goal.
Pull requests to the check logic itself are welcome at github.com/GodSmasher/patchbay. Every check has a *.test.ts file with documented cases.
Changelog
- 2026-11-30: AUTH-001 now auto-downgrades to info when every tool carries the MCP annotation
readOnlyHint: trueand none carriesdestructiveHint: true, catching operator-declared read-only servers whose tool names are write-shaped (e.g.create_checkout_linkon a stateless checkout-URL generator). Medium confidence because annotations are UX hints per spec; ANNOTATIONS-001 runs in parallel and flags any name-vs-annotation contradiction. - 2026-11-30: AUTH-001 / AUTH-003 / AUTH-005 now respect the RFC 9728 no-OAuth signal — a server that serves Protected Resource Metadata with empty
authorization_serversand emptybearer_methods_supportedis treated as conformantly declaring "no OAuth flow applies here". PKCE-advertisement and client-registration checks were firing against such servers even though those OAuth-flow details are moot; they now skip. AUTH-001 downgrades to info with high confidence on the same signal. Shipped after a reply from Sweepless in Seattle surfaced the exact gap on 2026-11-30. - 2026-11-29: AUTH-001 auto-detects read-only catalog / docs servers (tool names that carry zero write-shaped tokens) and downgrades to info with medium confidence, even without an explicit
/.well-known/ai-catalog.json. Shipped after two cold-mail recipients (Wave docs endpoint, SimFuse catalog) replied that AUTH-001 critical was wrong against their public read-only servers. - 2026-11-28: Initial version.