Threat feed

defang-build-system-credential-theft

Defang build-system compromise exposes customer deployment secrets and GitHub repository access

Posted · Spectrum Delta Research Team

Summary

Deployment platform Defang disclosed on November 24, 2026 that an attacker used an over-privileged development GitHub App to push and release-tag code that ran in Defang's CI with production credentials on November 12, copying those credentials, the main database and material usable against customer repositories and cloud accounts (A/2). The copied database held every Portal account's name, email address, GitHub or GitLab username, organization and repository names including private repositories, plus deployment-state copies from October 12 to November 19 that could include database passwords and config-derived secrets. The stolen GitHub App key and sign-in tokens, stored encrypted with the encryption key also taken, stayed valid until November 23 and could push commits, change workflows, secrets and repository settings, and open pull requests in customer repositories; a workflow started that way could receive cloud credentials through the Defang deploy role. Defang advises customers to review defang-app[bot] activity since November 11, restrict defang-prefixed environments to the deploy branch, and check CloudTrail for AssumeRoleWithWebIdentity calls on the defang-cd-CIRole role.

Breakdown

Targets

Organizations

  • Organization: Defang

Technical exposure

  • CI pipelines that trust release tags and hold production credentials
  • GitHub Apps installed with more permissions than necessary
  • Deployment-state copies retaining database passwords and secrets
  • Cloud deploy roles trusting workflows from any branch

Adversary

Unidentified attacker acting as Defang's development GitHub App (A/2)

Procedures (4)

  1. Over-privileged GitHub App release-tags code trusted by production CI

    • T1078.004Valid Accounts: Cloud Accounts
    • T1195.002Supply Chain Compromise: Compromise Software Supply Chain

    Logs

    • GitHub organization audit log · commits, release tags and subsequent CI workflow runs created by the development GitHub App (defang-app[bot]) on repositories where it was installed; Defang observed the first credential-copying workflow at 06:05 UTC on November 12, production credentials copied at 06:26, and the database copied between 07:57 and 08:10 UTC, because the production environment trusted release tags and ran the attacker's code with production credentials.
  2. Stolen production credentials used to copy the main database

    • T1213Data from Information Repositories

    Logs

    • Defang database and application access logs · bulk database reads using production credentials between about 06:00 and 10:30 UTC on November 12, 2026; the copied database contained every Portal account with names, email addresses, GitHub or GitLab usernames and organizations, repository names including private repositories, connected cloud account identifiers and regions, Compose files, and deployment-state copies from October 12 to November 19 that could include database passwords and secrets built from defang config values.
  3. Stolen GitHub App key and sign-in tokens act in customer repositories

    Logs

    • GitHub repository audit and security logs · activity from defang-app[bot] since November 11, 2026: new commits, branches or tags, changes under .github/workflows, workflow runs the customer did not start, changed Actions secrets or variables, new deploy keys or collaborators, changed branch protection rules, and changed deployment environments; the stolen App key and GitHub sign-in tokens were valid until November 23, and workflow runs started this way could receive cloud credentials through the Defang deploy role trusted by workflows in the customer's repository.
  4. Cloud deploy role used from unrecognized branches or workflows

    • T1550.001Use Alternate Authentication Material: Application Access Token
    • T1078.004Valid Accounts: Cloud Accounts

    Logs

    • AWS CloudTrail · AssumeRoleWithWebIdentity calls on the defang-cd-CIRole role since November 11, 2026; a token from a branch or workflow the customer does not deploy from indicates misuse, and the role usually has administrator access to the customer's account.
    • Google Cloud audit logs · workload identity pool token exchanges for the Defang deploy identity since November 11, 2026 from branches or workflows the customer does not deploy from.
    • Azure Active Directory sign-in logs · managed identity sign-in events for the Defang deploy identity since November 11, 2026 from branches or workflows the customer does not deploy from.

Sources

Grades are source reliability (A–F) and information credibility (1–6).

Questions, detections or sightings of defang-build-system-credential-theft? Bring them to the community.