Defang breach: attacker stole production credentials and copied the entire user database

Defang Security Incident

On November 12, 2026, an attacker abused an over-privileged development GitHub App to run code in Defang's CI, copying production credentials and downloading the main database. Names, emails, GitHub usernames, connected cloud account IDs, and deployment state from October 12 to November 19 were exposed, along with a Stripe key that could read billing records. Defang replaced credentials on November 23 and lists checks users must do themselves.

The token was stored encrypted, but the encryption key was taken too.
  1. skinfaxi

    >We used a separate GitHub App for local development and testing. It was installed on two of our own repositories and had more permissions than it needed, including permission to change deployment environments. Acting as that app, the attacker pushed a commit to one of those repositories and tagged it as a release. Our production environment trusted release tags, so their code ran in our CI with access to our production credentials, and the attacker copied them.

    How did the attacker act as the app? How did the attacker gain access to the app credentials?

    I wonder which audits would have uncovered this over-permissioning. Certainly not ISO 27001 or SOC 2 as I've seen them done.

  2. lajr

    So if you installed the Defang GitHub App, the attacker can:

    - push commits and branches

    - change repo settings

    - deploy and activate trusted workflows which can access any of the cloud credentials you have

    - even more (secret overwrite, protection rules)

    This seems like it could have a very large blast radius

  3. neya

    Holy crap!

    If you installed the Defang GitHub App: what the attacker could use:

    - push commits and branches

    - change workflow files and start workflow runs

    - overwrite Actions secrets and variables

    - change deployment environments and their protection rules

    - open and merge pull requests

    - change repository settings, including branch protection, deploy keys and collaborators

    If you have billing details with us

    - your name and email address

    - your billing address, or the parts of it you gave us, and your tax ID if you entered one

    - the brand, last four digits and expiry date of your card

    - your subscription and invoice history

    So, an attacker basically has everything about me - who I am, where I live, what banks I have an account with, my entire source code. Basically, if my attacker wanted, my career could be over. Damn.

More from this day

2026-11-25