Coder, a platform that provides organizations with secure, self-hosted cloud development environments, disclosed this week that its module registry was targeted in a supply chain attack. The breach affected registry.coder.com, which hosts packages developers use to source components for workspace templates.
The attacker gained access to Coder's Cloudflare infrastructure and added unauthorized IP addresses to the pool used for the module registry. As a result, Cloudflare routed some registry requests to the attacker's servers rather than Coder's legitimate servers, delivering malicious artifacts to a subset of users.
According to Coder's security advisory, the delivery window for the malicious artifacts was between 07:35 UTC and 21:45 UTC on Monday, August 31. During this time, the attackers served modified versions of Terraform modules, which are ready-made bundles of instructions for creating and configuring computing infrastructure.
The malicious modules acted as information stealers, searching for a wide range of sensitive data: provisioner environment variables and secrets, cloud infrastructure and AI-tooling API keys, CI/CD credentials, configuration-file secrets, terminal history, user OIDC tokens, configured SSH keys, one-time external authentication tokens, and Coder database passwords. The collected information was exfiltrated to the lookalike domain 'coder-infra[.]com.'
Coder recommends that potentially impacted users rotate all compromised secrets immediately. Before upgrading to a patched release (versions 2.37.0, 2.36.4, 2.35.7, and 2.34.9), Coder advises users to examine firewall, proxy, DNS, and VPC flow logs for connections to coder-infra[.]com. Developers should also search provisioner logs for data.external.telemetry, identify modules downloaded during the exposure window, and purge potentially malicious cached packages.
The project said refresh tokens were not passed to the provisioner and that there was no evidence of impact to customer data it maintained. Coder is used by prominent private and government organizations, including Dropbox, Palantir, Square, Mercedes-Benz, KKR, EnBW, the U.S. government, and defense companies.