Defang Discloses Database Breach and Compromised GitHub App Keys
An over-privileged development tool let an intruder capture production credentials and download customer portal records.
Cloud deployment service Defang disclosed a major security breach after an unauthorized party compromised its build systems, extracted production credentials, and copied its primary customer database, according to an incident advisory published on defang.io (https://defang.io/blog/post/security-incident-november-2026/).
The incident, which took place on November 12, 2026, remained undetected for eleven days until Defang identified suspicious repository activity during a routine security scan on November 23. The compromised database contains account records for all Defang Portal users, including user names, email addresses, signup survey answers, connected cloud account identifiers, Docker Compose files, and associated GitHub and GitLab usernames. The company confirmed that it has revoked all affected credentials and notified affected customers.
According to the post-mortem, the attacker gained entry by compromising a separate GitHub application that Defang maintained for local development and testing. That utility had been granted excessive permissions across two internal repositories, including authorization to modify deployment environments. Impersonating the app, the attacker pushed a commit and tagged it as a release. Because Defang's production continuous integration pipeline was configured to trust release tags automatically, the untrusted code executed inside CI with full access to production operational credentials.
Between 06:00 and 10:30 UTC on November 12, the intruder harvested credentials spanning development, staging, and production environments, eventually downloading Defang's core database between 07:57 and 08:10 UTC. In addition to account metadata, the attacker captured deployment state data generated between October 12 and November 19, which in some configurations included embedded database passwords and environment variables derived from runtime configurations.
The exposure extended beyond Defang's internal systems to its customer-facing integrations. The attacker retrieved the private key for the official Defang GitHub App along with stored GitHub user sign-in tokens, which were encrypted at rest but compromised alongside the corresponding decryption key. Those tokens granted permissions to modify repository settings, alter GitHub Actions workflow files, overwrite repository secrets, and trigger workflows. Because Defang's deployment architecture establishes cloud roles that trust GitHub workflows, rogue Actions executions could potentially be leveraged to assume administrative roles inside customers' linked Amazon Web Services, Google Cloud, or Microsoft Azure accounts.
Payment records were also partially exposed through a compromised Stripe API key, allowing the intruder to read customer names, billing addresses, tax IDs, invoice histories, and payment card brands, expiration dates, and last four digits. Full card numbers and security verification codes were not exposed because Stripe isolates raw financial data from merchants. User authentication passwords were not compromised because Defang relies exclusively on external OAuth providers and emailed access codes.
Defang stated that it rotated all production database, payment, email, and integration credentials on November 23, invalidated existing session tokens, suspended the vulnerable development app, and permanently deleted cached deployment states. GitHub is assisting the company in auditing for unauthorized token usage. Defang has advised connected developers to inspect their repository audit logs and cloud identity usage for unrecognized actions dating back to November 11.
Sources
Written by
The Company Wire
Inside the companies building what’s next. Reporting on startups, technology, funding and the people shaping them.


