Defang breach: the GitHub and AWS checks to run if you installed the Defang app
If you installed the Defang GitHub App, check your repos and your cloud deploy role for activity since Nov 11, lock the defang- environments to your deploy branch, and revoke and reconnect the app. Defang's post (Nov 24) says an attacker copied its production credentials on Nov 12 at 06:26 UTC (1:26 AM ET) and copied its main database from 07:57 to 08:10 UTC. The credentials included the Defang GitHub App's key and the GitHub sign-in tokens Defang keeps, which stayed valid until Defang replaced them on Nov 23. Until then they allowed anything the app can do in your repos, including pushing commits, editing workflows, starting runs and overwriting Actions secrets. Defang is still checking whether they were used after Nov 12; its logs are not detailed enough to rule that out.
If you deployed with Defang between Oct 12 and Nov 19, change your database passwords and any secret built into an environment variable, then redeploy: copies of deployment state from those deploys were in what was taken. Everyone with a Defang Portal account is in the copied database (name, email, GitHub or GitLab username and org names). Defang says your cloud credentials, full card numbers and repository contents were not exposed.
What happened, per Defang
All times are UTC as Defang gives them, with ET (UTC-5) in brackets.
Entry. Defang used a separate GitHub App for local development and testing, installed on two of its own repositories, with more permissions than it needed, including changing deployment environments. Acting as that app, the attacker pushed a commit to one of those repos and tagged it as a release. Defang: "Our production environment trusted release tags, so their code ran in our CI with access to our production credentials."
Nov 12, 06:05 (1:05 AM ET): the first workflow that copied build credentials ran, against development and staging. 06:26 (1:26 AM ET): production credentials copied. 07:57 to 08:10 (2:57 to 3:10 AM ET): main database copied. The activity Defang can see ran from about 06:00 to 10:30 (1:00 to 5:30 AM ET).
Nov 15: Defang says it was made aware of a security issue with a dependency and installed the update. Its post doesn't say whether that relates to the attack.
Nov 23: a routine security scan found suspicious activity in Defang's repositories; Defang confirmed the database copy from access logs, replaced production credentials, revoked the stored GitHub tokens, suspended the development app and emailed affected users. Post published Nov 24.
Still open, per Defang: whether the credentials were used after Nov 12. It says it will update the post. It gives no count of affected users or repositories and names no attacker.
What was exposed, and what wasn't
Every Defang Portal account: name and email address (the address, not the mailbox), GitHub or GitLab username and the names of its organizations, sign-up answers.
If you installed the Defang GitHub App: the names of the repositories it can access, including private ones. Not their contents, which Defang says it doesn't store.
Connected cloud accounts: account, project or subscription IDs and regions. No credentials; Defang says it never holds them.
Compose files you deployed or generated with Defang. Secrets written directly into one are exposed.
Copies of deployment state from deploys between Oct 12 and Nov 19. Defang: these "can include database passwords and any environment variable built from a defang config value, such as a database URL that contains a password." The defang config values themselves stay in your cloud account; it's the copies in deployment state that were taken. Defang stopped keeping those copies on Nov 19 and deleted them.
Billing: a Stripe key was copied, so until Nov 23 its holder could read your Stripe customer record at Defang: name, email, billing address, tax ID if entered, card brand, last four digits and expiry, subscription and invoice history. Not the full card number or security code. Defang says you don't need to replace your card.
Usable, not just readable, until Nov 23: the Defang GitHub App key and the stored GitHub sign-in tokens (encrypted, but the encryption key was taken too). Defang lists what a holder could do in your repos: push commits and branches, change workflow files and start runs, overwrite Actions secrets and variables, change deployment environments and their protection rules, open and merge pull requests, and change repository settings including branch protection, deploy keys and collaborators. And: "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." Defang says that role has administrator access to your account.
In GitHub: what to check in each connected repo
Defang's list, with commands from us. Run them for every repository the Defang app can reach (OWNER/REPO below). They need gh signed in as someone with admin on the repo; we ran each line on Nov 26 against repos we can read. Look for anything since Nov 11 you don't recognize, especially from defang-app[bot].
Workflow runs since Nov 11, with what triggered them and on which branch or tag. A push run on a tag or branch you didn't create, or a run whose actor is the Defang bot when you didn't deploy, is the thing to chase:
Actions secrets and variables changed since Nov 11 (repo level; repeat with environments/ENV/secrets for each environment). updated_at shows when a value was last written; you can't read the value back:
gh api repos/OWNER/REPO/actions/secrets --jq '.secrets[] | [.name, .updated_at] | @tsv'
gh api repos/OWNER/REPO/actions/variables --jq '.variables[] | [.name, .updated_at] | @tsv'
Deploy keys, collaborators and pending invitations:
Branch protection and rulesets on your deploy branch: compare with what you set. Then the logs Defang points to: your personal security log at github.com/settings/security-log, and for organizations the audit log under the org's Settings. Search both for defang.
Lock down the defang- environments, then revoke and reconnect
See which environments allow any branch.null in the second column means no branch or tag restriction:
The second line lists the branches and tags a restricted environment accepts. Our note: a tag pattern there means anyone who can push a matching tag can deploy. Defang's production trusting release tags is how the attacker's code got production credentials.
Defang's fix: in each connected repo, Settings, Environments, and for every environment whose name starts with defang-, set "Deployment branches and tags" to your deploy branch only. You can also add required reviewers. Defang: "This stops a workflow on any other branch from receiving your cloud credentials."
Revoke and reconnect. GitHub Settings, Applications, Authorized GitHub Apps: revoke Defang, then sign in to Defang again (you'll have to anyway: Defang signed out every session and invalidated access tokens issued before Nov 23). If you no longer deploy from GitHub with Defang, uninstall the app from your account or organization.
In your cloud account: who used the deploy role
Defang: the role or identity it set up for GitHub deploys has administrator access, and "a token from a branch or workflow you don't deploy from is a sign of misuse." On AWS it's usually defang-cd-CIRole; search CloudTrail for AssumeRoleWithWebIdentity on it since Nov 11. Our command (CloudTrail event history keeps 90 days; it's per region, so run it in each region your workflows use, and us-east-1):
Print time, the GitHub token's subject (repo plus branch, tag or environment) and source IP for every assumption of the role:
We tested the jq part on a sample event shaped like AWS's documented AssumeRoleWithWebIdentity record; we have no Defang deploy role to run the whole line against. A subject ending in ref:refs/tags/... or a branch you don't deploy from is what Defang means. If you find one, look at what that session did next in CloudTrail.
Google Cloud: check the workload identity pool's token exchanges. Azure: check the managed identity's sign-in logs. (Defang's wording; we didn't test commands for these.)
Narrow the role's trust to the branch or environment you deploy from, if it allows any branch. See the current trust policy:
aws iam get-role --role-name defang-cd-CIRole --query 'Role.AssumeRolePolicyDocument'
A token.actions.githubusercontent.com:sub condition like repo:OWNER/REPO:* accepts any branch, tag or pull request. Per GitHub's OIDC reference, an environment-scoped subject looks like repo:OWNER/REPO:environment:NAME and a branch-scoped one like repo:OWNER/REPO:ref:refs/heads/main; repositories created after July 15, 2026 (or opted in) use an immutable format with owner and repo IDs, so copy the subject your logs show rather than typing it. Our note: if Defang's tooling manages this role, check its docs before editing so a later deploy doesn't put the old trust back.
Secrets to change
Deployed with Defang between Oct 12 and Nov 19: change database passwords and any secret that was part of another environment variable (a database URL with a password in it, for example), set each with defang config set, then redeploy. Defang's step.
Secrets written directly in a Compose file you deployed or generated with Defang: change those too.
If any GitHub or cloud check above turns up something you don't recognize: Defang says to rotate the secrets in that repository's Actions secrets and environments and the cloud credentials its workflows can reach, then tell Defang. Our note: rotate at the issuer and prove the old value fails, don't only overwrite the GitHub secret.
Phishing: the copied data lets someone write to you using your real name, username and org names. Defang says it will never ask for a password or token by email.
Same pattern this week: a GitHub path to production
Three separate incidents disclosed Nov 24 and 25, each in the vendor's own words. Nobody has linked the attackers; the shared part is the route, a GitHub identity that could reach CI and production credentials.
1Password (Nov 25): investigating since Nov 19 "indications that an attacker gained access to an employee's corporate GitHub account," used "to access source code and push malicious code to backend services, which downloaded administrative data" for a subset of customers (names, emails, account metadata, tokens in certain invitation and recovery links). The attacker also reached its CI/CD system; 1Password rotated all credentials that may have been exposed. Vault contents, the keys that protect them, account passwords and Secret Keys were not affected, and 1Password says users don't need to change anything.
Todoist (published Nov 24, updated since): between Nov 22 and 23 an attacker "used a stolen credential associated with our version control system to modify automated workflows in three repositories and obtain additional credentials," one of which let the attacker change how employees access internal systems; Todoist says it was used to take over an employee's work account and reach its cloud infrastructure. Todoist says it hasn't established how the credential was obtained; its leading theory, unconfirmed, is a compromised employee device. Approximate figures it gives: about 6% of users' emails and older salted SHA1 password hashes, smaller groups for API and Slack tokens, and content the attacker searched for credentials.
Hardening that would have cut the path (generic, ours)
Deploy environments restricted to one branch, with required reviewers for production. Don't let tags deploy unless only a few people can create them.
If tags deploy, protect them: a tag ruleset limiting who can create or move release tags. A GitHub App with contents write can push a tag like anyone else.
Cloud OIDC trust scoped to an environment or branch, never repo:OWNER/REPO:*, and a deploy role with the permissions deploys need, not administrator.
Least-privilege GitHub Apps. Review installed apps (org Settings, GitHub Apps; personal Settings, Applications) and remove any with environment, administration or workflow write they don't need. Defang's attacker acted as a dev/test app with more permissions than it needed.
Keep dev and test tooling out of the production path, so a test app or staging workflow can't trigger a production deploy. Defang's dev/test app reached production because production trusted release tags.
Whether the GitHub App key, the stored tokens or the Stripe key were used after Nov 12. Defang can't rule it in or out yet.
How many users, repositories or cloud accounts are affected. Defang gives no numbers.
How the attacker got control of Defang's development GitHub App. The post describes what the app was allowed to do, not how it was taken over, and doesn't tie the Nov 15 dependency update to the attack.
Who did it. Defang names no one, and nothing public links this to the 1Password or Todoist attackers.