
On November 12, 2026 an attacker copied the credentials we use to run Defang and downloaded a copy of our main database. Here is what happened, what was exposed, what we have done, and what you should do.
On November 12, 2026 an attacker got into the Defang Deploy build system and copied the credentials we use to run Defang. With those they downloaded a copy of our main database. We confirmed this on November 23, 2026. If you have a Defang Portal account, your account is in that database, and this post explains what was taken and what you should do. We are also writing to every affected user by email.
If you installed the Defang GitHub App, some of those credentials could also be used against your GitHub repositories and your cloud account. We have replaced them, but there are checks only you can do. They are listed under "What you should do" below. Please go through them as soon as you can.
What happened
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.
The activity we can see ran from about 06:00 to 10:30 UTC on November 12. The credentials stayed valid until we replaced them on November 23. We are still checking whether they were used after November 12. Some of our logs are not detailed enough to rule that out, so we will update this post when we know more.
What the attacker could see
- Your name and email address
- Your GitHub or GitLab username, and the names of the organizations that account belongs to
- The answers you gave when you signed up
- If you installed the Defang GitHub App: the names of the repositories it can access, including private ones
- The cloud accounts you connected to Defang (account, project or subscription IDs and regions; no credentials)
- The Compose files you deployed or generated with Defang
- Copies of deployment state from deploys between October 12 and November 19. These can include database passwords and any environment variable built from a
defang configvalue, such as a database URL that contains a password.
If you installed the Defang GitHub App: what the attacker could use
The attacker could use the Defang GitHub App's key, and the GitHub sign-in token we keep when you connect GitHub. The token was stored encrypted, but the encryption key was taken too. Until we replaced them on November 23, anyone holding these could do in your repositories what the app is allowed to do:
- 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
A workflow run started this way can receive your cloud credentials, because the role Defang set up for GitHub deploys trusts workflows in your repository.
If you have billing details with us
The copied credentials included a key for our account at Stripe, our payment provider. Until we replaced it on November 23, someone holding that key could read the record Stripe keeps for you:
- 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
Your full card number and security code were not exposed. Stripe holds those and does not make them available to Defang or to anyone using our key.
What was not exposed
- Passwords. Defang has none for you: you sign in with GitHub, GitLab or an emailed code.
- Your cloud credentials. We never hold them. Your BYOC deployments run in your own account with your own credentials, and Defang's servers have no direct access to that account or to anything running in it. The one indirect path is the GitHub Actions deploy role described above.
- The contents of your repositories. They are not stored in our database.
- Config values you set with
defang config. They stay in your cloud account, except for the copies in deployment state described above.
What we have done
- Replaced the Defang GitHub App key and secrets on November 23, and revoked the GitHub sign-in tokens we held.
- Replaced our other production credentials, including database, payment and email credentials, on November 23.
- Signed out every session and invalidated every Defang access token issued before November 23.
- Stopped keeping copies of deployment state on November 19 and deleted the copies we had.
- Cancelled every pending cloud invite link. If you were inviting someone, send a new invite.
- Notified GitHub, who are helping us audit for token misuse.
What you should do
Everyone
- Be careful with email that claims to come from Defang, GitHub or GitLab, especially anything that asks you to sign in, approve an app or share a code. Someone holding this data can write a convincing message that uses your real name and username. We will never ask you for a password or a token by email.
- You will need to sign in to Defang again.
If you installed the Defang GitHub App: in GitHub
- Check your connected repositories for activity you don't recognize since November 11:
- new commits, branches or tags
- changes under
.github/workflows - workflow runs you didn't start
- changed Actions secrets or variables
- new deploy keys or collaborators, and changed branch protection rules
- Look in particular at anything from
defang-app[bot]. Your security log is at github.com/settings/security-log; organizations have an audit log under Settings. - Lock down the deployment environments Defang created. In each connected repository, open Settings, then Environments. For every environment whose name starts with
defang-, set "Deployment branches and tags" to your deploy branch only. You can also add required reviewers. This stops a workflow on any other branch from receiving your cloud credentials. - Revoke and reconnect Defang's access to your GitHub account. In GitHub, go to Settings, then Applications, then Authorized GitHub Apps, and revoke Defang. Sign in to Defang again afterwards.
- If you no longer deploy from GitHub with Defang, uninstall the Defang app from your account or organization.
If you deploy from GitHub Actions: in your cloud account
- Check who has used your deploy role since November 11. The role or identity Defang set up for GitHub deploys has administrator access to your account. A token from a branch or workflow you don't deploy from is a sign of misuse.
- On AWS this is usually
defang-cd-CIRole. Search CloudTrail forAssumeRoleWithWebIdentitycalls on it. - On Google Cloud, check the workload identity pool's token exchanges.
- On Azure, check the sign-in logs for the managed identity.
- On AWS this is usually
- Narrow that role's trust to the branch or environment you deploy from, if it currently allows any branch.
If you deployed with Defang between October 12 and November 19
- Change your database passwords and any secret that was part of another environment variable, then redeploy. Use
defang config set <NAME>for each one. - If your Compose file has secrets written directly in it, change those too.
If you have billing details with us
You do not need to replace your card. The exposed details are not enough to charge it. Watch your statements as you normally would, and be wary of email or calls that quote your last four digits or billing address to appear legitimate.
If any of these checks turns up something you don't recognize
Rotate the secrets in that repository's Actions secrets and environments and the cloud credentials its workflows can reach, then tell us.
Contact us
If you find anything suspicious, or want an engineer to go through your account, repositories or cloud account with you, write to sec@defang.io. We will update this post as we learn more.
The Defang Team