Coder: breach report and response
Coder disclosed that attackers compromised portions of its registry delivery infrastructure by gaining control of its Cloudflare configuration and adding unauthorized registry servers. Those rogue endpoints served malicious Terraform modules that included credential-stealing code, creating a supply-chain risk for organizations consuming modules from the affected registry paths. The incident is significant because Terraform modules are commonly used in automated infrastructure provisioning, often executed in CI/CD pipelines with broad cloud permissions. A malicious module can therefore silently capture secrets during deployment and enable follow-on access to cloud environments, source repositories, and internal services. Coder has since moved to contain the issue and advised users to review usage and rotate potentially exposed credentials.
What Data Was Exposed
Who Is at Risk
Organizations and developers who pulled and executed Terraform modules from Coder’s impacted registry infrastructure during the compromise window are most at risk. The primary exposure involves secrets accessible at runtime—such as cloud provider keys, API tokens, service account credentials, and environment variables—potentially harvested by the injected code and usable for unauthorized access to cloud resources and related systems.
How to Check If You're Affected
You can check whether your email, phone number, or password appears in known breach databases using DarkScan. Our scan is private—we never store your sensitive information.
What to Do If Your Data Was Leaked
- 1Identify whether you used Coder-hosted Terraform modules recently by reviewing Terraform logs, module sources, lock files, and CI/CD job history; inventory affected repositories and pipelines.
- 2Immediately rotate credentials that may have been available to Terraform runs (cloud access keys, service principals, API tokens, Kubernetes credentials, CI/CD secrets) and invalidate any long-lived tokens.
- 3Review recent infrastructure changes for unauthorized resources (new IAM users/roles, access keys, OAuth apps, unusual networking rules, new compute instances) and compare against expected Terraform plans/applies.
- 4Pin module sources to vetted versions and verify integrity (use checksums/signatures where available); temporarily block outbound access to untrusted registries from build runners if feasible.
- 5Hunt for indicators of secret access/exfiltration in CI/CD and runner telemetry (unexpected network calls, new domains, anomalous curl/wget usage) and enable enhanced logging for Terraform executions.
- 6Implement supply-chain controls: least-privilege for Terraform execution identities, separate roles per environment, short-lived credentials, and approval gates for module changes and production applies.