Credentials Cloudflare failed to rotate after the Okta breach let an attacker into its Atlassian servers
Cloudflare was breached with tokens it never rotated after the Okta hack.
Are you affected?
The free scanner that answers this opens soon. Until then, the steps below work by hand.
What happened
Unrotated Okta-era tokens let attackers into Cloudflare. Cloudflare said on 2024-02-01 that after the October 2023 Okta compromise it failed to rotate one Moveworks service token and three service account credentials (Smartsheet, Bitbucket and an AWS environment) that it believed were unused. From 2023-11-14 an attacker used them to reach Cloudflare's self-hosted Atlassian servers: it accessed Jira and Confluence from 2023-11-15, installed the Sliver framework on 2023-11-22, viewed 120 Bitbucket repositories and downloaded 76. Cloudflare detected it on 2023-11-23 and ended access on 2023-11-24. Cloudflare says no customer data or systems were affected and found no access to its global network, SSL keys or customer databases. Its response rotated more than 5,000 production credentials.
- Exposure starts
- 2023-11-14
- Exposure ends
- 2023-11-24
- Confidence
- high
- Scope
- Cloudflare's internal service token and service account credentials exposed in the October 2023 Okta compromise; Cloudflare says customer data and systems were not affected
What to do, in this order
- List every service token, service account and API key that a breached vendor (here Okta) could have exposed
Advisory inference. Cloudflare's breach came from four such credentials it had treated as unused and did not rotate.
- Rotate all of them, starting with tokens that give remote or administrative access
Advisory inference. The Moveworks token gave remote access and the Smartsheet account gave administrative access to Jira, which together opened the way in.
anything else stored there
- Search logs for the IOCs Cloudflare published
Cloudflare urges organisations, especially those affected by the Okta breach, to look for this activity.
Notes
- Included as a lesson for RotateIt users, not because Cloudflare customers must rotate anything; Cloudflare says no customer data or systems were affected.
- Cloudflare says its Code Red remediation ran from 2023-11-27 to 2024-01-05, with forensic triage on 4,893 systems and every machine in its global network reimaged and rebooted.
- Advisory inference, not Cloudflare guidance. Cloudflare only urges others to search their logs for its IOCs; RotateIt draws the rule to rotate every credential a breached vendor could reach, including ones believed unused.
How to tell if you’re affected
- Connections to 193.142.58.126 (threat actor infrastructure) or 198.244.174.214 (Sliver C2)
- Payload downloads from idowall[.]com
- A file named jvm-agent (the Sliver payload)
Sources
Rotating the keys
Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.
By hand, free: the steps above.