Skip to main content
Back
IntrusionSaaS
6 min read

Defang credentials and database copied through a development GitHub App

Victim
Defang
When
Nov 12, 2026Disclosed Nov 24, 2026
Entry
A GitHub App used for local development and testing, installed on two Defang repositories with more permissions than it needed. How the attacker came to act as the app is not stated.

Defang, a service that runs deployments in its users' own cloud accounts, had a GitHub App for local development installed on two of its repositories with more permissions than it needed. On November 12, 2026, an attacker acting as that app, by means Defang does not state, tagged a commit as a release, and Defang's production CI trusted the tag and ran the code with access to production credentials. The attacker copied those credentials and downloaded Defang's main database, and a routine security scan found the activity on November 23.

What happened

External Parties
Unidentified attacker
Stripe
GitHub
Internet
GitHub App authenticationhow the attacker got in is not stated
GitHub
Defang's GitHub Repositories
Defang's Production CI
+ Portal account records
+ repository names
+ deployment-state copies
Production Service
+ workflows and secrets
+ Defang GitHub App
+ deploy roles
Users' Repos and Clouds
Development GitHub App
Release Tag
Production CI Workflow
Build Credentials
Defang GitHub App Key
Production Credentials

Replaying the Defang November 2026 intrusion

  1. 1

    A development app with too much reach

    Nov 12, 2026

    The 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. 2

    Production CI hands over its credentials

    Nov 12, 2026, 06:05 to 06:26 UTC

    Production 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. 3

    The main database is copied

    Nov 12, 2026, 07:57 to 08:10 UTC

    Defang'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. 4

    What the copied keys could reach

    Nov 12 to 23, 2026

    Until 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.

External Parties
Unidentified attacker
Stripe
GitHub
Internet
GitHub App authenticationhow the attacker got in is not stated
GitHub
Defang's GitHub Repositories
Defang's Production CI
+ Portal account records
+ repository names
+ deployment-state copies
Production Service
+ workflows and secrets
+ Defang GitHub App
+ deploy roles
Users' Repos and Clouds
Development GitHub App
Release Tag
Production CI Workflow
Build Credentials
Defang GitHub App Key
Production Credentials

Replaying the Defang November 2026 intrusion

1 · A development app with too much reach

2 Contained2 Not covered

2 · Production CI hands over its credentials

1 Contained1 Not covered

3 · The main database is copied

4 on other clouds

4 · What the copied keys could reach

1 Contained1 Not covered4 on other clouds

Key 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. 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.

More cloud attack breakdowns

All breakdowns