Defang Security Incident

Hacker News by 11 min read 14x views
Defang Security Incident

Share Post

Defang Blog

November 24, 202610 min read

 Security incident, November 2026. What happened, what was exposed, and what you should do.

On November 12, 2026 an attacker copied the credentials we use to run Defang and downloaded a copy of our chief 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 scheme and copied the credentials we use to run Defang. With those they downloaded a copy of our chief database. We confirmed this on November 23, 2026. If you have a Defang Portal account, your document is in that database, and this article explains what was taken and what you should do. We are additionally penning to all affected person by email.

If you installed the Defang GitHub App, several of those credentials could additionally be used against your GitHub repositories and your haze account. We have replaced them, but there are checks lone you can do. They are listed under "What you should do" below. Please go through them as shortly as you can.

What happened

We used a distinct GitHub App for local betterment and testing. It was installed on two of our own repositories and had additional permissions than it needed, including approval to alter deployment environments. Acting as that app, the attacker pushed a commit to one of those repositories and tagged it as a release. Our manufacturing surroundings trusted publish tags, so their code ran in our CI alongside admission to our manufacturing credentials, and the attacker copied them.

The action we can see ran from concerning 06:00 to 10:30 UTC on November 12. The credentials stayed valid until we replaced them on November 23. We are motionless checking whether they were used following November 12. Some of our logs are not detailed adequate to regulation that out, so we volition update this article whenever we cognize more.

Timeline

All times are UTC.

  • November 12, 06:05: the archetypal workflow that copied build credentials ran, against our betterment and staging environments.
  • November 12, 06:26: our manufacturing credentials were copied.
  • November 12, 07:57 to 08:10: the repository was copied.
  • November 15: we were made conscious of a safety matter alongside a dependency and installed the update.
  • November 23: a regular safety scan established doubtful action in our repositories.
  • November 23: we confirmed the repository copy from our admission logs, replaced our manufacturing credentials and emailed all affected user.
  • November 24: we published this post.

What the attacker could see

  • Your name and email address. This is the location only: the attacker did not enter your email document or see any of your messages.
  • Your GitHub or GitLab username, and the names of the organizations that document belongs to
  • The answers you gave whenever you signed up
  • If you installed the Defang GitHub App: the names of the repositories it can access, including personal ones
  • The haze accounts you connected to Defang (account, project or subscription IDs and regions; no credentials)
  • The Compose records you deployed or generated alongside Defang
  • Copies of deployment province from deploys between October 12 and November 19. These can contain repository passwords and any surroundings changeable built from a defang config value, specified as a repository 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 whenever you nexus 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 records and commencement workflow runs
  • overwrite Actions secrets and variables
  • change deployment environments and their safety rules
  • open and merge drag requests
  • change repository settings, including branch protection, deploy keys and collaborators

A workflow run started this way can obtain your haze credentials, since the function Defang set up for GitHub deploys trusts workflows in your repository.

If you have billing particulars alongside us

The copied credentials included a key for our document at Stripe, our fee provider. Until we replaced it on November 23, person holding that key could read the document 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, final four digits and expiry date of your card
  • your subscription and invoice history

Your complete cardstock figure and safety code were not exposed. Stripe holds those and does not create them accessible to Defang or to anyone using our key.

What was not exposed

  • Passwords. Defang has none for you: you sign in alongside GitHub, GitLab or an emailed code.
  • Your haze credentials. We never clasp them. Your BYOC deployments run in your own document alongside your own credentials, and Defang's servers have no straightforward admission to that document or to item operating in it. The one indirect way is the GitHub Actions deploy function described above.
  • The contents of your repositories. They are not stored in our database.
  • Config values you set alongside defang config. They remain in your haze account, apart from for the copies in deployment province described above.

What we have done

  1. Replaced the Defang GitHub App key and secrets on November 23, and revoked the GitHub sign-in tokens we held.
  2. Replaced our another manufacturing credentials, including database, fee and email credentials, on November 23.
  3. Signed out all meeting and invalidated all Defang admission token issued before November 23.
  4. Stopped keeping copies of deployment province on November 19 and deleted the copies we had.
  5. Cancelled all pending haze invitation link. If you were inviting someone, dispatch a new invite.
  6. Notified GitHub, who are assisting us audit for token misuse.
  7. Installed the safety update on November 15.
  8. Revoked the betterment GitHub App's credentials and suspended the app on November 23.
  9. Reverted the manufacturing and staging deployment configurations that were altered by the attacker.
  10. Notified users and applicable authorities of the data breach.

What you should do

Everyone

  • Be careful alongside email that claims to arrive from Defang, GitHub or GitLab, particularly item that asks you to sign in, endorse an app or portion a code. Someone holding this data can compose a convincing communication that uses your genuine name and username. We volition never ask you for a password or a token by email.
  • You volition need to sign in to Defang again.

If you installed the Defang GitHub App: in GitHub

  1. Check your connected repositories for action you don't acknowledge 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 safety rules
  2. Look in particular at item from defang-app[bot]. Your safety log is at github.com/settings/security-log; organizations have an audit log under Settings.
  3. Lock downward the deployment environments Defang created. In all connected repository, open Settings, afterward Environments. For all surroundings whose name starts alongside defang-, set "Deployment branches and tags" to your deploy branch only. You can additionally add required reviewers. This stops a workflow on any another branch from receiving your haze credentials.
  4. Revoke and reconnect Defang's admission to your GitHub account. In GitHub, go to Settings, afterward Applications, afterward Authorized GitHub Apps, and revoke Defang. Sign in to Defang again afterwards.
  5. If you no longer deploy from GitHub alongside Defang, uninstall the Defang app from your document or organization.

If you deploy from GitHub Actions: in your haze account

  1. Check who has used your deploy function since November 11. The function or character Defang set up for GitHub deploys has director admission to your account. A token from a branch or workflow you don't deploy from is a sign of misuse.
    • On AWS this is normally defang-cd-CIRole. Search CloudTrail for AssumeRoleWithWebIdentity calls on it.
    • On Google Cloud, inspect the workload character pool's token exchanges.
    • On Azure, inspect the sign-in logs for the managed identity.
  2. Narrow that role's rely to the branch or surroundings you deploy from, if it currently allows any branch.

If you deployed alongside Defang between October 12 and November 19

  1. Change your repository passwords and any concealed that was part of another surroundings variable, afterward redeploy. Use defang config set <NAME> for all one.
  2. If your Compose document has secrets written immediately in it, alter those too.

If you have billing particulars alongside us

You do not need to substitute your card. The exposed particulars are not adequate to accusation it. Watch your statements as you normally would, and be wary of email or calls that citation your final four digits or billing location to appear legitimate.

If any of these checks turns up item you don't recognize

Rotate the secrets in that repository's Actions secrets and environments and the haze credentials its workflows can reach, afterward inform us.

Frequently asked questions

Was my GitHub password exposed? Do I need to alter it correct away?

No. Defang never had your GitHub password. You sign in alongside GitHub, GitLab or an emailed code, so there is no password for us to lose.

What the attacker could use was the Defang GitHub App's key and the GitHub sign-in token we keep whenever you nexus GitHub. We replaced the key and revoked those tokens on November 23. Changing your GitHub password is not required, but it does no harm, and turning on two-factor authentication is a fine idea in any case. The checks that matter are the ones under "If you installed the Defang GitHub App: in GitHub" above: appearance for action you don't recognize, fastener downward deployment environments, and revoke the Defang GitHub App.

Did they obtain lone my data from GitHub, or did they go further? Did they get my email?

They got your email address, but not your email account. The location we have on document for you is in our database, so it was copied. Defang has no admission to your mailbox, so the attacker could not peruse your email or sign in to your email document through us.

From GitHub, what we clasp is your username, the names of the organizations your document belongs to and, if you installed the Defang GitHub App, the names of the repositories it can access. The contents of your repositories are not in our database.

If you installed the Defang GitHub App, the attacker additionally held the credentials that let them act in your repositories until we replaced them on November 23. We are motionless checking whether they were used following November 12, and we volition update this article whenever we cognize more. That is why we ask you to assessment your repositories and your haze account. "What the attacker could see" and "What the attacker could use" complete catalog everything.

Did this happen lone to me, or to all users?

Anyone alongside a Defang Portal document is in the repository that was copied, so your email address, and possibly your name, was exposed alongside alongside everyone else's. Beyond that, what was exposed depends on how you use Defang. See complete division for details.

How can I defend my data? How do I inspect that an email really comes from you?

  • Don't sign in, endorse an app or portion a code since an email asked you to. Open the Defang Portal, GitHub or GitLab yourself by typing the location in your browser, fairly than following a nexus in a message.
  • We volition never ask you for a password or a token by email.
  • Someone holding this data can citation your genuine name, username or the organizations you pertain to. A communication that knows those particulars is not evidence that it comes from us.
  • If you are unsure concerning a message, onward it to [email protected] and we volition inform you whether we sent it.
  • Work through the checklist in "What you should do" above. In short: assessment your repositories, assessment your haze account, alter repository passwords and secrets if you deployed between October 12 and November 19, and rotate on two-factor authentication on your GitHub and haze accounts.

How do I delete my document and data?

Open Settings in the Defang Portal and delete your document there, or email [email protected] and we volition do it for you.

Contact us

If you discover item suspicious, or desire an engineer to go through your account, repositories or haze document alongside you, compose to [email protected]. We volition update this article as we study more.

The Defang Team

Defang Logo

Become AI-Native. Maintain Engineering Sovereignty.

Partners & Certifications

Other Article Hacker News
↑
Close Right Ads
Close Left Ads