What happened
Replaying the Defang November 2026 intrusion
- 1
A development app with too much reach
Nov 12, 2026The attacker acts as a development GitHub App installed on two Defang repositories, pushes a commit and tags it as a release. How the attacker came to act as the app is not stated.
- 2
Production CI hands over its credentials
Nov 12, 2026, 06:05 to 06:26 UTCProduction CI trusts the release tag and runs the attacker's code. A first workflow copies development and staging build credentials at 06:05 UTC, and production credentials are copied at 06:26 UTC.
- 3
The main database is copied
Nov 12, 2026, 07:57 to 08:10 UTCDefang's main database is copied from 07:57 to 08:10 UTC, after its production database credentials were copied. Where the copy connected from is not stated.
- 4
What the copied keys could reach
Nov 12 to 23, 2026Until November 23, the copied Defang GitHub App key and sign-in tokens could act on users' repositories, and a workflow started that way could receive users' cloud credentials through Defang's deploy role. Defang reports neither as observed.
Impact
The attacker copied Defang’s production credentials and main database. The database held Portal account records, connected repository names and cloud account identifiers. Defang also warned customers who deployed between October 12 and November 19 that saved deployment state could include database passwords or environment secrets. A copied Stripe key made billing records readable until November 23. Defang confirmed changes to its own deployment configurations, but could not establish whether the stolen credentials were used after November 12. Defang did not store sign-in passwords or repository contents in its database.
Could this have been prevented?
GitHub's own settings could have narrowed the chain, not stopped it
No control in this review refuses a step outright. The steps that mattered happened in GitHub and in Defang's CI, outside every cloud. On GitHub Enterprise Cloud, three GitHub settings narrow them: a tag ruleset that keeps release tags to the identities that cut releases, environment protection rules that, if production CI uses GitHub Actions, hold environment secrets until a listed reviewer approves the job, and an organization IP allow list for app tokens. An app with the repository Administration permission can edit the ruleset and remove the environment rules. Whether the development app held it is not stated. For the database copy, a network rule that admits the database port only from the production service bounds where a copied credential works. The post names neither the database's host nor where the copy came from. If you deploy with Defang, narrow your deploy role's trust to your deploy environment, as Defang advises. The AWS trust policy condition, the Google Cloud attribute condition and the Microsoft Entra federated identity credential are one rule on three clouds. A workflow that the copied key starts inside that environment still matches.
Incident control assessments
- 0
- Prevented
- 4
- Contained
- 4
- Not covered
How it could have been prevented
The same replay with the controls in place. Green marks where a step is refused, blue where it is bounded, and red where no control reaches it. Open a row to read the control, why it acts, and its caveat.
Replaying the Defang November 2026 intrusion
1 · A development app with too much reach
2 Contained2 Not covered2 · Production CI hands over its credentials
1 Contained1 Not covered3 · The main database is copied
4 on other clouds4 · What the copied keys could reach
1 Contained1 Not covered4 on other cloudsKey facts
- A GitHub App that Defang used for local development and testing was installed on two of its repositories with more permissions than it needed, including changing deployment environments; how the attacker came to act as it was not stated
- Acting as the app, the attacker pushed a commit and tagged it as a release; production CI trusted release tags, and a first workflow copied development and staging build credentials at 06:05 UTC on November 12, 2026, then production credentials at 06:26 UTC
- The production credentials copied included the Defang GitHub App key, the encrypted GitHub sign-in tokens with their encryption key, a Stripe account key, the database, payment and email credentials
- The main database was copied at 07:57–08:10 UTC on November 12. Defang observed activity through about 10:30 that day. The credentials remained valid until November 23. Later use is unknown.
- Until November 23, the copied app key and tokens could change workflows, secrets and environments in users' repositories, and a workflow started that way could receive users' cloud credentials through Defang's deploy role; Defang reports neither as observed, and whether the credentials were used after November 12 is unconfirmed
- A routine security scan found the activity on November 23, 2026; Defang replaced the production credentials and the GitHub App key, revoked the stored sign-in tokens, signed out all sessions, suspended the development app, reverted the deployment configurations the attacker altered and notified GitHub, users and authorities
Sources
Every fact in this breakdown comes from the public reporting below. The replay is a model of that reporting, not a reconstruction of the environment it describes.
- 1.Security incident: November 2026Defang · Nov 24, 2026 · Vendor reportTimeline, initial access, credentials copied, data exposed, what was not exposed, response, unconfirmed use after November 12, advice on the deploy role
The estate in the replay is illustrative and drawn at the level of attack stages; the victim's real environment is not public. Verdicts describe what a control does when it is in place before the incident. They are not an assessment of the victim's security program.