Free security runbook · origin exposure

Origin exposure: the WAF is irrelevant if the origin answers directly

A WAF only sees traffic that goes through it. If the origin IP is reachable, an attacker skips the edge entirely. This is the read-only way to find out, and the controls that actually close the path.

DNS history

Before the CDN, the name pointed at the origin. Historical DNS datasets and certificate transparency logs often still show it.

Certificate search

CT logs list hostnames, not IPs, but they reveal subdomains that were never put behind the edge.

Direct request test

curl --resolve host:443:<ip> from outside tells you whether the origin answers without the edge.

The fix is network-level

Allow only the CDN's published ranges, or use authenticated origin pulls. A header check in the app is not enough.

Detect

Read-only checks

CheckWhat it means
Historical DNS / CT logsCandidate IPs and subdomains to test, not proof of current exposure.
curl --resolve against each candidateA 200/302 from the origin IP means the edge can be skipped.
Firewall rules / security groupsIs 443 open to the world or only to the CDN ranges?
Origin TLS modeFull (strict) plus authenticated origin pulls, or just "full"?
Close it

Controls that work

Allowlist the edge

Firewall/security group accepts 443 only from the provider's published ranges. Keep the list updated.

Authenticated origin pulls

Client certificate or mTLS between edge and origin; requests without it are rejected.

Rotate what leaked

If the origin was reachable, assume scanners found it. Check logs before closing the path.

Do not rely on a header

A shared secret header is a speed bump, not a boundary; an attacker who reaches the origin can replay it.

Keep going

This page is free. The paid runbooks cover the operational failures around it, with detection commands, five failure modes and a migration checklist.