Shipped the first depth-upgrade of patchbay's Q1 roadmap today. HEADERS-001 now checks response-header VALUES, not just whether a header is set at all. This post explains what changed, why it matters, and what the cohort re-scan is going to look like.
the gap the old check had
Old HEADERS-001 was a presence check: if the server sent back X-Frame-Options (any value), the check passed. The same for X-Content-Type-Options, Strict-Transport-Security, and the CORS wildcard+credentials pair.
That meant a server shipping X-Frame-Options: ALLOWALL passed because the header was there. Browsers don't recognise ALLOWALL. The header is effectively missing. The server is as framable as one with no X-Frame-Options at all, but our old scan called it fine.
This is the shape Adam Johns at trigger.dev spotted a different version of on /leaderboard yesterday. The underlying pattern is the same: patchbay was pattern-matching on structure without looking at the content. One class of credibility bug for the whole posture-checker category.
what the new check does
11 sub-findings, one per concrete gap, each with its own severity:
| Sub | What it fires on | Severity |
|---|---|---|
| HEADERS-001.1 | X-Frame-Options missing AND no restrictive CSP frame-ancestors | medium |
| HEADERS-001.2 | X-Frame-Options value not exactly DENY or SAMEORIGIN | medium |
| HEADERS-001.3 | X-Content-Type-Options missing | medium |
| HEADERS-001.4 | X-Content-Type-Options value not nosniff | medium |
| HEADERS-001.5 | Strict-Transport-Security missing on HTTPS | high |
| HEADERS-001.6 | HSTS max-age below 10,368,000 seconds (120 days, OWASP floor) | medium |
| HEADERS-001.7 | HSTS missing includeSubDomains | low |
| HEADERS-001.8 | CSP contains unsafe-inline without a nonce, hash, or strict-dynamic exception | medium |
| HEADERS-001.9 | CSP contains unsafe-eval | medium |
| HEADERS-001.10 | Referrer-Policy weak (unsafe-url, no-referrer-when-downgrade, origin-when-cross-origin) | low |
| HEADERS-001.11 | CORS Access-Control-Allow-Origin: * with Access-Control-Allow-Credentials: true | critical |
The severity for each sub-finding stays conservative. HSTS missing is high (first-contact TLS stripping is a real primitive). CORS wildcard with credentials is critical (browser-rejected anti-pattern that almost always signals a real auth-bypass misconfig). The rest are medium or low depending on actual exploit primitive.
what the sample re-scan found
Pre-full-cohort re-scan, we ran the new check against a 100-host sample from the current 6,225. 98 reachable. Per-sub-finding fire rate:
HEADERS-001.1 (XFO missing) 70 HEADERS-001.2 (XFO invalid value) 2 ← new gap, old check missed HEADERS-001.3 (XCTO missing) 60 HEADERS-001.4 (XCTO invalid value) 3 ← new gap, old check missed HEADERS-001.5 (HSTS missing HTTPS) 59 HEADERS-001.7 (HSTS no includeSubDomains) 8 HEADERS-001.8 (CSP unsafe-inline) 10 HEADERS-001.9 (CSP unsafe-eval) 1 HEADERS-001.10 (Referrer weak) 1 HEADERS-001.11 (CORS *+credentials) 1 ← same gap, severity upgraded to critical
6 hosts in this sample (2 XFO-invalid + 3 XCTO-invalid + 1 CORS) would have passed the old presence-only check. They fire sub-findings now.
Extrapolated to the full cohort of 6,225, the shape we expect post-full-rescan:
- ~127 new medium findings from invalid X-Frame-Options values
- ~190 new medium findings from invalid X-Content-Type-Options values
- ~63 new critical findings from the CORS wildcard+credentials pattern that was previously surfaced as medium
These are projections from a small sample. Sunday's weekly cron does the full-cohort re-scan and we'll post the exact numbers in next week's digest.
why grades are going to shift
Hosts that previously had one aggregated HEADERS-001 medium finding may now accumulate 3-5 separate findings. The scoring impact per host grows from -5 points to -15 to -25 depending on the header stack.
Expected direction of the grade shift:
- Hosts at B or C with multiple sub-gaps may drop one letter
- Hosts with the CORS wildcard+credentials pattern jump from medium contribution to critical, which can move the host multiple letters
- Hosts that had their headers correct stay exactly where they were
- Hosts already at F stay at F
This is a scoring methodology change, not a change in the threat model. The hosts haven't gotten worse. The scanner started measuring the actual severity of the header posture instead of the presence of configuration.
If you operate an MCP server and see your grade drop in Monday's digest, the per-check detail page shows which sub-finding fired and how to fix it. The fixes are the same one-line header value corrections they always were.
what's next in the depth-upgrade pass
HEADERS-001 is the first of four Q1 targets. Same methodology applies to:
- RESOURCE-001 (Protected Resource Metadata): schema validation + authorization-server reachability test, not just file presence
- PKCE-001: actual OAuth-flow enforcement test with broken PKCE params, not just metadata advertisement
- AUTH-001 (heavy-write unauth): behavioural verification with side-effect safeguards. This is the biggest one and needs a careful dry-run-first design so patchbay doesn't accidentally mutate state on servers it scans.
Rough timeline: RESOURCE-001 next, PKCE-001 after that, AUTH-001 last and most carefully.
scope we deliberately didn't cover
- Semantic CSP analysis (whether a given policy is actually restrictive for the operator's use case, nonce-vs-tag verification) belongs in a separate HEADERS-002 check if there's demand
- Browser-behavioural testing (does Chrome actually honour this X-Frame-Options value) stays out of scope. The scanner stays deterministic and runs without a browser instance
- Permissions-Policy sub-finding isn't included because the browser default when the header is absent is already restrictive. Missing the header isn't a security gap. If an operator sets it to something permissive that would be a different check
If you see a header-posture issue you think patchbay should catch and currently doesn't, send it to sarah@patchbay-mcp.dev. HEADERS-002 scope is open.
scan your own server
npx -y @patchbay-nebius/agent audit https://your-server.example.com
The CLI ships the same checks as the public leaderboard. Per-sub-finding detail is in the output. MIT licensed, runs locally, no telemetry.
Leaderboard: patchbay-mcp.dev/leaderboard. Per-check docs: patchbay-mcp.dev/docs.
Corrections, pushback on methodology, or sub-findings you'd design differently all go to sarah@patchbay-mcp.dev.