Defang's build system let an attacker copy its user database
An over-permissioned GitHub App let an attacker trigger a privileged CI run through a tagged release, copying production credentials and then the user database. The credentials stayed valid for eleven days.
Defang, which deploys apps from a Docker Compose file straight to AWS, GCP or DigitalOcean, disclosed on 24 November that an attacker had compromised its build system. On 12 November at 06:05 UTC, the attacker exploited an over-permissioned development GitHub App to push a commit to one of Defang’s repositories and tag it as a release. That tag ran in CI with access to production credentials: by 06:26 UTC the credentials were copied, and between 07:57 and 08:10 UTC the attacker used them to copy Defang’s user database. The credentials stayed valid until Defang replaced them on 23 November, when a routine security scan first caught the activity.
Anyone with a Defang Portal account is in the stolen database, which held names, emails, GitHub and GitLab usernames and org names, signup survey answers, private repository names, cloud account and project IDs, deployed Compose files, and deployment-state snapshots from 12 October to 19 November that can include database passwords and environment variables. A stolen Stripe key also exposed card brand, last four digits, billing address and invoice history, though not full card numbers. Defang replaced its GitHub App key and production credentials, and revoked every session and access token issued before 23 November.
Why it matters: Defang’s CI trusted a pushed release tag enough to hand it production access, the same trust boundary that keeps failing across CI/CD systems generally. If you deploy through Defang, rotate anything you deployed between 12 October and 19 November, lock your deploy environments to specific branches, and reconnect the GitHub App from scratch.
The caveat: Defang hasn’t given a user count, and the exposure ran for eleven days before a routine scan caught it, not an alert.