Skip to content

LS-CF-001: Cloudflare Global Key

Severity HIGH
Blast radius Full Cloudflare account compromise
Rotate at https://dash.cloudflare.com/profile/api-tokens

If this leaks

Grants full account-level access to every Cloudflare service: DNS records, SSL/TLS settings, Workers, firewall rules, and billing.

What to do

  1. Rotate or revoke the credential at https://dash.cloudflare.com/profile/api-tokens.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

(?i)cloudflare(?:.{0,20})?['\"]([0-9a-f]{37})['\"]

Suppress

On one line: # leakscan:ignore LS-CF-001. For the whole project:

disable_rules: [LS-CF-001]