Skip to content
← RegistryDossier · 6 steps · 5 edges

Cloudflare account compromise → Worker rewrite → mass cred theft

Phish a Cloudflare account belonging to a popular site operator. Deploy a Worker that injects JS into every response — captures form posts (logins, payments) for the duration the operator doesn't notice.

Filed by AD Knowledge Base
§ Kill-chainDrag · zoom · scroll

§ Context

Assumed environment: target operates a high-traffic site fronted by Cloudflare. Cloudflare account has no hardware-key MFA / API token has Worker scope.

§ Steps

  1. 01
    Pipe to attacker-controlled endpointExfiltration
    T1041Exfiltration Over C2 Channel
  2. 02
    Remove Worker before detectionDefense Evasion
    T1070Indicator Removal
  3. 03
    Worker injects JS into responsesImpact
    W-XSS-STOREDStored XSS
  4. 04
    Phish Cloudflare admin credential / tokenInitial Access
    PH-AITM-EVILGINXAITM Phishing — Evilginx / Modlishka
  5. 05
    Capture form posts (logins, payments)Collection
    T1056Input Capture
  6. 06
    Deploy attacker Cloudflare WorkerInitial Access
    CDN-WORKER-COMPROMISECloudflare Worker / Edge Function Compromise

§ References

§ Frequently asked

What is the "Cloudflare account compromise → Worker rewrite → mass cred theft" attack path?
Phish a Cloudflare account belonging to a popular site operator. Deploy a Worker that injects JS into every response — captures form posts (logins, payments) for the duration the operator doesn't notice. It chains 6 steps drawn from real-world offensive-security techniques.
What starting position does this attack require?
The first step is Pipe to attacker-controlled endpoint (T1041) — a exfiltration primitive. Assumed environment: target operates a high-traffic site fronted by Cloudflare.
What is the final impact of this kill-chain?
The final step lands on Deploy attacker Cloudflare Worker (CDN-WORKER-COMPROMISE), which falls under Initial Access. From here, an operator typically pivots into post-exploitation or maintains persistence.
How can defenders detect or prevent this attack?
Detection and prevention vary per step. Refer to each linked MITRE ATT&CK entry under "References" — every technique on that page lists defensive controls, detection telemetry, and known threat-actor usage.

§ Related dossiers