All vulnerabilities
CRITICALOpSec

OPSEC-CIRCLECI-2023

CI/CD · CircleCI

Summary

In December 2022, information-stealer malware on a CircleCI engineer's laptop went undetected by antivirus and stole a valid, 2FA-backed SSO session cookie, letting the attacker impersonate the engineer and bypass the second factor entirely because the session was already authenticated. The attacker exfiltrated data from a subset of production stores, including customer environment variables, tokens, and keys. CircleCI rotated all customer Project and Personal API tokens plus GitHub and Bitbucket OAuth tokens and urged customers to rotate any secrets used between December 21, 2022 and January 4, 2023. Fewer than five customers reported downstream unauthorized access.

How to avoid it in your code

  • Prefer short-lived OIDC-federated tokens over long-lived secrets stored in the CI vendor; rotate every stored credential after any CI vendor breach.
  • Scope CI secrets to least privilege and per-project so one platform compromise cannot expose every pipeline.
  • Bind SSO sessions to device posture and shorten session lifetimes so a stolen session cookie expires fast.
  • Deploy stealer-malware detection (EDR) on engineer endpoints, not signature antivirus alone.
  • Audit third-party OAuth grants and revoke unused CI integrations to shrink the blast radius of a token leak.

References

Related vulnerabilities

All OpSec →