{
  "schemaVersion": 5,
  "edition": {
    "edition": "2026-Q4",
    "reviewedAt": "2026-10-11",
    "nextReview": "2027-01-15"
  },
  "license": "CC-BY-4.0",
  "generatedAt": "2026-11-27T16:39:29.254Z",
  "sourceTypeLabels": {
    "postmortem": "Postmortem: the victim's own account of the incident",
    "research": "Research: explains the primitive, generalizes beyond one victim",
    "tracker": "Tracker: live campaign feed, recheck before publishing",
    "advisory": "Advisory: vendor/CVE record with affected version ranges"
  },
  "incidents": [
    {
      "id": "dependabot-impersonation",
      "title": "Dependabot impersonation",
      "dateLabel": "July 2023",
      "sortDate": "2023-07",
      "summary": "With developers' stolen personal access tokens, an automated script pushed commits made to look like Dependabot's to hundreds of repositories, adding a workflow that sent the repository's secrets out and a password stealer to every JavaScript file.",
      "narrative": "Between 8 and 11 July 2023 hundreds of public and private GitHub repositories received commits that looked like Dependabot's. They were not: the attacker had developers' personal access tokens and wrote the author name themselves, which git allows. Each commit added a workflow, hook.yml, that ran on push and sent the repository's secrets to an outside server, and appended code to every .js file that captured passwords typed into web forms. Checkmarx confirmed with victims that their tokens had been stolen, and believes they were taken by a malicious package on the developer's machine, but says it cannot know. A token does not need 2FA, and at the time only enterprise accounts could see in the audit log what a personal access token had done.",
      "attribution": "Checkmarx noted that PAT activity logging was only visible to enterprise accounts at the time",
      "sources": [
        {
          "type": "research",
          "title": "Surprise: When Dependabot Contributes Malicious Code",
          "url": "https://checkmarx.com/blog/surprise-when-dependabot-contributes-malicious-code/"
        }
      ],
      "steps": [
        {
          "title": "Developers' tokens are stolen",
          "detail": "Checkmarx talked to victims and confirmed their personal access tokens had been stolen. How is not known; Checkmarx thinks the most likely route is a malicious package on the developer's machine sending the token out. A token works from any computer without 2FA."
        },
        {
          "title": "Commits are faked as Dependabot's",
          "detail": "From 8 July 2023 an automated script used the tokens to push commits to hundreds of repositories, with the author set to look like Dependabot. The real Dependabot was not involved; git lets the pusher write any author name."
        },
        {
          "title": "A workflow sends the repository's secrets out",
          "detail": "Each commit added .github/workflows/hook.yml, which ran on push and sent the repository's Actions secrets to the attacker's server at wagateway."
        },
        {
          "title": "A password stealer goes into every JavaScript file",
          "detail": "The same changes appended code to every .js file in the project that loaded a script from the attacker's server and captured passwords submitted in web forms, so the project's own users were the next victims."
        },
        {
          "title": "Nobody could see it in the audit log",
          "detail": "At the time, what a personal access token did was only visible in the audit log of enterprise accounts, so most victims could not check whether their token had been used. Checkmarx published on 27 September 2023 and advised moving to fine-grained tokens."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "leaked-token",
          "fixes": [
            "auth-disable-classic-pats"
          ],
          "holds": [
            {
              "ref": "scope:repo",
              "who": "Developers' PATs",
              "inferred": true
            },
            {
              "ref": "scope:workflow",
              "who": "The same tokens",
              "inferred": true
            }
          ]
        },
        {
          "step": 2,
          "technique": "no-review",
          "inferred": true
        },
        {
          "step": 3,
          "escalation": "workflow-to-secrets",
          "holds": [
            {
              "label": "Repository Actions secrets",
              "who": "Each repo's workflows"
            }
          ]
        }
      ],
      "url": "/incidents/dependabot-impersonation",
      "tier": 0,
      "wayIn": [
        "leaked-token"
      ],
      "wentAfter": [
        "submit-code",
        "steal-secrets"
      ]
    },
    {
      "id": "mercedes-benz-token-leak",
      "title": "Mercedes-Benz source code exposure",
      "dateLabel": "January 2024",
      "sortDate": "2024-01",
      "summary": "A Mercedes-Benz employee pushed a working token for the company's internal GitHub Enterprise Server to a public GitHub repository, where it sat for almost four months and gave read access to internal source code and the credentials stored in it.",
      "narrative": "In late September 2023 a Mercedes-Benz employee published code to their own public repository on github.com, and the code contained a token for Mercedes' internal GitHub Enterprise Server. Nothing caught it. RedHunt Labs found it in a routine scan on 11 January 2024 and found it still worked. RedHunt says it gave unrestricted and unmonitored access to all the source code on the server, and that the repositories held database connection strings, cloud access keys, SSO passwords, API keys, blueprints and design documents; TechCrunch saw evidence of Azure and AWS keys and a Postgres database. Mercedes says the token reached a certain number of repositories, not all of them. Once TechCrunch told Mercedes on 22 January, it revoked the token and took the repository down within two days. Mercedes said customer data was not affected as far as its analysis showed, but would not say whether anyone else used the token in those four months or whether it had the logs to tell.",
      "sources": [
        {
          "type": "research",
          "title": "Mercedes-Benz source code at risk: GitHub token mishap",
          "url": "https://redhuntlabs.com/blog/mercedes-benz-source-code-at-risk-github-token-mishap-sparks-major-security-concerns/"
        },
        {
          "type": "tracker",
          "title": "Mercedes-Benz source code exposure (Wiz cloud threat landscape)",
          "url": "https://threats.wiz.io/all-incidents/mercedes-benz-source-code-exposure"
        },
        {
          "type": "tracker",
          "title": "How a mistakenly published password exposed Mercedes-Benz source code",
          "url": "https://techcrunch.com/2024/01/26/mercedez-benz-token-exposed-source-code-github"
        },
        {
          "type": "tracker",
          "title": "A mishandled GitHub token exposed Mercedes-Benz source code",
          "url": "https://www.bleepingcomputer.com/news/security/a-mishandled-github-token-exposed-mercedes-benz-source-code/"
        },
        {
          "type": "tracker",
          "title": "Leaked GitHub token exposed Mercedes source code",
          "url": "https://www.securityweek.com/leaked-github-token-exposed-mercedes-source-code/"
        }
      ],
      "steps": [
        {
          "title": "An employee publishes the token",
          "detail": "On 29 September 2023 a full-time Mercedes-Benz employee pushed code to their own public repository on github.com. It contained a token for Mercedes' internal GitHub Enterprise Server. Mercedes later called it human error: \"source code containing an internal access token was published on a public GitHub repository\"."
        },
        {
          "title": "RedHunt Labs finds it in a scan",
          "detail": "On 11 January 2024, more than three months later, RedHunt Labs found the token during a routine scan of GitHub for leaked secrets. It still worked against the internal server."
        },
        {
          "title": "The token reads internal source code",
          "detail": "RedHunt says the token gave \"unrestricted\" and \"unmonitored\" access to the entire source code on the Enterprise Server. Mercedes disputes the breadth and says it reached a certain number of repositories, not all of them. Neither side says what kind of token it was or which scopes it had."
        },
        {
          "title": "The repositories hold more credentials",
          "detail": "According to RedHunt the repositories contained database connection strings, cloud access keys, SSO passwords, API keys, blueprints and design documents. TechCrunch saw evidence of Microsoft Azure and AWS keys and a Postgres database. BleepingComputer notes RedHunt had not validated the files' contents, so whether those keys worked is not known."
        },
        {
          "title": "Mercedes revokes the token",
          "detail": "RedHunt brought in TechCrunch on 15 January, and TechCrunch told Mercedes on 22 January. On 24 January Mercedes revoked the token and removed the public repository, and RedHunt confirmed the same day that the token no longer worked. The token had been public for almost four months."
        },
        {
          "title": "No answer on whether anyone else used it",
          "detail": "TechCrunch reported the leak on 26 January and RedHunt published on 29 January. Mercedes said customer data was not affected as far as its analysis showed, but declined to say whether a third party had used the token or whether it had access logs. BleepingComputer points out that misuse would only show up if audit logging was on for the Enterprise Server."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "leaked-token",
          "holds": [
            {
              "ref": "permission:contents:read",
              "who": "An employee's GHES token"
            }
          ]
        },
        {
          "step": 4,
          "technique": "token-read",
          "holds": [
            {
              "label": "Cloud, database and API keys",
              "who": "Mercedes' internal repos",
              "inferred": true
            }
          ]
        }
      ],
      "url": "/incidents/mercedes-benz-token-leak",
      "tier": 3,
      "wayIn": [
        "leaked-token"
      ],
      "wentAfter": [
        "expose-code"
      ]
    },
    {
      "id": "oauth-consent-phishing",
      "title": "OAuth consent phishing at scale",
      "dateLabel": "2025–2026",
      "sortDate": "2025-03",
      "summary": "Fake \"Security Alert\" issues on nearly 12,000 repositories sent developers to GitHub's real authorization page for a malicious OAuth app, and one click gave the attacker a token with full access to their account and code; device code phishing gets the same kind of token without an app.",
      "narrative": "On 16 March 2025 nearly 12,000 GitHub repositories received the same issue: a \"Security Alert\" about an unusual login from Reykjavik, with links to secure the account. Every link went to GitHub's own authorization page for an OAuth app called gitsecurityapp, which asked for broad scopes that BleepingComputer described as full access to the account and its repositories. A developer who approved it sent a token to the attacker's callback on onrender.com. Nothing about the page was fake, so password managers, 2FA and URL checks did not help, and the token keeps working until it is revoked. Device code phishing reaches the same result without an app of the attacker's own: the victim is talked into entering a code on GitHub's device verification page, which hands the attacker a token for whatever the requesting app may do. AppOmni reports that public research put the success rate of device code phishing against GitHub above 90% in authorized tests, and that attribution of real campaigns against GitHub is thinner than for Microsoft 365 or Salesforce.",
      "sources": [
        {
          "type": "tracker",
          "title": "Fake 'Security Alert' issues use OAuth app to hijack accounts",
          "url": "https://www.bleepingcomputer.com/news/security/fake-security-alert-issues-on-github-use-oauth-app-to-hijack-accounts/"
        },
        {
          "type": "research",
          "title": "Device code phishing explained: how attackers abuse OAuth across SaaS",
          "url": "https://appomni.com/blog/device-code-phishing-saas/"
        }
      ],
      "steps": [
        {
          "title": "A fake \"Security Alert\" issue is filed",
          "detail": "From 06:52 ET on 16 March 2025 the same issue appeared on nearly 12,000 repositories, warning of a login from Reykjavik, Iceland, and offering links to update the password, review sessions and turn on 2FA. Issue notifications reach the repository's maintainers by email."
        },
        {
          "title": "The link leads to a genuine GitHub authorization screen",
          "detail": "Every link went to GitHub's real OAuth authorization page for an app named gitsecurityapp, so the address, the certificate and the login were all GitHub's own."
        },
        {
          "title": "One click grants a persistent token",
          "detail": "Approving the app sent an access token to its callback, hosted on onrender.com. The app asked for scopes BleepingComputer describes as full access to the account and repositories. The token needs no password and no 2FA, and works until the user revokes the app."
        },
        {
          "title": "Device code phishing gets a token without an app",
          "detail": "With the OAuth device flow the attacker starts a login for an existing app and gets the victim to enter the code on GitHub's device verification page, often by voice or chat. AppOmni describes the same playbook used against Microsoft 365 and Salesforce, and reports that public research saw success rates above 90% against GitHub in authorized tests."
        },
        {
          "title": "What a broad token reaches",
          "detail": "A phished token with broad scope reaches the victim's private repositories and, through them, Actions secrets and the ability to change workflows. BleepingComputer advised affected users to revoke the app and check for new workflows and private gists."
        }
      ],
      "chain": [
        {
          "step": 3,
          "vector": "account-takeover",
          "holds": [
            {
              "ref": "scope:repo",
              "who": "The approved OAuth app",
              "inferred": true
            }
          ],
          "fixes": [
            "org-approval-for-new-apps",
            "org-review-installed-apps",
            "org-audit-log-siem"
          ],
          "notes": [
            "Treat an \"authorize this app\" prompt reached from an issue, email or chat link as suspicious, even on a real GitHub page."
          ]
        },
        {
          "step": 5,
          "technique": "token-read",
          "inferred": true
        }
      ],
      "url": "/incidents/oauth-consent-phishing",
      "tier": 0,
      "wayIn": [
        "account-takeover"
      ],
      "wentAfter": [
        "expose-code"
      ]
    },
    {
      "id": "circleci-session-theft",
      "title": "CircleCI session-cookie theft",
      "dateLabel": "December 2022 – January 2023",
      "sortDate": "2022-12",
      "summary": "Malware on one engineer's laptop stole a logged-in session that reached CircleCI's production systems and the secrets customers kept there, including the GitHub OAuth tokens CircleCI held for them.",
      "narrative": "Malware on a CircleCI engineer's laptop, missed by antivirus, stole a session cookie for the company's SSO. The session had already passed 2FA, so the attacker could act as that engineer from elsewhere. The engineer's normal job included generating production access tokens, and with those the attacker reached databases and stores holding customers' secrets: environment variables, API tokens, SSH and deploy keys, and the GitHub OAuth tokens CircleCI uses to read customers' repositories. The data was encrypted at rest, but the attacker took the encryption keys from a running process. A customer noticed suspicious use of their GitHub OAuth token a week later. CircleCI rotated every customer's GitHub OAuth token and told customers to rotate everything else they had stored in it, because it could not tell which secrets had been used.",
      "attribution": "CircleCI incident report",
      "sources": [
        {
          "type": "postmortem",
          "title": "CircleCI incident report for January 4, 2023 security incident",
          "url": "https://circleci.com/blog/jan-4-2023-incident-report/"
        },
        {
          "type": "postmortem",
          "title": "CircleCI security alert on 1/4/2023",
          "url": "https://circleci.com/blog/january-4-2023-security-alert/"
        },
        {
          "type": "postmortem",
          "title": "CircleCI: rotating secrets for the January 4th incident",
          "url": "https://support.circleci.com/hc/en-us/articles/11816211460891-Rotating-Secrets-for-January-4th-Incident"
        },
        {
          "type": "tracker",
          "title": "CircleCI incident (Wiz cloud threat landscape)",
          "url": "https://threats.wiz.io/all-incidents/circleci-incident"
        }
      ],
      "steps": [
        {
          "title": "Malware on an engineer's laptop takes an SSO session",
          "detail": "On 16 December 2022 malware infected a CircleCI engineer's laptop. Antivirus did not detect it. It stole a session cookie for a valid SSO session that had already passed 2FA, which let the attacker act as that engineer from a remote location."
        },
        {
          "title": "The session reaches production",
          "detail": "On 19 December the attacker started reconnaissance and reached production. The engineer could generate production access tokens as part of their normal job, and the attacker used that to get into a subset of CircleCI's databases and stores."
        },
        {
          "title": "Customer secrets and the keys to decrypt them are taken",
          "detail": "On 22 December, the last recorded unauthorised activity, the attacker exfiltrated customer environment variables, tokens and keys, including the GitHub OAuth tokens CircleCI holds for customers. The data was encrypted at rest, but the attacker had pulled the encryption keys out of a running process."
        },
        {
          "title": "A customer spots its GitHub OAuth token being used",
          "detail": "On 29 December a customer told CircleCI about suspicious GitHub OAuth activity, and CircleCI started a review with GitHub. On 30 December it confirmed that customer's GitHub OAuth token had been compromised. CircleCI later told customers to look in their GitHub audit logs for unexpected events such as repo.download_zip."
        },
        {
          "title": "CircleCI rotates GitHub and Bitbucket tokens itself",
          "detail": "From 04:00 UTC on 31 December CircleCI rotated every customer's GitHub OAuth token, with GitHub raising its API rate limits, and finished at 07:30 UTC on 7 January. On 4 January it cut off the engineer's access, removed production access from nearly all employees and told customers. It revoked all project API tokens on 5 January and personal API tokens created before 5 January on 6 January, and rotated Bitbucket tokens with Atlassian."
        },
        {
          "title": "Customers rotate everything else",
          "detail": "CircleCI could not tell which stored secrets had been used, so it asked customers to rotate all of them at the source: environment and context variables, project SSH keys including deploy keys, API tokens and runner tokens. AWS notified customers whose keys may have been exposed. By 13 January fewer than five customers had reported unauthorised access to third-party systems."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "account-takeover",
          "holds": [
            {
              "label": "2FA-backed SSO session",
              "who": "A CircleCI engineer"
            }
          ]
        },
        {
          "step": 3,
          "technique": "session-theft",
          "holds": [
            {
              "ref": "scope:repo",
              "who": "CircleCI's OAuth grants",
              "inferred": true
            },
            {
              "ref": "key:deploy-key",
              "who": "Customers' projects",
              "inferred": true
            },
            {
              "label": "Env vars, API and cloud keys",
              "who": "Customers' projects"
            }
          ]
        },
        {
          "step": 4,
          "technique": "token-read",
          "inferred": true
        }
      ],
      "url": "/incidents/circleci-session-theft",
      "tier": 0,
      "wayIn": [
        "account-takeover"
      ],
      "wentAfter": [
        "steal-secrets",
        "expose-code"
      ]
    },
    {
      "id": "nx-console-github-breach",
      "title": "GitHub's internal repositories taken through a VS Code extension",
      "dateLabel": "May 2026",
      "sortDate": "2026-05",
      "summary": "A token stolen through a poisoned TanStack package let the attacker publish a backdoored Nx Console extension, which ran on a GitHub employee's machine and led to about 3,800 of GitHub's internal repositories being copied.",
      "narrative": "It started a week earlier, with someone else's install. On 11 May 2026 an Nx contributor ran pnpm install and pulled one of the malicious TanStack versions, which took the GitHub CLI token off their machine. With that token the attacker pushed a workflow built to send out the organization's secrets, deleted workflow runs to hide it, and planted a payload in an orphan commit in nrwl/nx. On 18 May they published Nx Console 18.95.0, a backdoored release of a VS Code extension with more than 2.2 million installs and a verified publisher. It was on the Visual Studio Marketplace for about 18 minutes and on Open VSX for 36, and as soon as a workspace was opened it collected every credential it could find: GitHub tokens, npm, cloud, Vault and 1Password. One of the machines it ran on belonged to a GitHub employee. The attacker, the group known as TeamPCP, claimed about 3,800 of GitHub's internal repositories, which GitHub called directionally consistent with its own findings. GitHub found no impact on customer repositories, but rotated its secrets and the GitHub Enterprise Server signing key, so every GHES administrator had to install the new key before the next upgrade.",
      "attribution": "GitHub",
      "sources": [
        {
          "type": "postmortem",
          "title": "Investigating unauthorized access to GitHub's internal repositories",
          "url": "https://github.blog/security/investigating-unauthorized-access-to-githubs-internal-repositories/",
          "main": true
        },
        {
          "type": "postmortem",
          "title": "Nx Console v18.95.0 postmortem",
          "url": "https://nx.dev/blog/nx-console-v18-95-0-postmortem"
        },
        {
          "type": "advisory",
          "title": "GHSA-c9j4-9m59-847w: compromised Nx Console 18.95.0",
          "url": "https://github.com/nrwl/nx-console/security/advisories/GHSA-c9j4-9m59-847w"
        },
        {
          "type": "research",
          "title": "Nx Console VS Code extension compromised (StepSecurity)",
          "url": "https://www.stepsecurity.io/blog/nx-console-vs-code-extension-compromised"
        },
        {
          "type": "research",
          "title": "Mini Shai-Hulud strikes again: TanStack and more npm packages compromised (Wiz)",
          "url": "https://www.wiz.io/blog/mini-shai-hulud-strikes-again-tanstack-more-npm-packages-compromised"
        },
        {
          "type": "research",
          "title": "GitHub breached through a VS Code extension",
          "url": "https://www.aikido.dev/blog/github-breached-vs-code-extension"
        },
        {
          "type": "research",
          "title": "GitHub internal repositories breached (Sophos)",
          "url": "https://www.sophos.com/en-gb/blog/github-internal-repositories-breached"
        },
        {
          "type": "tracker",
          "title": "5 supply chain attacks in 48 hours",
          "url": "https://www.stepsecurity.io/blog/5-supply-chain-attacks-in-48-hours-why-securing-one-layer-is-not-enough"
        }
      ],
      "steps": [
        {
          "title": "A TanStack package infects an Nx contributor",
          "detail": "On 11 May 2026 TeamPCP published 84 malicious versions of 42 @tanstack packages. At 20:43 UTC an Nx core contributor ran pnpm install in another project and got @tanstack/zod-adapter 1.166.15. The project's seven day minimum-release-age was ignored, because its pinned pnpm 10.14 was older than the setting. The prepare script ran a credential stealer that took the contributor's GitHub CLI OAuth token, and the token was used against the GitHub API 74 seconds later."
        },
        {
          "title": "A secrets-dumping workflow is pushed",
          "detail": "At 20:43:51 UTC the token pushed a commit to an Nx repository adding a workflow built to send out organization secrets, with the author email made to look like a trusted bot. Nx does not say whether it ran. GitHub's advisory says the attacker ran workflows on the Nx Console repository as a contributor."
        },
        {
          "title": "Workflow runs are deleted and the token kept in use",
          "detail": "CodeQL Analysis workflow runs were deleted in bulk across several repositories on 11 May, and one more on 15 May from a different HTTP client. The token was last used at 00:04 UTC on 16 May, about five days after it was stolen."
        },
        {
          "title": "A payload is planted in nrwl/nx",
          "detail": "At 03:18 UTC on 18 May an unsigned orphan commit, 558b09d7, was pushed to nrwl/nx under a former contributor's name. It belongs to no branch, so it can only be fetched by its hash, and it holds a small package that runs the stealer under Bun. Its message threatened a wiper if the commit was deleted within 24 hours."
        },
        {
          "title": "Nx Console 18.95.0 is published",
          "detail": "At 12:30 UTC the attacker uploaded 18.95.0, with 2,777 bytes added to the minified main.js, to the Visual Studio Marketplace as the compromised contributor, and at 12:33 to Open VSX. StepSecurity says it was signed with the stolen VSCE_PAT publishing token. A maintainer saw the publish notice at 12:36 and removed it from the Marketplace at 12:47; Open VSX removed it at 13:09. The stores counted 28 and 41 downloads; Nx's own telemetry saw about 6,000 activations."
        },
        {
          "title": "It runs on a GitHub employee's machine",
          "detail": "On opening a workspace the extension ran a hidden task that fetched the orphan commit with npx and started the stealer in the background. It collected GitHub tokens, npm, AWS, Vault and 1Password credentials, private keys and Claude configuration, and sent them out over HTTPS, the GitHub API and DNS. On macOS it installed a Python backdoor polling GitHub for signed commands. GitHub says it detected and contained the compromise of the employee's device on 18 May and isolated it."
        },
        {
          "title": "About 3,800 internal repositories are copied",
          "detail": "Sophos reports the repositories were cloned with credentials taken from the employee's machine; GitHub has not said which. TeamPCP claimed about 4,000 repositories and offered them for sale from 50,000 US dollars. GitHub said its own count of about 3,800 was directionally consistent with the claim, that only GitHub-internal repositories were taken, and that some hold excerpts of support conversations with customers."
        },
        {
          "title": "Secrets and the GHES signing key are rotated",
          "detail": "From 18 into 19 May GitHub rotated its critical secrets, highest impact first, and published the incident on 20 May. As a precaution it rotated the key that signs GitHub Enterprise Server releases, so every GHES administrator had to install the new GPG public key with a GitHub script before upgrades would verify. Enterprise Cloud customers had nothing to do. Nx revoked the contributor's credentials, put a second admin's approval on Nx Console releases and stopped allowing the gh CLI on developer machines."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "upstream-dependency",
          "holds": [
            {
              "ref": "scope:repo",
              "who": "Contributor's gh token",
              "inferred": true
            },
            {
              "ref": "scope:workflow",
              "who": "The same token",
              "inferred": true
            }
          ]
        },
        {
          "step": 2,
          "vector": "leaked-token"
        },
        {
          "step": 2,
          "escalation": "workflow-to-secrets",
          "holds": [
            {
              "label": "VSCE_PAT",
              "who": "Nx Console's secret",
              "inferred": true
            }
          ]
        },
        {
          "step": 3,
          "technique": "delete-runs",
          "fromStep": 1
        },
        {
          "step": 4,
          "technique": "orphan-commit",
          "fromStep": 1
        },
        {
          "step": 5,
          "technique": "malicious-release",
          "fromStep": 2
        },
        {
          "step": 6,
          "vector": "dev-tooling",
          "holds": [
            {
              "label": "Developer tokens and keys",
              "who": "A GitHub employee"
            }
          ]
        },
        {
          "step": 7,
          "technique": "token-read",
          "holds": [
            {
              "ref": "permission:contents:read",
              "who": "Employee's access",
              "inferred": true
            },
            {
              "label": "About 3,800 internal repositories",
              "who": "GitHub"
            }
          ]
        }
      ],
      "url": "/incidents/nx-console-github-breach",
      "tier": 0,
      "wayIn": [
        "leaked-token",
        "upstream-dependency",
        "dev-tooling"
      ],
      "wentAfter": [
        "delete-history",
        "steal-secrets",
        "poison-build",
        "expose-code"
      ]
    },
    {
      "id": "glassworm",
      "title": "GlassWorm: editor extensions that steal GitHub tokens and force-push",
      "dateLabel": "October 2025 – March 2026",
      "sortDate": "2025-10",
      "summary": "Malicious VS Code, Cursor and Open VSX extensions took developers' GitHub tokens, which were then used to rebase each victim's latest commit with malware appended and force-push it over the default branch of their Python repositories, keeping the original message, author and date.",
      "narrative": "GlassWorm hides its loader in invisible Unicode characters that look like an empty string in every editor, terminal and code review view. Aikido traced it to malicious npm packages in March 2025, compromised Open VSX extensions on 17 October 2025 and GitHub repositories from 31 October. The extension payload takes credentials from the developer's machine, GitHub tokens among them, from git's credential helper, VS Code's extension storage and other places. In March 2026 the stolen GitHub access was put to use: from 8 March StepSecurity found hundreds of accounts whose Python repositories had been rewritten. The attacker took the latest commit on the default branch, appended obfuscated code to setup.py, main.py or a similar file, and force-pushed the result, so the commit message, author and author date stayed the same and only the committer date showed the change. Anyone who installed one of those packages from GitHub ran the malware, which fetches its next stage through Solana. Aikido's code search found at least 151 repositories with the decoder between 3 and 9 March, and many more had already been deleted.",
      "attribution": "Aikido, StepSecurity",
      "sources": [
        {
          "type": "research",
          "title": "Glassworm returns: invisible Unicode malware found in 150+ GitHub repositories",
          "url": "https://www.aikido.dev/blog/glassworm-returns-unicode-attack-github-npm-vscode"
        },
        {
          "type": "research",
          "title": "ForceMemo: hundreds of GitHub Python repos compromised via account takeover and force-push",
          "url": "https://www.stepsecurity.io/blog/forcememo-hundreds-of-github-python-repos-compromised-via-account-takeover-and-force-push",
          "main": true
        },
        {
          "type": "tracker",
          "title": "GlassWorm attack uses stolen GitHub tokens to force-push malware into Python repos",
          "url": "https://thehackernews.com/2026/03/glassworm-attack-uses-stolen-github.html"
        }
      ],
      "steps": [
        {
          "title": "Invisible code in packages and extensions",
          "detail": "The loader is encoded in Unicode characters that render as nothing, inside what looks like an empty string. Aikido first saw it in npm packages in March 2025, in compromised Open VSX extensions on 17 October 2025, and in GitHub repositories from 31 October."
        },
        {
          "title": "The extension takes the developer's GitHub tokens",
          "detail": "Developers installed malicious VS Code, Cursor or Open VSX extensions. The payload's credential module collects GitHub tokens from git credential fill, VS Code's extension storage and other files on the machine, along with other secrets."
        },
        {
          "title": "Each repository's latest commit is rewritten and force-pushed",
          "detail": "From 8 March 2026 the stolen access was used on hundreds of accounts. The attacker took the latest legitimate commit on each Python repository's default branch, appended obfuscated code to setup.py, main.py or a similar file, rebased and force-pushed. Message, author and author date were kept; only the committer date showed it, for example 10 March on amirasaran/django-restful-admin."
        },
        {
          "title": "Anyone installing from GitHub runs it",
          "detail": "A pip install from the repository or python setup.py install ran the appended code, which fetches a further stage through the Solana blockchain and steals tokens and credentials. Aikido's search found at least 151 repositories with the decoder from 3 to 9 March, and npm and VS Code packages were hit in the same wave."
        }
      ],
      "chain": [
        {
          "step": 2,
          "vector": "dev-tooling",
          "holds": [
            {
              "ref": "scope:repo",
              "who": "Developers' GitHub tokens",
              "inferred": true
            }
          ]
        },
        {
          "step": 3,
          "technique": "force-push"
        },
        {
          "step": 4,
          "vector": "upstream-dependency",
          "holds": [
            {
              "label": "Tokens and credentials",
              "who": "Installers' machines"
            }
          ]
        },
        {
          "step": 4,
          "technique": "malicious-release",
          "inferred": true
        }
      ],
      "url": "/incidents/glassworm",
      "tier": 0,
      "wayIn": [
        "upstream-dependency",
        "dev-tooling"
      ],
      "wentAfter": [
        "delete-history",
        "poison-build"
      ]
    },
    {
      "id": "heroku-travisci-oauth-theft",
      "title": "Heroku / Travis CI OAuth token theft",
      "dateLabel": "April 2022",
      "sortDate": "2022-04",
      "summary": "OAuth tokens stolen from Heroku, and tokens of the Travis CI app, let the attacker clone private repositories of dozens of organizations, npm among them, without ever breaking into GitHub.",
      "narrative": "The attacker never broke into GitHub. They broke into Heroku. A token for a Heroku machine account was sitting in an archived private Heroku repository, which Heroku believes was read through a third-party integration it could never name. With that token the attacker got into a Heroku database on 7 April 2022 and downloaded the GitHub OAuth tokens Heroku stored for every customer who had connected the Heroku Dashboard to GitHub. Tokens issued to the Travis CI OAuth app were also used; how they were taken is not stated. On 8 April the attacker used the tokens against the GitHub API to list each user's organizations and private repositories, picked targets, and from 9 April cloned private repositories of dozens of organizations, Heroku and npm among them. One npm repository held an AWS key. On 12 April GitHub caught that key being used against npm's production infrastructure, which is how the whole campaign came to light. GitHub believes the attacker was mining the cloned code for secrets to reach other systems.",
      "sources": [
        {
          "type": "postmortem",
          "title": "GitHub security alert: stolen OAuth user tokens",
          "url": "https://github.blog/news-insights/company-news/security-alert-stolen-oauth-user-tokens/",
          "main": true
        },
        {
          "type": "postmortem",
          "title": "npm security update: attack campaign using stolen OAuth tokens",
          "url": "https://github.blog/news-insights/company-news/npm-security-update-oauth-tokens/"
        },
        {
          "type": "postmortem",
          "title": "Heroku security notification (incident 2413)",
          "url": "https://status.heroku.com/incidents/2413"
        },
        {
          "type": "postmortem",
          "title": "Heroku: April 2022 incident review",
          "url": "https://www.heroku.com/blog/april-2022-incident-review"
        },
        {
          "type": "postmortem",
          "title": "Travis CI security bulletin: customer repositories have not been accessed",
          "url": "https://travis-ci.community/t/security-bulletin-customer-repositories-have-not-been-accessed/12899"
        },
        {
          "type": "tracker",
          "title": "GitHub and npm incident (Wiz Cloud Threat Landscape)",
          "url": "https://threats.wiz.io/all-incidents/github-npm-incident"
        }
      ],
      "steps": [
        {
          "title": "A Heroku machine account token is found in an old repository",
          "detail": "Before 7 April 2022 the attacker got a token for a Heroku machine account from an archived private GitHub repository with Heroku source code in it. Heroku assessed that the repository was read through a third-party integration, but could not confirm which one."
        },
        {
          "title": "Heroku's stored GitHub tokens are downloaded",
          "detail": "On 7 April the attacker used the machine account token to reach a Heroku database and download the GitHub OAuth tokens stored for customers of the Heroku Dashboard GitHub integration. The same day they downloaded a database of pipeline config vars for Review Apps and Heroku CI, and, with the same token, the hashed and salted passwords of Heroku user accounts. Tokens of the Travis CI OAuth app were abused too. Travis CI said the attacker took a private OAuth key linking Heroku and Travis CI from a Heroku service, and that it gave no access to customer repositories."
        },
        {
          "title": "The tokens are used to map out targets",
          "detail": "From 8 April the attacker called the GitHub API with the stolen tokens. For most users who had authorized the apps they listed every organization the user belonged to, picked organizations of interest, then listed private repositories through /user/repos and /orgs/{org}/repos. GitHub called the attack highly targeted."
        },
        {
          "title": "Private repositories are cloned, npm's among them",
          "detail": "From 9 April the attacker cloned some of those private repositories: a subset of Heroku's own, through a Heroku employee's compromised OAuth token, and those of dozens of other organizations, including npm. One of npm's private repositories held an AWS access key."
        },
        {
          "title": "The AWS key opens npm's S3 buckets",
          "detail": "With the AWS key the attacker reached npm's production infrastructure and took a backup of skimdb.npmjs.com from 7 April 2021 with metadata for every public and private package, a 2015 archive with about 100,000 npm user names, email addresses and password hashes, listings of the package buckets as of 10 April 2022, and the contents of some private packages of two organizations. GitHub found no modified or newly published packages."
        },
        {
          "title": "GitHub notices and the tokens are revoked",
          "detail": "GitHub spotted the AWS key in use on 12 April, told Heroku and Travis CI on 13 April and revoked the tokens of its own and npm's use of the apps. It named the five OAuth apps on 15 April: Heroku Dashboard (two app IDs), Heroku Dashboard Preview, Heroku Dashboard Classic and Travis CI. Heroku finished revoking every token of its GitHub integration at 5 p.m. PT on 16 April and kept the integration off until 25 May. Travis CI revoked and reissued every token linking it to GitHub."
        },
        {
          "title": "Victims are told",
          "detail": "GitHub emailed organizations whose repositories were cloned by 18 April, those whose repositories were only listed by 22 April, and every remaining user of the two integrations by 27 April. npm reset the affected passwords and finished its notifications on 2 June. Heroku reset all user passwords by 5 May and saw no further activity by the attacker after 14 April."
        }
      ],
      "chain": [
        {
          "step": 1,
          "technique": "token-read",
          "holds": [
            {
              "label": "Heroku machine token",
              "who": "Archived Heroku repo"
            }
          ]
        },
        {
          "step": 2,
          "vector": "third-party-app",
          "fixes": [
            "org-review-installed-apps"
          ],
          "holds": [
            {
              "ref": "scope:repo",
              "who": "Heroku users' tokens",
              "inferred": true
            },
            {
              "ref": "scope:repo",
              "who": "Travis CI user tokens",
              "inferred": true
            }
          ]
        },
        {
          "step": 4,
          "technique": "token-read",
          "holds": [
            {
              "label": "AWS access key",
              "who": "npm's private repo"
            }
          ]
        }
      ],
      "url": "/incidents/heroku-travisci-oauth-theft",
      "tier": 0,
      "wayIn": [
        "third-party-app"
      ],
      "wentAfter": [
        "expose-code"
      ]
    },
    {
      "id": "tj-actions-changed-files",
      "title": "tj-actions/changed-files supply-chain compromise (CVE-2025-30066)",
      "dateLabel": "March 2025",
      "sortDate": "2025-03",
      "summary": "Each compromised repository leaked the token for the next, from a spotbugs pull request to reviewdog to tj-actions, until the Action's moved release tags made every repository using it by tag print its own secrets into its workflow logs.",
      "narrative": "Four repositories, each leaking the token for the next. A pull_request_target workflow in spotbugs/sonar-findbugs leaked a maintainer's token in December 2024. Three months later the attacker used it to add a throwaway account to spotbugs/spotbugs, whose workflow dumped the repository's secrets, among them a reviewdog maintainer's token. With that they moved the v1 tag of reviewdog/action-setup, which tj-actions/changed-files ran in its own CI, and its log gave up the token of the tj-actions-bot account. That token merged a commit dressed as renovate[bot] and moved every tag of tj-actions/changed-files to it. Unit42 traced the intended target to coinbase/agentkit. Every other repository that used the Action by tag printed its secrets into its own workflow logs, which anyone can read on a public repository.",
      "attribution": "Unit42",
      "sources": [
        {
          "type": "research",
          "title": "GitHub Actions supply chain attack: Coinbase to tj-actions",
          "url": "https://unit42.paloaltonetworks.com/github-actions-supply-chain-attack/"
        },
        {
          "type": "advisory",
          "title": "CISA alert: tj-actions/changed-files and reviewdog/action-setup",
          "url": "https://www.cisa.gov/news-events/alerts/2025/03/18/supply-chain-compromise-third-party-tj-actionschanged-files-cve-2025-30066-and-reviewdogaction"
        },
        {
          "type": "advisory",
          "title": "GHSA-mrrh-fwg8-r2c3 (CVE-2025-30066)",
          "url": "https://github.com/advisories/ghsa-mrrh-fwg8-r2c3"
        },
        {
          "type": "tracker",
          "title": "tj-actions/changed-files supply chain attack (Wiz)",
          "url": "https://www.wiz.io/blog/github-action-tj-actions-changed-files-supply-chain-attack-cve-2025-30066"
        }
      ],
      "steps": [
        {
          "title": "A pull_request_target workflow leaks a maintainer's token",
          "detail": "In November 2024 a spotbugs maintainer stored their own PAT as a secret for a workflow in spotbugs/sonar-findbugs. On 6 December the attacker opened a pull request that changed the mvnw build script, and the workflow, triggered by pull_request_target, ran it with the secret in scope."
        },
        {
          "title": "A throwaway account dumps spotbugs' secrets",
          "detail": "On 11 March 2025 the attacker used that PAT to invite a new account to spotbugs/spotbugs. Two minutes later the account pushed a branch with a workflow that encrypted the repository's secrets and uploaded them as an artifact, and deleted the branch within a second. Among the secrets was a reviewdog maintainer's PAT, which Unit42 believes also reached reviewdog/action-setup."
        },
        {
          "title": "reviewdog/action-setup's v1 tag is moved",
          "detail": "With the reviewdog maintainer's PAT the attacker pointed the v1 tag at a malicious commit from a fork. Tag pushes are not in the audit log on the Free plan. The tag was restored the same evening."
        },
        {
          "title": "tj-actions' own CI leaks its bot's token",
          "detail": "A workflow in tj-actions/changed-files used tj-actions/eslint-changed-files, which runs reviewdog/action-setup. The malicious code dumped the runner's secrets, including a PAT of the tj-actions-bot account."
        },
        {
          "title": "A fake renovate[bot] commit is merged and the tags moved",
          "detail": "With the bot's PAT the attacker added a commit made to look like renovate[bot]'s to a real Renovate pull request that merged automatically, then pushed tags that moved the existing versions to it. The commit was unverified, so the real Renovate account was not involved."
        },
        {
          "title": "Coinbase was the target",
          "detail": "coinbase/agentkit ran tj-actions/changed-files@v39 in a workflow with write-all permissions. At 15:10 UTC on 14 March the attacker obtained a GITHUB_TOKEN with write access to it. Coinbase removed the workflow at 16:37 and says the attacker could not use its secrets or publish packages."
        },
        {
          "title": "Every consumer prints its secrets into its own logs",
          "detail": "At 16:57 UTC every tag pointed at the malicious commit. The payload dumped runner memory into the workflow log as double base64: AWS keys, PATs, npm tokens and private keys, readable by anyone on public repositories. Wiz saw no exfiltration to an outside server. The repository was taken down on 15 March and restored without the commits."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "untrusted-input"
        },
        {
          "step": 1,
          "technique": "pwn-request",
          "holds": [
            {
              "ref": "scope:repo",
              "who": "A spotbugs maintainer's PAT",
              "inferred": true
            }
          ]
        },
        {
          "step": 2,
          "vector": "leaked-token"
        },
        {
          "step": 2,
          "escalation": "members-to-collaborator",
          "holds": [
            {
              "ref": "permission:workflows:write",
              "who": "Invited throwaway account",
              "inferred": true
            }
          ]
        },
        {
          "step": 2,
          "escalation": "workflow-to-secrets",
          "holds": [
            {
              "ref": "permission:contents:write",
              "who": "A reviewdog maintainer's PAT"
            }
          ]
        },
        {
          "step": 3,
          "vector": "leaked-token"
        },
        {
          "step": 3,
          "escalation": "tags-to-downstream"
        },
        {
          "step": 4,
          "vector": "upstream-dependency"
        },
        {
          "step": 4,
          "technique": "runner-memory",
          "holds": [
            {
              "ref": "permission:contents:write",
              "who": "tj-actions-bot's PAT"
            }
          ]
        },
        {
          "step": 5,
          "vector": "leaked-token"
        },
        {
          "step": 5,
          "escalation": "tags-to-downstream"
        },
        {
          "step": 6,
          "vector": "upstream-dependency"
        },
        {
          "step": 6,
          "escalation": "runner-code-to-token",
          "holds": [
            {
              "ref": "permission:contents:write",
              "who": "agentkit's workflow token"
            }
          ]
        },
        {
          "step": 7,
          "vector": "upstream-dependency",
          "fromStep": 5
        },
        {
          "step": 7,
          "technique": "runner-memory",
          "holds": [
            {
              "label": "Secrets in public workflow logs",
              "who": "Each consumer's runner"
            }
          ],
          "notes": [
            "Treat workflow logs as a place secrets leak: on a public repository anyone can read what the payload printed."
          ]
        }
      ],
      "url": "/incidents/tj-actions-changed-files",
      "tier": 0,
      "wayIn": [
        "leaked-token",
        "untrusted-input",
        "upstream-dependency"
      ],
      "wentAfter": [
        "release-tag",
        "steal-secrets",
        "persist"
      ]
    },
    {
      "id": "artipacked",
      "title": "ArtiPACKED artifact token leakage",
      "dateLabel": "August 2024",
      "sortDate": "2024-08",
      "summary": "Public workflow artifacts in projects of Red Hat, Google, AWS, Microsoft, OWASP and others contained the job's own GitHub token, and Unit 42 showed it could download one and push with it before the job ended, or use a six-hour runtime token to swap an artifact.",
      "narrative": "actions/checkout writes the workflow's GITHUB_TOKEN into the local git configuration by default so later steps can run git commands. Workflows that uploaded their whole checkout directory as an artifact, or uploaded super-linter's log with CREATE_LOG_FILE on, published that token with the artifact, readable by anyone on a public repository. Unit 42's Yaron Avital found such artifacts in well-known projects of Red Hat, Google, AWS, Canonical, Microsoft and OWASP, among others. A GITHUB_TOKEN expires when its job ends, so most were already dead by the time they could be downloaded. But upload-artifact v4 makes an artifact downloadable while the job is still running, and where steps followed the upload there was a race to win: Avital took a token from Red Hat's clair project and used it to create a branch before it expired. Some artifacts also held ACTIONS_RUNTIME_TOKEN, which lives about six hours and can replace a run's artifacts, so a later job or a user downloading them gets the attacker's file. super-linter stopped writing environment variables to its log after the report.",
      "attribution": "Unit42",
      "sources": [
        {
          "type": "research",
          "title": "ArtiPACKED: hacking giants through a race condition in Actions artifacts",
          "url": "https://unit42.paloaltonetworks.com/github-repo-artifacts-leak-tokens/"
        },
        {
          "type": "tracker",
          "title": "GitHub Actions artifacts found leaking auth tokens in popular projects",
          "url": "https://www.bleepingcomputer.com/news/security/github-actions-artifacts-found-leaking-auth-tokens-in-popular-projects/"
        },
        {
          "type": "research",
          "title": "GitHub Actions security: a guide to common risks",
          "url": "https://orca.security/resources/blog/github-actions-security-risks/"
        },
        {
          "type": "research",
          "title": "GitHub Actions hardening",
          "url": "https://orca.security/resources/blog/github-actions-hardening/"
        }
      ],
      "steps": [
        {
          "title": "checkout leaves the token on disk",
          "detail": "By default actions/checkout persists credentials: it writes the workflow's GITHUB_TOKEN into the repository's local git configuration so later steps can push. Nothing removes it before the job ends."
        },
        {
          "title": "The token ends up in a public artifact",
          "detail": "Workflows that uploaded their whole checkout directory as an artifact took that file with them; microsoft/typescript-bot-test-triggerer was one. super-linter with CREATE_LOG_FILE set wrote environment variables, tokens among them, to a log that many workflows upload. On a public repository anyone can download the artifact."
        },
        {
          "title": "A race against the end of the job",
          "detail": "A GITHUB_TOKEN expires when its job ends, and Unit 42's first tries all failed with 401. upload-artifact v4 makes an artifact available while the job is still running, so where other steps followed the upload there was time to download it, extract the token and use it. In Red Hat's clair project the token was used to create a branch named impala before it expired."
        },
        {
          "title": "A runtime token replaces artifacts",
          "detail": "Some artifacts also contained ACTIONS_RUNTIME_TOKEN, an undocumented token that actions/cache and actions/upload-artifact use, valid for about six hours. Unit 42 used one to replace a project's artifact with its own file, so whatever downloads that artifact next gets the attacker's version."
        },
        {
          "title": "Reported and fixed project by project",
          "detail": "Unit 42 reported the findings to the affected projects, including Red Hat, Google, AWS, Canonical, Microsoft and OWASP, and to super-linter, which stopped printing environment variables to its log file. Unit 42 published in August 2024."
        }
      ],
      "chain": [
        {
          "step": 2,
          "escalation": "runner-code-to-token",
          "holds": [
            {
              "ref": "permission:contents:write",
              "who": "The job's workflow token"
            }
          ],
          "notes": [
            "Keep logs that print environment variables out of uploaded artifacts: super-linter's log carried the token."
          ]
        },
        {
          "step": 3,
          "technique": "no-review",
          "inferred": true
        },
        {
          "step": 4,
          "vector": "leaked-token",
          "start": true,
          "holds": [
            {
              "label": "Replace the run's artifacts",
              "who": "Runtime token, ~6 hours"
            }
          ]
        }
      ],
      "url": "/incidents/artipacked",
      "tier": 2,
      "wayIn": [
        "leaked-token"
      ],
      "wentAfter": [
        "submit-code",
        "steal-secrets"
      ]
    },
    {
      "id": "agentic-mcp-tokens",
      "title": "GitHub MCP / agentic token breadth",
      "dateLabel": "May 2025 – ongoing",
      "sortDate": "2025-05",
      "summary": "An AI agent holding a token that reaches private repositories reads an issue someone wrote on a public repository, follows the instructions hidden in it, and copies private content into a public pull request or comment; no stolen credential is needed.",
      "narrative": "In May 2025 Invariant Labs showed it with the official GitHub MCP server. A developer had Claude Desktop connected to GitHub with a token for all their repositories and asked it to look at the open issues of one of their public repositories. One issue, written by the attacker, told the agent to gather information about the owner from their other repositories and add it to the README. The agent read the private repositories and opened a public pull request containing what it found. Invariant called it a toxic agent flow: untrusted input, private data and a way to publish, all reachable by one agent. A reporter on the server's issue tracker reproduced it and found that even a token limited to public repositories could read private ones in that setup; GitHub's maintainers treated it as a general risk of agents with write tools rather than a server bug. In July 2026 Noma Security showed the same against GitHub Agentic Workflows, where an organization can give an agent read access across its repositories: a normal-looking public issue got the agent to post private contents in a public comment.",
      "attribution": "Invariant Labs, Orca Security, Noma Security",
      "sources": [
        {
          "type": "research",
          "title": "GitHub MCP exploited: accessing private repositories via MCP",
          "url": "https://invariantlabs.ai/blog/mcp-github-vulnerability",
          "main": true
        },
        {
          "type": "research",
          "title": "github-mcp-server issue #844: token scope reproduction",
          "url": "https://github.com/github/github-mcp-server/issues/844"
        },
        {
          "type": "tracker",
          "title": "Public GitHub issue could trick agentic workflows into leaking private repo data",
          "url": "https://thehackernews.com/2026/07/public-github-issue-could-trick-github.html"
        },
        {
          "type": "research",
          "title": "MCP horror stories: the GitHub prompt injection data heist",
          "url": "https://www.docker.com/blog/mcp-horror-stories-github-prompt-injection/"
        },
        {
          "type": "research",
          "title": "AI GitHub agents: how one issue leaked private repos",
          "url": "https://www.upguard.com/blog/ai-github-agents-issue-leaked-private-repos"
        }
      ],
      "steps": [
        {
          "title": "An agent gets a token for everything",
          "detail": "The developer connects an agent, here Claude Desktop with the official GitHub MCP server, to GitHub with a personal access token that reaches all their repositories, public and private, and can open pull requests."
        },
        {
          "title": "Anyone can write to what the agent reads",
          "detail": "Anyone can open an issue on a public repository. The attacker writes one that reads like a request from the owner: look at the owner's other repositories and add what you find about them to the README."
        },
        {
          "title": "A routine request pulls the issue in",
          "detail": "The developer asks the agent to look at the open issues. It reads the attacker's issue, cannot tell those instructions from its owner's, and follows them, reading the private repositories with the token it holds."
        },
        {
          "title": "Private content goes public",
          "detail": "The agent opens a pull request on the public repository with the private details in it. In Invariant's demonstration that was the owner's private projects and personal information. A reporter on the server's tracker found that a token limited to public repositories still read private ones in that setup; GitHub's maintainers treated the report as a general agent risk rather than a server vulnerability."
        },
        {
          "title": "The same against GitHub Agentic Workflows",
          "detail": "In July 2026 Noma Security showed that GitHub Agentic Workflows, where an organization can give an agent read access across its repositories for context, can be steered by a normal-looking public issue into posting private repository contents in a public comment, with no stolen credential."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "ai-agent",
          "fixes": [
            "org-agent-mcp-controls"
          ],
          "holds": [
            {
              "ref": "permission:contents:read",
              "who": "The agent's token"
            },
            {
              "ref": "permission:pull_requests:write",
              "who": "The same token"
            }
          ]
        },
        {
          "step": 4,
          "technique": "agent-leak"
        }
      ],
      "url": "/incidents/agentic-mcp-tokens",
      "tier": 2,
      "wayIn": [
        "ai-agent"
      ],
      "wentAfter": [
        "expose-code"
      ]
    },
    {
      "id": "installation-token-abuse",
      "title": "GitHub App installation token abuse",
      "dateLabel": "Ongoing",
      "sortDate": "2022-01",
      "narrative": "An attacker holding the App private key, or landing on a runner that carries the installation, mints fresh short-lived tokens with scopes like contents:write and pull_requests:write, then reads private repos, pushes code, or opens malicious PRs. GHES also had an incorrect-authorization bug, fixed in 2022 (versions 3.3.17/3.4.12/3.5.9/3.6.5), where a scoped user-to-server token could escalate to full admin/owner.",
      "sources": [
        {
          "type": "research",
          "title": "What is GitHub App token abuse?",
          "url": "https://securelayer7.net/learn/credential-access/github-app-token-abuse"
        },
        {
          "type": "advisory",
          "title": "HackerOne #1732595: scoped user-to-server token escalates to org admin/owner",
          "url": "https://hackerone.com/reports/1732595"
        }
      ],
      "url": "/incidents/installation-token-abuse",
      "tier": null,
      "wayIn": [],
      "wentAfter": []
    },
    {
      "id": "pwn-requests",
      "title": "\"Pwn requests\": pull_request_target & workflow_run",
      "dateLabel": "Ongoing",
      "sortDate": "2021-04",
      "summary": "A workflow on pull_request_target or workflow_run runs in the base repository with its secrets and a write token, so when it also checks out and runs the pull request's code, or takes in its artifacts or title, anyone who can open a pull request runs code with those privileges.",
      "narrative": "GitHub's ordinary pull_request trigger gives a fork's pull request no secrets and a read-only token. pull_request_target was added for workflows that need more, such as labelling or commenting, and runs in the base repository with its secrets and a token that can write. Its safety assumes the workflow only runs the repository's own code and treats the pull request as data. GitHub Security Lab described the failure in December 2020 and called it a pwn request: a workflow that checks out the pull request's head and builds or tests it, so the attacker's code runs with the secrets. Legit Security showed the same with workflow_run, where a privileged workflow trusts artifacts or data from the unprivileged run a pull request started. The pattern is behind several incidents on this site: Nx s1ngularity, Ultralytics, the spotbugs step of tj-actions, hackerbot-claw, prt-scan and the TanStack cache poisoning. Datadog found that 38% of organizations had a workflow open to script injection or a dangerous trigger. In November 2025 GitHub changed pull_request_target to always take the workflow from the default branch, so a fix on main also covers old branches.",
      "attribution": "Datadog",
      "sources": [
        {
          "type": "research",
          "title": "Keeping your GitHub Actions and workflows secure: preventing pwn requests",
          "url": "https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/",
          "main": true
        },
        {
          "type": "research",
          "title": "The case for GitHub Actions security after recent supply chain attacks",
          "url": "https://securitylabs.datadoghq.com/articles/case-for-github-actions-security/"
        },
        {
          "type": "research",
          "title": "Vulnerable GitHub Actions workflows: privilege escalation",
          "url": "https://www.legitsecurity.com/blog/github-privilege-escalation-vulnerability"
        },
        {
          "type": "advisory",
          "title": "Actions pull_request_target and environment branch protections changes",
          "url": "https://github.blog/changelog/2025-11-07-actions-pull_request_target-and-environment-branch-protections-changes/"
        },
        {
          "type": "research",
          "title": "The Pwn Request Reckoning: What Still Works Against GitHub Actions",
          "url": "https://www.wiz.io/blog/github-actions-security-pwn-request-reckoning"
        }
      ],
      "steps": [
        {
          "title": "A trigger meant for trusted code",
          "detail": "pull_request gives a fork's pull request no secrets and a read-only token. pull_request_target runs in the base repository instead, with its secrets and a token with write access, so that workflows can label or comment on pull requests. It is only safe if the workflow runs the repository's own code and treats the pull request as data."
        },
        {
          "title": "The workflow runs the pull request's code",
          "detail": "A pwn request is a workflow on pull_request_target that checks out the pull request's head and builds, tests or installs it. The attacker does not even need to touch the build: a new test file or install script runs with the others, with the repository's secrets in the environment."
        },
        {
          "title": "Or trusts what an untrusted run produced",
          "detail": "workflow_run starts a privileged workflow after another one finishes. Legit Security showed that when the privileged workflow downloads artifacts or reads data from a run that a fork's pull request started, the attacker controls that input and gets the privileged workflow's secrets and write access."
        },
        {
          "title": "The same pattern behind real incidents",
          "detail": "It is how the attacker got in at Nx (s1ngularity), Ultralytics, spotbugs before tj-actions, Trivy and awesome-go (hackerbot-claw), the prt-scan campaign and TanStack's cache poisoning, each on its own page here. Datadog found that 38% of organizations have a workflow open to script injection or a dangerous trigger."
        },
        {
          "title": "GitHub closes the old-branch gap",
          "detail": "Until late 2025 pull_request_target ran the workflow file from the pull request's base branch, so a fix on main did not cover older branches, which Nx's attacker used. GitHub's 7 November 2025 change makes it always use the default branch's workflow, and evaluates environment branch rules against the reference that actually runs."
        },
        {
          "title": "2026 narrows the path but leaves gaps",
          "detail": "In 2026 actions/checkout started refusing a fork's code in pull_request_target and pull-request workflow_run runs, untrusted triggers got a read-only cache token, and from 2 December public repositories without an event policy no longer run pull_request_target. Wiz lists what still works: SHA pins from before the checkout backport, gh pr checkout or git clone in a run step, issue_comment and repository_dispatch bots, allow-unsafe-pr-checkout: true, script injection that needs no checkout, artifacts a workflow_run downloads, and state left on non-ephemeral self-hosted runners. The 2 December rule does not cover workflow_run, private or internal repositories."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "untrusted-input"
        },
        {
          "step": 2,
          "technique": "pwn-request",
          "holds": [
            {
              "ref": "permission:contents:write",
              "who": "The run's workflow token"
            },
            {
              "label": "Repository secrets",
              "who": "The base repository"
            }
          ],
          "notes": [
            "In a workflow_run job, treat artifacts and outputs from the pull request's run as untrusted input."
          ]
        }
      ],
      "url": "/incidents/pwn-requests",
      "tier": 2,
      "wayIn": [
        "untrusted-input"
      ],
      "wentAfter": [
        "steal-secrets"
      ]
    },
    {
      "id": "ultralytics",
      "title": "Ultralytics build cache poisoning",
      "dateLabel": "December 2024",
      "sortDate": "2024-12",
      "summary": "A branch name ran as a shell command in a pull_request_target workflow, and the code it fetched poisoned the Actions cache that Ultralytics' release job restored, so two releases built and published through Trusted Publishing carried a cryptominer. Two days later two more malicious versions went to PyPI straight from an old API token.",
      "narrative": "The ultralytics/ultralytics repository ran a formatting workflow on pull_request_target that called the project's own composite Action, which put the pull request's branch name straight into a git pull shell command. Adnan Khan had reported that injection in August 2024 and it was fixed the same day, but a later version of the Action brought it back. On 4 December 2024 the openimbot account opened pull requests from branches whose names fetched and ran a script. The script was a copy of Khan's published cache poisoning proof of concept: it read the runner's memory for the Actions cache token and cache URL and sent them out, and researchers believe it then wrote a poisoned pip cache entry under the key the release workflow used. Within the hour a commit under the UltralyticsAssistant bot's name bumped the version to 8.3.41 and removed the check that only let glenn-jocher trigger a release. The release job restored the poisoned cache, built a package with an XMRig miner in it and published it through Trusted Publishing, with valid provenance. 8.3.42, released by the maintainer the next day, was also malicious. On 7 December 8.3.45 and 8.3.46 were uploaded directly with a PyPI API token left over from before Trusted Publishing, with no CI run behind them.",
      "attribution": "GitGuardian",
      "sources": [
        {
          "type": "research",
          "title": "zizmor would have caught the Ultralytics workflow vulnerability",
          "url": "https://blog.yossarian.net/2024/12/06/zizmor-ultralytics-injection",
          "main": true
        },
        {
          "type": "research",
          "title": "Supply-chain attack analysis: Ultralytics (PyPI)",
          "url": "https://blog.pypi.org/posts/2024-12-11-ultralytics-attack-analysis/"
        },
        {
          "type": "tracker",
          "title": "Ultralytics issue #18027: the 8.3.41 wheel differs from the source",
          "url": "https://github.com/ultralytics/ultralytics/issues/18027"
        },
        {
          "type": "advisory",
          "title": "GHSA-7x29-qqmq-v6qc: script injection in ultralytics/actions",
          "url": "https://github.com/ultralytics/actions/security/advisories/GHSA-7x29-qqmq-v6qc"
        },
        {
          "type": "research",
          "title": "The Monsters in Your Build Cache: GitHub Actions cache poisoning",
          "url": "https://adnanthekhan.com/2024/05/06/the-monsters-in-your-build-cache-github-actions-cache-poisoning/"
        },
        {
          "type": "research",
          "title": "The Ultralytics supply chain attack: connecting the dots",
          "url": "https://blog.gitguardian.com/the-ultralytics-supply-chain-attack-connecting-the-dots-with-gitguardians-public-monitoring-data/"
        },
        {
          "type": "research",
          "title": "Ultralytics AI pwn request supply chain attack",
          "url": "https://snyk.io/blog/ultralytics-ai-pwn-request-supply-chain-attack/"
        },
        {
          "type": "research",
          "title": "The Ultralytics supply chain attack: how it happened, how to prevent",
          "url": "https://www.legitsecurity.com/blog/the-ultralytics-supply-chain-attack-how-it-happened-how-to-prevent"
        },
        {
          "type": "tracker",
          "title": "Ultralytics AI library hacked via GitHub for cryptomining",
          "url": "https://www.wiz.io/blog/ultralytics-ai-library-hacked-via-github-for-cryptomining"
        }
      ],
      "steps": [
        {
          "title": "A fixed injection comes back",
          "detail": "On 14 August 2024 Adnan Khan reported that ultralytics/actions put github.head_ref, the pull request's branch name, into a run step (GHSA-7x29-qqmq-v6qc). It was fixed the same day, and on 24 August version 0.0.24 brought the same line back: git pull origin ${{ github.head_ref || github.ref }}. format.yml in ultralytics/ultralytics ran ultralytics/actions@main on pull_request_target and passed it secrets._GITHUB_TOKEN, a token of the UltralyticsAssistant bot, and an OpenAI key."
        },
        {
          "title": "A branch name runs the attacker's script",
          "detail": "On the evening of 4 December 2024 (UTC) the openimbot account opened pull requests #18018 and #18020 from its fork openimbot/openlytics, with branch names that fetched a file.sh and piped it to bash. Other accounts had tried the same trick on 2 and 3 December. GitGuardian found the script was a copy of Khan's cache poisoning proof of concept: it dumped the runner's memory, picked out the AccessToken and CacheServerUrl values, and sent them to a webhook.site address. The attacker then force-pushed the branch to remove the script."
        },
        {
          "title": "The release workflow's pip cache is poisoned",
          "detail": "With the cache token an attacker can write entries for the main branch that other workflows restore. The final payload was never recovered, so this step is the researchers' conclusion: Khan identified the likely poisoned entry, setup-python's pip cache for Python 3.12.7 on Linux, which publish.yml restored through cache: \"pip\". The fix for 8.3.43 on 5 December removed that cache from publish.yml."
        },
        {
          "title": "A bot commit triggers a poisoned release",
          "detail": "At 20:49 UTC a commit authored and committed as UltralyticsAssistant landed on main, bumping the version to 8.3.41 and removing the github.actor == 'glenn-jocher' condition from the publish job. The push ran publish.yml, which built the package with the poisoned cache in place and published it at 20:51 through Trusted Publishing, with attestations. The wheel's downloads.py and model.py had been changed to download and run an XMRig miner. William Woodruff reads the commit as a sign the attacker controlled the bot's token; no source shows who pushed it."
        },
        {
          "title": "Spotted, removed and published again",
          "detail": "On 5 December a user reported in issue #18027 that the 8.3.41 wheel did not match the source, after the miner was noticed through ComfyUI-Impact-Pack, which depends on Ultralytics. 8.3.41 was removed at 09:15 UTC. At 12:47 glenn-jocher's own push released 8.3.42, which was also malicious and was removed an hour later."
        },
        {
          "title": "Two more versions from a leftover PyPI token",
          "detail": "On 7 December 8.3.45 (01:41 UTC) and 8.3.46 (02:27) were uploaded directly to PyPI with an API token, with no matching commit, workflow run or attestation. PyPI says the token was still available to the project's workflows, probably left from before it moved to Trusted Publishing. How it was taken is not settled: Woodruff first thought it came out of runner memory, and Khan replied that GitHub only sends a job the secrets its workflow references, and suspected the bot's token was used to run a workflow that sent the secrets out. Both versions were removed by 10:09 UTC."
        }
      ],
      "chain": [
        {
          "step": 2,
          "vector": "untrusted-input"
        },
        {
          "step": 2,
          "technique": "pwn-request",
          "holds": [
            {
              "label": "Actions cache token",
              "who": "format.yml job's runner"
            },
            {
              "ref": "permission:contents:write",
              "who": "UltralyticsAssistant's PAT",
              "inferred": true
            },
            {
              "ref": "permission:workflows:write",
              "who": "The same PAT",
              "inferred": true
            }
          ]
        },
        {
          "step": 3,
          "escalation": "fork-pr-to-cache",
          "inferred": true,
          "holds": [
            {
              "label": "Code in the release build",
              "who": "publish.yml's pip cache",
              "inferred": true
            }
          ]
        },
        {
          "step": 4,
          "technique": "no-review",
          "fromStep": 2,
          "inferred": true
        },
        {
          "step": 4,
          "technique": "release-provenance"
        },
        {
          "step": 6,
          "vector": "leaked-token",
          "start": true,
          "holds": [
            {
              "label": "PyPI API token",
              "who": "An unrevoked CI secret"
            }
          ]
        },
        {
          "step": 6,
          "technique": "malicious-release"
        }
      ],
      "url": "/incidents/ultralytics",
      "tier": 1,
      "wayIn": [
        "leaked-token",
        "untrusted-input"
      ],
      "wentAfter": [
        "submit-code",
        "steal-secrets",
        "poison-build"
      ]
    },
    {
      "id": "nx-s1ngularity",
      "title": "Nx \"s1ngularity\"",
      "dateLabel": "August 2025",
      "sortDate": "2025-08",
      "summary": "An injectable pull_request_target workflow left on an old branch gave the attacker a write token, which ran Nx's publish job and handed over its npm token. The malicious versions used developers' own AI tools to search their machines for credentials.",
      "narrative": "No zero-days were involved. A pull_request_target workflow that put pull request titles into a shell step was still on an old branch of the Nx repository, and its GITHUB_TOKEN could write because the repository kept GitHub's old read and write default. The attacker used that token to run the publish workflow on a branch of their own, took NPM_TOKEN and published malicious Nx versions. Their install script used developers' own AI command line tools to search the machine for credentials and posted what it found to new public repositories in each victim's GitHub account. The stolen GitHub tokens were then used to make thousands of private repositories public.",
      "attribution": "Mandiant (UNC6426, downstream follow-on)",
      "sources": [
        {
          "type": "postmortem",
          "title": "s1ngularity: what happened, how we responded, what we learned",
          "url": "https://nx.dev/blog/s1ngularity-postmortem"
        },
        {
          "type": "research",
          "title": "s1ngularity: supply chain attack leaks secrets on GitHub (Wiz)",
          "url": "https://www.wiz.io/blog/s1ngularity-supply-chain-attack"
        },
        {
          "type": "research",
          "title": "Learnings from recent npm compromises",
          "url": "https://securitylabs.datadoghq.com/articles/learnings-from-recent-npm-compromises/"
        },
        {
          "type": "research",
          "title": "OIDC trust chain abuse: cloud takeover",
          "url": "https://labs.cloudsecurityalliance.org/research/csa-research-note-oidc-trust-chain-abuse-cloud-takeover-2026/"
        }
      ],
      "steps": [
        {
          "title": "A pull request title runs as a shell command",
          "detail": "A workflow that checked pull request titles ran on pull_request_target and put the title straight into a shell step. It had been removed from master but was still on an older branch. A pull request with commands in its title ran them with the workflow's GITHUB_TOKEN, which could write because the repository still had GitHub's default from before February 2023: read and write permissions."
        },
        {
          "title": "The publish workflow runs on the attacker's branch",
          "detail": "With that token the attacker created a branch whose CI script was their own, then started publish.yml against that branch through the API. The workflow_dispatch trigger on publish.yml allowed it."
        },
        {
          "title": "The npm token is taken and the traces deleted",
          "detail": "The publish job had NPM_TOKEN in scope, and the replaced script sent it out. The attacker then deleted the branch and the workflow runs."
        },
        {
          "title": "Malicious Nx versions are published",
          "detail": "On 26 August 2025 the attacker published eight versions of nx and several @nx packages with the stolen token. They had no npm provenance, which is how Nx noticed, but provenance does not stop an install. They were live for about four hours."
        },
        {
          "title": "The install script turns local AI tools on their owners",
          "detail": "On Linux and macOS a postinstall script looked for wallets, keystores, .env files, SSH keys, the npm configuration and the GitHub CLI token, and ran the Claude, Gemini and Q command line tools with their permission checks switched off to search the disk. It uploaded the results, base64 encoded, to a new s1ngularity-repository in the victim's own GitHub account, often from the Nx editor extension and sometimes from CI. Wiz counted more than 1,000 valid GitHub tokens and dozens of cloud and npm credentials before GitHub disabled the repositories on 27 August."
        },
        {
          "title": "Phase two: stolen tokens make private repositories public",
          "detail": "From 28 August the attacker used stolen GitHub tokens to make victims' private repositories public and rename them s1ngularity-repository-<five letters>. By 29 August Wiz counted more than 5,500 repositories of over 400 users and organizations."
        },
        {
          "title": "Downstream: an OIDC trust chain reaches full AWS admin",
          "detail": "A separate threat group used the leaked credentials to reach full AWS administrator access at a victim organization in under 72 hours, chaining OIDC trust relationships with a CloudFormation IAM capability."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "untrusted-input"
        },
        {
          "step": 1,
          "technique": "pwn-request",
          "holds": [
            {
              "ref": "permission:contents:write",
              "who": "PR title check's token"
            },
            {
              "ref": "permission:actions:write",
              "who": "The same token"
            }
          ]
        },
        {
          "step": 2,
          "escalation": "dispatch-to-publish",
          "holds": [
            {
              "label": "NPM_TOKEN",
              "who": "The publish job's secret"
            }
          ]
        },
        {
          "step": 3,
          "technique": "delete-runs",
          "fromStep": 1
        },
        {
          "step": 4,
          "technique": "malicious-release",
          "fromStep": 2
        },
        {
          "step": 5,
          "vector": "upstream-dependency",
          "holds": [
            {
              "ref": "scope:repo",
              "who": "Victims' gh CLI tokens",
              "inferred": true
            },
            {
              "label": "npm, SSH and cloud credentials",
              "who": "Victims' machines, CI"
            }
          ]
        },
        {
          "step": 5,
          "technique": "exfil-public-repo"
        },
        {
          "step": 6,
          "escalation": "admin-to-public"
        }
      ],
      "url": "/incidents/nx-s1ngularity",
      "tier": 0,
      "wayIn": [
        "untrusted-input",
        "upstream-dependency"
      ],
      "wentAfter": [
        "delete-history",
        "steal-secrets",
        "poison-build",
        "expose-code"
      ]
    },
    {
      "id": "self-hosted-runner-attacks",
      "title": "Self-hosted runner takeovers (PyTorch and others)",
      "dateLabel": "2023–2024",
      "sortDate": "2023-01",
      "summary": "By fixing a typo to become a contributor, researchers got their pull requests to run without approval on non-ephemeral self-hosted runners of GitHub's runner-images, PyTorch and TensorFlow, stayed on the machines, and took the write tokens, PATs and cloud keys of the release jobs that ran there next.",
      "narrative": "A self-hosted runner attached to a public repository runs any workflow that asks for it, including one from a fork's pull request. By default a fork's pull request only needs approval if its author has never contributed, so fixing a typo is enough to skip it. A runner set up with the default steps is non-ephemeral: it keeps its files and lets a process started by one job keep running into the next. Adnan Khan used this against GitHub's own actions/runner-images, which had such a runner from February to July 2023, and could reach internal GitHub infrastructure and secrets used to build the hosted runner images; GitHub paid him 20,000 dollars. With John Stawinski he then did the same to PyTorch: a typo fix made them contributors, a pull request put a persistent foothold on a self-hosted runner, and later workflows on it gave up GITHUB_TOKENs with write access, personal access tokens and the pytorchbot AWS keys for the S3 buckets that hold PyTorch releases. Praetorian found the same setup in TensorFlow, which Google accepted as a critical supply chain issue. All were found and reported by researchers.",
      "attribution": "Adnan Khan / John Stawinski",
      "sources": [
        {
          "type": "research",
          "title": "One supply chain attack to rule them all",
          "url": "https://adnanthekhan.com/2023/12/20/one-supply-chain-attack-to-rule-them-all/"
        },
        {
          "type": "research",
          "title": "TensorFlow supply chain compromise via self-hosted runner attack",
          "url": "https://www.praetorian.com/blog/tensorflow-supply-chain-compromise-via-self-hosted-runner-attack/"
        },
        {
          "type": "research",
          "title": "PyTorch supply chain compromise",
          "url": "https://www.stepsecurity.io/blog/pytorch-supply-chain-compromise"
        },
        {
          "type": "research",
          "title": "GitHub, PyTorch and more orgs vulnerable to self-hosted runner attacks",
          "url": "https://www.legitsecurity.com/blog/github-pytorch-and-more-organizations-found-vulnerable-to-self-hosted-runner-attacks"
        },
        {
          "type": "tracker",
          "title": "PyTorch GitHub misconfiguration (Wiz cloud threat landscape)",
          "url": "https://threats.wiz.io/all-incidents/pytorch-github-misconfiguration"
        },
        {
          "type": "tracker",
          "title": "TensorFlow GitHub misconfiguration (Wiz cloud threat landscape)",
          "url": "https://threats.wiz.io/all-incidents/tensorflow-github-misconfiguration"
        }
      ],
      "steps": [
        {
          "title": "A typo fix makes you a contributor",
          "detail": "By default a pull request from a fork runs its workflows without approval once its author has contributed before. Khan, Stawinski and Praetorian each became contributors with a trivial change, such as fixing a typo in a markdown file."
        },
        {
          "title": "The pull request runs on a self-hosted runner",
          "detail": "A self-hosted runner attached to a public repository, or to an organization runner group the repository can use, picks up any workflow whose runs-on matches it, including one from a fork. Praetorian's Gato tool finds such runners; in TensorFlow it found one running ARM64 Linux builds."
        },
        {
          "title": "The runner keeps the attacker's process",
          "detail": "A runner registered with the default steps is non-ephemeral: files and background processes survive the job. A payload in the pull request starts a process that stays on the machine and watches the jobs that follow."
        },
        {
          "title": "Later jobs give up their tokens and secrets",
          "detail": "On PyTorch's runners the researchers took GITHUB_TOKENs with write access from running workflows, personal access tokens, and the pytorchbot user's AWS keys, which could write to the S3 buckets holding PyTorch releases. On GitHub's actions/runner-images, vulnerable from February to July 2023, the same position reached internal infrastructure and the secrets used to build every hosted runner image."
        },
        {
          "title": "Reported, not exploited",
          "detail": "All of these were found and reported by researchers. GitHub paid Khan 20,000 dollars for runner-images through its bug bounty, Google accepted Praetorian's TensorFlow report as a critical supply chain vulnerability, and the projects moved away from non-ephemeral runners on public pull requests."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "untrusted-input",
          "notes": [
            "Require approval for every outside contributor, not only first-time ones: one merged typo fix skips the default."
          ]
        },
        {
          "step": 3,
          "escalation": "fork-pr-to-runner"
        },
        {
          "step": 4,
          "escalation": "runner-code-to-token",
          "fixes": [
            "cicd-runner-groups-selected"
          ],
          "holds": [
            {
              "ref": "permission:contents:write",
              "who": "Later jobs' workflow tokens"
            },
            {
              "label": "PATs and AWS release keys",
              "who": "pytorchbot's secrets"
            }
          ]
        }
      ],
      "url": "/incidents/self-hosted-runner-attacks",
      "tier": 2,
      "wayIn": [
        "untrusted-input"
      ],
      "wentAfter": [
        "steal-secrets",
        "poison-build"
      ]
    },
    {
      "id": "ghostaction",
      "title": "GhostAction",
      "dateLabel": "September 2025, returned 2026",
      "sortDate": "2025-09",
      "summary": "With maintainers' stolen credentials, the attacker committed a workflow that posted each repository's secrets to their own server: 817 repositories in 2025, and hundreds more when it came back in 2026.",
      "narrative": "Nothing in the targeted repositories was exploited. The attacker logged in as maintainers whose GitHub credentials they already had, read each repository's own workflow files to learn the names of its secrets, and committed a workflow called \"Github Actions Security\" that ran on every push and posted those secrets to a server of theirs with curl. In September 2025 GitGuardian found it in 817 repositories of 327 users, with 3,325 secrets sent out, mostly DockerHub, GitHub and npm tokens. How the accounts were taken has never been established. The same workflow came back from 31 August 2026 in 772 public repositories of 373 users and organizations, but most of its runs waited for approval and never ran. In October 2026 a new version also searched the full git history for cloud, AI and GitHub keys, and was pushed from hundreds of further accounts until GitHub started blocking it on 9 October.",
      "sources": [
        {
          "type": "research",
          "title": "The GhostAction campaign: 3,325 secrets stolen",
          "url": "https://blog.gitguardian.com/ghostaction-campaign-3-325-secrets-stolen/"
        },
        {
          "type": "research",
          "title": "GhostAction returns: GitHub Actions supply chain attack",
          "url": "https://blog.gitguardian.com/ghostaction-github-actions-supply-chain-attack-returns/"
        },
        {
          "type": "tracker",
          "title": "GhostAction campaign (Wiz Cloud Threat Landscape)",
          "url": "https://threats.wiz.io/all-incidents/ghostaction-campaign"
        },
        {
          "type": "research",
          "title": "GhostAction campaign: over 3,000 secrets stolen through malicious GitHub workflows",
          "url": "https://www.stepsecurity.io/blog/ghostaction-campaign-over-3-000-secrets-stolen-through-malicious-github-workflows"
        },
        {
          "type": "tracker",
          "title": "GhostAction: cloud credentials targeted across tens of thousands of repositories",
          "url": "https://socket.dev/blog/ghostaction-cloud-credentials"
        },
        {
          "type": "tracker",
          "title": "GhostAction returns",
          "url": "https://www.stepsecurity.io/blog/ghostaction-returns"
        }
      ],
      "steps": [
        {
          "title": "Maintainer accounts are used by someone else",
          "detail": "On 2 September 2025 the account of Grommash9, maintainer of the FastUUID PyPI package, pushed a commit titled \"Add Github Actions Security workflow\". GitGuardian traced the same commit to 327 users. How their credentials were obtained is unknown: GitGuardian and Wiz both say so, and StepSecurity later called a personal access token from infostealer logs or credential dumps the most plausible route."
        },
        {
          "title": "Secret names are read from the repository's own workflows",
          "detail": "Before writing anything, the attacker read each repository's existing workflow files for ${{ secrets.NAME }} references. In FastUUID that was PYPI_API_TOKEN. The names were then written into the malicious workflow, so it asked for secrets that really existed."
        },
        {
          "title": "A workflow named like a security check is committed",
          "detail": "The file .github/workflows/github_actions_security.yml ran on push and workflow_dispatch on ubuntu-latest. It went into 817 public and private repositories under the owners' own identities, with no pull request in between."
        },
        {
          "title": "The secrets are posted to the attacker's server",
          "detail": "One curl POST sent the named secrets to bold-dhawan.45-139-104-115.plesk.page: 3,325 in total, most often DockerHub credentials, GitHub tokens and npm tokens, plus PyPI tokens, AWS keys, database credentials and Cloudflare tokens. GitGuardian found it on 5 September. PyPI set FastUUID read-only, the endpoint stopped resolving at 16:15 UTC, and 9 npm and 15 PyPI packages were judged at risk of a malicious release, though none was found. Developers told GitGuardian that stolen AWS keys and database credentials were already being used."
        },
        {
          "title": "The same workflow returns in 2026, and mostly waits for approval",
          "detail": "From 31 August to 30 September 2026 the same file and commit message appeared in 772 public repositories of 373 users and organizations, now posting to the bare IP 193.32.204.199 and naming 2,577 secrets. GitHub held most runs for approval: of 3,669 runs GitGuardian collected across 605 repositories, 499 ran, in 32 repositories, and 336 completed, sending 26 secrets from 13 repositories. Most of those runs were started by the owners' own later pushes. By 5 October only 124 of the 772 repositories (16%) had removed it."
        },
        {
          "title": "A new version also searches git history",
          "detail": "On 8 October 2026 the account of kitao, author of pyxel, pushed security-audit.yml to 27 repositories, and the account of henrywoo pushed it to 318 in 16 minutes, the last being uber/athenadriver, where he kept write access, straight to master. It checked out the full history and searched the tree and git log -p --all for AWS, Anthropic, OpenAI, GitHub, GitLab, Google, Slack and SendGrid keys, alongside the named secrets. The athenadriver run's GITHUB_TOKEN only had contents: read, so anything further depends on what was stolen. In pyxel two runs were started by hand from the compromised session."
        },
        {
          "title": "Tens of thousands of repositories, then GitHub blocks it",
          "detail": "Socket counted more than 500 accounts committing the workflow from 7 October. GitGuardian's later count was about 1,900 compromised accounts and more than 30,000 repositories of about 3,000 users and organizations, aiming at 3,174 secrets. GitHub started preventing the workflow from running on 9 October, and waves on 10 and 12 October took nothing. Socket and StepSecurity saw no malicious package versions as of 9 October."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "leaked-token",
          "inferred": true,
          "holds": [
            {
              "ref": "permission:workflows:write",
              "who": "327 users' accounts"
            }
          ]
        },
        {
          "step": 3,
          "technique": "no-review"
        },
        {
          "step": 4,
          "escalation": "workflow-to-secrets",
          "holds": [
            {
              "label": "Registry and cloud secrets",
              "who": "817 repos' secrets"
            }
          ],
          "notes": [
            "Limit runners' outbound traffic to an allow-list: each wave posted the secrets to one outside domain or a bare IP."
          ]
        },
        {
          "step": 5,
          "vector": "leaked-token",
          "inferred": true,
          "holds": [
            {
              "ref": "permission:workflows:write",
              "who": "373 accounts"
            }
          ]
        },
        {
          "step": 5,
          "escalation": "workflow-to-secrets",
          "holds": [
            {
              "label": "Named Actions secrets",
              "who": "13 repos that ran it"
            }
          ]
        },
        {
          "step": 6,
          "vector": "leaked-token",
          "inferred": true,
          "holds": [
            {
              "ref": "permission:workflows:write",
              "who": "kitao, henrywoo"
            }
          ]
        },
        {
          "step": 6,
          "technique": "no-review"
        },
        {
          "step": 6,
          "escalation": "workflow-to-secrets",
          "holds": [
            {
              "label": "Named Actions secrets",
              "who": "pyxel, athenadriver"
            }
          ]
        },
        {
          "step": 6,
          "technique": "repo-keys",
          "holds": [
            {
              "label": "Keys in git history",
              "who": "Tree and git log"
            }
          ]
        }
      ],
      "url": "/incidents/ghostaction",
      "tier": 1,
      "wayIn": [
        "leaked-token"
      ],
      "wentAfter": [
        "submit-code",
        "steal-secrets"
      ]
    },
    {
      "id": "toptal",
      "title": "Toptal repo-visibility flip and wiper",
      "dateLabel": "July 2025",
      "sortDate": "2025-07",
      "summary": "With old credentials that Toptal traced to the LastPass breaches, someone made 73 of Toptal's GitHub repositories public and published ten Picasso and Xene npm versions whose install scripts sent the installer's GitHub CLI token away and then tried to wipe the machine.",
      "narrative": "On 20 July 2025 73 repositories in Toptal's GitHub organization became public within five minutes, and within the same hour malicious versions of ten packages from its Picasso design system and Xene appeared on npm. Each version's package.json ran gh auth token in an install script, posted the token to a webhook.site address, and then ran rm -rf on / with sudo, or a recursive delete on Windows. Socket found it, counted about 5,000 downloads and could not say how the attacker got in or how the GitHub changes and the npm releases were connected. Toptal deprecated the versions by 23 July. In a statement in early August it said the two packages were compromised for a few hours through credentials traced back to the LastPass breaches, that the downloads were mostly security scanners, and that 17 IP addresses reached the webhook. It has not said whose credentials they were or whether they were a GitHub password, a token or an npm login.",
      "sources": [
        {
          "type": "research",
          "title": "Toptal's GitHub organization hijacked: 10 malicious packages published",
          "url": "https://socket.dev/blog/toptal-s-github-organization-hijacked-10-malicious-packages-published"
        },
        {
          "type": "tracker",
          "title": "Hackers breach Toptal GitHub account, publish malicious npm packages",
          "url": "https://www.bleepingcomputer.com/news/security/hackers-breach-toptal-github-account-publish-malicious-npm-packages/"
        },
        {
          "type": "tracker",
          "title": "Freelance dev shop Toptal caught serving malware after GitHub account break-in",
          "url": "https://www.theregister.com/2025/07/25/toptal_malware_attack/"
        }
      ],
      "steps": [
        {
          "title": "Old credentials from the LastPass breaches are used",
          "detail": "Toptal later said the attacker got in with credentials it traced back to the LastPass breaches, years before. It has not said whose they were or what they opened. Whatever they were, they were enough to change repository visibility across the organization and to publish under the @toptal and @xene npm scopes. Socket's own analysis did not find the way in, and listed phishing, an insider and leaked developer credentials as possibilities."
        },
        {
          "title": "73 repositories become public in five minutes",
          "detail": "On 20 July 2025 73 repositories in the toptal organization were made public within a five-minute window, private projects among them. Changing visibility in bulk like that takes organization owner rights or admin on every repository. Toptal said the private packages exposed this way had no users outside the company."
        },
        {
          "title": "Ten malicious versions are published to npm",
          "detail": "On 20 July npm recorded ten new versions: @toptal/picasso-tailwind 3.1.0, picasso-charts 59.1.4, picasso-shared 15.1.0, picasso-provider 5.1.1, picasso-select 4.2.2, picasso-quote 2.1.7, picasso-forms 73.3.2, picasso-utils 3.2.0, picasso-typography 4.1.4 and @xene/core 0.4.1. BleepingComputer wrote that the attacker changed Picasso's source on GitHub in the days after the visibility change; npm's own publish dates put the releases on the same day."
        },
        {
          "title": "The install scripts take the GitHub CLI token, then try to wipe the disk",
          "detail": "A preinstall script ran gh auth token and posted the result with curl to webhook.site/fb5b4647-aff8-418c-99e7-ec830cc2024b, giving the attacker the installer's GitHub access. The scripts then ran sudo rm -rf --no-preserve-root / on Linux and macOS and rm /s /q on Windows. Socket puts the Unix wipe in preinstall and the Windows one in postinstall; BleepingComputer describes the wipe as the postinstall step."
        },
        {
          "title": "Removed within days, and the reach is disputed",
          "detail": "Toptal deprecated the versions and went back to the last good ones by 23 July, without warning users at first. Socket counted about 5,000 downloads on 20 July. Toptal said the packages averaged close to zero downloads a week, that most of those downloads were automated scanners, that the webhook's logs showed 17 unique IP addresses, and that nobody was known to be affected."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "account-takeover",
          "inferred": true,
          "holds": [
            {
              "ref": "role:org-owner",
              "who": "Unnamed Toptal account",
              "inferred": true
            },
            {
              "label": "npm publish rights",
              "who": "@toptal and @xene scopes"
            }
          ]
        },
        {
          "step": 2,
          "escalation": "admin-to-public"
        },
        {
          "step": 3,
          "technique": "malicious-release",
          "fromStep": 1
        },
        {
          "step": 4,
          "vector": "upstream-dependency",
          "holds": [
            {
              "ref": "scope:repo",
              "who": "Installers' gh CLI tokens",
              "inferred": true
            }
          ]
        }
      ],
      "url": "/incidents/toptal",
      "tier": 0,
      "wayIn": [
        "account-takeover",
        "upstream-dependency"
      ],
      "wentAfter": [
        "poison-build",
        "expose-code"
      ]
    },
    {
      "id": "salesloft-drift",
      "title": "Salesloft Drift GitHub → AWS pivot",
      "dateLabel": "March – June 2025",
      "sortDate": "2025-03",
      "summary": "Stolen GitHub tokens gave the attacker months inside Salesloft's GitHub account, and from there Drift's AWS environment and the OAuth tokens it held for its customers' Salesforce instances.",
      "narrative": "The attacker had Salesloft's GitHub personal access tokens from at least 22 March 2025. Mandiant says they used them for reconnaissance and to enumerate secrets, downloaded content from several repositories, added a guest user and set up workflows, and took secrets stored as environment variables. Between March and June they also looked around the Salesloft and Drift application environments. They then got into Drift's AWS environment, where the OAuth tokens Drift held for its customers' integrations were kept. From 8 to 18 August 2025 they used those tokens to export data from hundreds of customers' Salesforce instances and searched it for AWS keys, passwords and Snowflake tokens, and on 9 August they read mail in a few Google Workspace accounts through the Drift Email integration. Neither Salesloft nor Mandiant has said how the PATs were obtained or exactly how the attacker got from GitHub to AWS.",
      "attribution": "Mandiant (UNC6395)",
      "sources": [
        {
          "type": "postmortem",
          "title": "Update on Mandiant Drift and Salesloft application investigations (6 September 2025)",
          "url": "https://trust.salesloft.com/?uid=Update+on+Mandiant+Drift+and+Salesloft+Application+Investigations"
        },
        {
          "type": "postmortem",
          "title": "Summary of the Mandiant investigation of Drift applications",
          "url": "https://trust.salesloft.com/?uid=Summary+of+the+Mandiant+Investigation+of+Drift+Applications"
        },
        {
          "type": "research",
          "title": "Widespread data theft targets Salesforce instances via Salesloft Drift (Google Threat Intelligence)",
          "url": "https://cloud.google.com/blog/topics/threat-intelligence/data-theft-salesforce-instances-via-salesloft-drift"
        },
        {
          "type": "research",
          "title": "Anatomy of the Salesloft breach",
          "url": "https://permiso.io/blog/anatomy-of-the-salesloft-breach"
        },
        {
          "type": "tracker",
          "title": "Compromised Salesloft Drift tokens enable data theft across integrations (Wiz)",
          "url": "https://threats.wiz.io/all-incidents/compromised-salesloft-drift-tokens-enable-data-theft-across-integrations"
        }
      ],
      "steps": [
        {
          "title": "The attacker uses Salesloft's GitHub PATs",
          "detail": "Mandiant's timeline starts on 22 March 2025, with API calls through Tor and anonymising proxies and Salesloft GitHub personal access tokens used for reconnaissance and to enumerate secrets. Salesloft has not said whose tokens they were or how they were taken."
        },
        {
          "title": "Repositories are downloaded",
          "detail": "Between March and June 2025 the attacker downloaded content from multiple repositories in the Salesloft GitHub account. Mandiant lists code repositories among what was exfiltrated, and in the cleanup Salesloft added secret scanning and rotated secrets found in code."
        },
        {
          "title": "A guest user is added",
          "detail": "In the same period the attacker added a guest user to the GitHub account, access that would outlast the stolen tokens. Among Mandiant's remediation items is removing personal access tokens and external collaborators as ways in."
        },
        {
          "title": "Workflows are set up and environment secrets taken",
          "detail": "The attacker also established workflows. Mandiant separately lists environment variable secrets as exfiltrated. Neither source says the workflows were what read those secrets; Permiso suggests the workflows or credentials from the repositories led to AWS."
        },
        {
          "title": "Drift's AWS environment gives up the customers' OAuth tokens",
          "detail": "The attacker then reached Drift's AWS environment and took the OAuth tokens Drift held for its customers' integrations with Salesforce, Google Workspace and other services. Salesloft has not said which credential opened AWS. Mandiant's cleanup included locking down Drift's AWS accounts and reviewing IAM roles and policies."
        },
        {
          "title": "Customer Salesforce data is exported and mined for secrets",
          "detail": "From 8 to 18 August 2025 UNC6395 used the tokens to query Cases, Accounts, Users and Opportunities in customers' Salesforce instances and searched the results for AWS access keys, passwords and Snowflake tokens. They deleted the query jobs, but the logs remained. On 9 August Drift Email tokens were used to read mail in a very small number of Google Workspace accounts."
        },
        {
          "title": "Tokens revoked, Drift taken offline",
          "detail": "On 20 August Salesloft and Salesforce revoked every Drift access and refresh token and Drift was removed from the AppExchange. Google published its report on 26 August. Drift went offline on 5 September and came back on 16 September. Mandiant's work ended on 30 September; its timeline runs to 5 September and it found no evidence beyond limited reconnaissance in the Salesloft application itself."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "leaked-token",
          "inferred": true,
          "holds": [
            {
              "ref": "permission:contents:read",
              "who": "Salesloft GitHub PATs"
            },
            {
              "ref": "permission:administration:write",
              "who": "Salesloft GitHub PATs",
              "inferred": true
            },
            {
              "ref": "permission:workflows:write",
              "who": "Salesloft GitHub PATs",
              "inferred": true
            }
          ]
        },
        {
          "step": 2,
          "technique": "token-read",
          "holds": [
            {
              "label": "Salesloft source code",
              "who": "Multiple repositories"
            }
          ]
        },
        {
          "step": 3,
          "escalation": "members-to-collaborator",
          "fromStep": 1,
          "fixes": [
            "org-audit-log-siem"
          ],
          "holds": [
            {
              "ref": "key:outside-collaborator",
              "who": "The added guest user",
              "inferred": true
            }
          ]
        },
        {
          "step": 4,
          "escalation": "workflow-to-secrets",
          "fromStep": 1,
          "inferred": true,
          "holds": [
            {
              "label": "Environment variable secrets",
              "who": "Salesloft"
            },
            {
              "label": "Drift AWS, its OAuth tokens",
              "who": "Drift's AWS account",
              "inferred": true
            }
          ]
        }
      ],
      "url": "/incidents/salesloft-drift",
      "tier": 1,
      "wayIn": [
        "leaked-token"
      ],
      "wentAfter": [
        "steal-secrets",
        "expose-code",
        "persist"
      ]
    },
    {
      "id": "shai-hulud",
      "title": "Shai-Hulud self-propagating npm worm",
      "dateLabel": "September 2025 / November 2025 / May 2026",
      "sortDate": "2025-09",
      "summary": "A self-spreading npm worm: each infected install stole the victim's GitHub and npm tokens, pushed a workflow that sent their repositories' secrets out, and published infected versions of the victim's own packages.",
      "narrative": "A worm that turned each victim into the publisher of the next round. Malicious versions of popular npm packages, published with stolen maintainer npm tokens, ran a payload at install time on developer machines and CI runners. It ran TruffleHog over the disk, read cloud keys from metadata services, took the GitHub token from the environment or the gh CLI and wrote everything it found to a new public repository in the victim's own GitHub account. With the same token it pushed a workflow to every repository the victim could reach that sent that repository's Actions secrets out, and copied private organization repositories into public ones. Any npm token it found was used to publish infected versions of that maintainer's other packages, and so the worm spread. The first wave started on 15 September 2025. Shai-Hulud 2.0, from 21 November 2025, ran before install, also registered the infected machine as a self-hosted runner named SHA1HULUD with a workflow that let anyone run commands on it by opening a discussion, and wiped the home directory when it found no token to spread with. Datadog counted 796 packages and more than 500 GitHub users across 150 organizations; Wiz found more than 25,000 exfiltration repositories. A smaller descendant, Mini Shai-Hulud, which Wiz attributes to TeamPCP, came back in 2026: on 19 May one stolen npm token published 637 malicious versions of 317 packages, including the AntV libraries, in under half an hour. Its TanStack wave a week earlier came in through Actions cache poisoning (see the cache poisoning incident).",
      "sources": [
        {
          "type": "research",
          "title": "Shai-Hulud: ongoing package supply chain worm delivering data-stealing malware (Wiz)",
          "url": "https://www.wiz.io/blog/shai-hulud-npm-supply-chain-attack"
        },
        {
          "type": "tracker",
          "title": "Sha1-Hulud 2.0 supply chain attack: 25K+ repos exposed (Wiz)",
          "url": "https://www.wiz.io/blog/shai-hulud-2-0-ongoing-supply-chain-attack"
        },
        {
          "type": "research",
          "title": "Shai-Hulud 2.0 aftermath: trends, victimology and impact (Wiz)",
          "url": "https://www.wiz.io/blog/shai-hulud-2-0-aftermath-ongoing-supply-chain-attack"
        },
        {
          "type": "research",
          "title": "Shai-Hulud 2.0: host registered as SHA1HULUD runner",
          "url": "https://securitylabs.datadoghq.com/articles/shai-hulud-2.0-npm-worm/"
        },
        {
          "type": "research",
          "title": "Shai-Hulud: self-replicating worm compromises 500+ npm packages",
          "url": "https://www.stepsecurity.io/blog/ctrl-tinycolor-and-40-npm-packages-compromised"
        },
        {
          "type": "research",
          "title": "Inside Shai-Hulud's maw: how the npm worm exploits and propagates",
          "url": "https://checkmarx.com/zero-post/inside-shai-huluds-maw-how-the-npm-worm-exploits-and-propagates/"
        },
        {
          "type": "research",
          "title": "npm supply chain attack: GitHub API exploitation (Trend Micro)",
          "url": "https://www.trendaisecurity.com/en-us/resources-insights/trendai-security-blog/npm-supply-chain-attack"
        },
        {
          "type": "tracker",
          "title": "Shai-Hulud npm supply chain attack",
          "url": "https://unit42.paloaltonetworks.com/npm-supply-chain-attack/"
        },
        {
          "type": "research",
          "title": "Mini Shai-Hulud: supply chain campaign targets SAP npm packages (Wiz)",
          "url": "https://www.wiz.io/blog/mini-shai-hulud-supply-chain-sap-npm"
        },
        {
          "type": "research",
          "title": "Mini Shai-Hulud strikes again: 317 npm packages compromised (SafeDep)",
          "url": "https://safedep.io/mini-shai-hulud-strikes-again-314-npm-packages-compromised/"
        },
        {
          "type": "tracker",
          "title": "Hackers have compromised dozens of popular open source packages in an ongoing supply chain attack",
          "url": "https://techcrunch.com/2026/05/19/hackers-have-compromised-dozens-of-popular-open-source-packages-in-an-ongoing-supply-chain-attack/"
        }
      ],
      "steps": [
        {
          "title": "A stolen npm token publishes infected versions",
          "detail": "On 15 September 2025 malicious versions of more than 100 npm packages appeared, among them @ctrl/tinycolor 4.1.1 and 4.1.2, published with maintainers' own npm tokens. Wiz assesses the campaign is directly downstream of the s1ngularity compromise of Nx in late August, which leaked npm and GitHub tokens. Shai-Hulud 2.0 versions were published between 21 and 24 November 2025 with other stolen maintainer tokens, hitting Zapier, ENS Domains, PostHog, Postman and AsyncAPI packages. PostHog's postmortem, cited by Wiz, traced its own token to a pull_request_target workflow."
        },
        {
          "title": "The install script harvests the machine",
          "detail": "In September a postinstall script ran the payload; 2.0 used a preinstall script that installed the Bun runtime and ran setup_bun.js and bun_environment.js. It downloaded TruffleHog and scanned the whole disk, read cloud keys from environment variables and the AWS, Azure and Google metadata services, and in 2.0 dumped cloud secret stores. It took the GitHub token from GITHUB_TOKEN or the gh CLI and checked that it had the repo and workflow scopes. The results went, double base64 encoded, into a new public repository in the victim's own account: named Shai-Hulud in September, an 18 character random name described as \"Sha1-Hulud: The Second Coming.\" in November. Only 23% of 2.0 infections Wiz analysed were on developer machines; most were CI runners and containers."
        },
        {
          "title": "A workflow in every reachable repository sends its secrets out",
          "detail": "The worm listed repositories through /user/repos with affiliation=owner,collaborator,organization_member, updated since 1 January 2025. In September it pushed .github/workflows/shai-hulud-workflow.yml on a new shai-hulud branch to each one; the workflow ran on push and sent ${{ toJSON(secrets) }} to a webhook.site URL, and the secrets also stayed in the run logs. In 2.0 it pushed formatter_<number>.yml on an add-linter-workflow branch, which wrote the secrets to an artifact, then downloaded the artifact and deleted the workflow and the branch. The workflow ran on its own branch, so branch protection on the default branch did not stop it."
        },
        {
          "title": "Private organization repositories are copied into public ones",
          "detail": "In September a second script cloned private and internal repositories of the victim's organizations and pushed each to a new repository in the victim's account named <repo>-migration with the description \"Shai-Hulud Migration\". It created the copy as private and then made it public. Wiz first saw 8 users affected. In 2.0, on 25 and 26 November, Wiz saw private repositories of one victim published with the description \"Sha1-Hulud: The Continued Coming\", and stolen tokens used to download private source."
        },
        {
          "title": "Every npm token found publishes the next round",
          "detail": "When the payload found an npm token it checked it with npm's whoami endpoint, looked up the packages that maintainer owned, added the payload and an install script to each, bumped the patch version and published it. StepSecurity saw up to 20 packages per maintainer in September; Datadog saw up to 100 in 2.0. Without a GitHub token of its own, 2.0 searched GitHub for other victims' exfiltration repositories and took a token from their contents.json. Datadog counted 796 packages and 1,092 versions in 2.0, and more than 500 GitHub users across over 150 organizations."
        },
        {
          "title": "2.0: the infected machine becomes a self-hosted runner",
          "detail": "Shai-Hulud 2.0 downloaded the GitHub Actions runner into $HOME/.dev-env and registered it against the victim's repository under the name SHA1HULUD, then added a workflow, discussion.yaml, that runs on discussion events on that runner and puts the discussion body into a shell step. Opening a discussion would run commands on the infected machine. Wiz confirmed this in testing but had not seen it used. When the payload had neither a GitHub nor an npm token, it overwrote and deleted the user's home directory instead."
        },
        {
          "title": "May 2026: Mini Shai-Hulud returns with a stolen token",
          "detail": "The descendant first appeared in SAP's npm packages at the end of April 2026, attributed by Wiz to TeamPCP, though Wiz could not tie it to the 2025 operators. On 19 May between 01:39 and 02:06 UTC, the npm token of the atool account, which maintains 547 packages, published 637 versions of 317 packages, including the @antv libraries, echarts-for-react and timeago.js. The Bun preinstall payload stole cloud, GitHub and npm credentials to Dune-themed public GitHub repositories, and in GitHub Actions exchanged OIDC tokens for npm publish tokens and added a \"Run Copilot\" workflow that saved the repository's secrets as an artifact. SafeDep does not say how the token was stolen."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "leaked-token",
          "holds": [
            {
              "label": "npm publish token",
              "who": "A maintainer's token"
            }
          ]
        },
        {
          "step": 1,
          "technique": "malicious-release"
        },
        {
          "step": 2,
          "vector": "upstream-dependency",
          "holds": [
            {
              "ref": "scope:repo",
              "who": "Victim's GitHub token"
            },
            {
              "ref": "scope:workflow",
              "who": "The same token"
            },
            {
              "label": "npm tokens",
              "who": "Victim's .npmrc"
            },
            {
              "label": "Cloud keys and secrets",
              "who": "Disk, cloud metadata"
            }
          ]
        },
        {
          "step": 3,
          "escalation": "workflow-to-secrets",
          "holds": [
            {
              "label": "Repository Actions secrets",
              "who": "Each repo's workflows"
            }
          ]
        },
        {
          "step": 4,
          "technique": "token-read",
          "fromStep": 2,
          "holds": [
            {
              "ref": "permission:contents:read",
              "who": "Victims' org repos"
            }
          ]
        },
        {
          "step": 4,
          "technique": "exfil-public-repo"
        },
        {
          "step": 4,
          "escalation": "admin-to-public"
        },
        {
          "step": 5,
          "technique": "malicious-release",
          "fromStep": 2
        },
        {
          "step": 6,
          "escalation": "admin-to-runner",
          "fromStep": 2,
          "holds": [
            {
              "ref": "key:runner-registration",
              "who": "Victim's repository",
              "inferred": true
            }
          ],
          "notes": [
            "Review the self-hosted runners registered on each repository: 2.0 added the infected machine as one."
          ]
        },
        {
          "step": 7,
          "vector": "leaked-token",
          "holds": [
            {
              "label": "npm publish token",
              "who": "atool's npm token"
            }
          ]
        },
        {
          "step": 7,
          "technique": "malicious-release"
        }
      ],
      "url": "/incidents/shai-hulud",
      "tier": 0,
      "wayIn": [
        "leaked-token",
        "upstream-dependency"
      ],
      "wentAfter": [
        "steal-secrets",
        "poison-build",
        "expose-code",
        "persist"
      ]
    },
    {
      "id": "hackerbot-claw",
      "title": "hackerbot-claw autonomous agent RCE",
      "dateLabel": "February 2026",
      "sortDate": "2026-02",
      "summary": "An account calling itself an autonomous AI security agent opened pull requests against seven well-known repositories' unsafe workflows, ran code in at least four of them, stole a write token from awesome-go and a personal access token from Trivy that let it take over the Trivy repository.",
      "narrative": "Between 21 February and 2 March 2026 the GitHub account hackerbot-claw, which describes itself as an autonomous security research agent running on a Claude model, scanned public repositories for exploitable GitHub Actions workflows and opened pull requests against them. StepSecurity followed it against seven targets with five techniques: a pull_request_target workflow that built the fork's Go code, a script injection, a branch name and a file name put into a shell step, and instructions planted for an AI code reviewer. In avelino/awesome-go a Go init() function sent out the workflow's token, which could push commits and merge pull requests. In aquasecurity/trivy the API Diff Check workflow, on pull_request_target, ran the pull request's code with a personal access token of the aqua-bot account in scope, and the stolen token was used to take the repository over: a commit was pushed as aqua-bot and the repository went offline. That token, or what Aqua's rotation missed, is where the TeamPCP campaign started. The attempt to steer an AI reviewer in ambient-code/platform was caught.",
      "attribution": "StepSecurity",
      "sources": [
        {
          "type": "research",
          "title": "hackerbot-claw: AI-powered bot exploiting GitHub Actions",
          "url": "https://www.stepsecurity.io/blog/hackerbot-claw-github-actions-exploitation"
        },
        {
          "type": "research",
          "title": "HackerBot-Claw campaign timeline",
          "url": "https://orca.security/resources/blog/hackerbot-claw-github-actions-attack/"
        }
      ],
      "steps": [
        {
          "title": "An AI agent scans for vulnerable workflows",
          "detail": "From 21 February 2026 the hackerbot-claw account, which says it is an autonomous security research agent powered by a Claude model, worked through an index of 9 vulnerability classes and 47 patterns, looking for public workflows that run untrusted input with secrets or a write token, and opened pull requests to trigger them."
        },
        {
          "title": "awesome-go: a Go init() takes a write token",
          "detail": "avelino/awesome-go ran a pull_request_target workflow that checked out the fork's code and ran it. The attacker's Go init() function runs before main(), and after four failed tries the fifth and sixth runs sent the workflow token out. It had contents: write and pull-requests: write, enough to push commits and merge pull requests in a repository with more than 140,000 stars."
        },
        {
          "title": "Injection in branch names, file names and scripts",
          "detail": "project-akri/akri, a CNCF project, ran code through a direct script injection. In microsoft/ai-discovery-agent a branch name, in DataDog/datadog-iac-scanner a file name and in RustPython a base64-encoded branch name were aimed at shell steps that put them in unquoted. Datadog shipped fixes within nine hours."
        },
        {
          "title": "An AI reviewer is told to commit code",
          "detail": "In ambient-code/platform the attacker replaced CLAUDE.md with instructions for the AI code review workflow, which ran on pull_request_target with contents: write, checked out the fork and let any user trigger it. Orca reports the attempt was detected and blocked."
        },
        {
          "title": "Trivy: a stolen PAT takes over the repository",
          "detail": "On 28 February at 03:28 UTC pull request #10254 triggered aquasecurity/trivy's API Diff Check workflow, a pull_request_target workflow that ran the fork's code with aqua-bot's personal access token in scope, and the token was taken. A commit was then pushed as aqua-bot, and the repository went offline with its workflow history and pull requests removed. Aqua disclosed the break-in on 1 March and rotated credentials; three weeks later the TeamPCP campaign started from the same account (see the TeamPCP incident)."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "untrusted-input"
        },
        {
          "step": 2,
          "technique": "pwn-request",
          "holds": [
            {
              "ref": "permission:contents:write",
              "who": "awesome-go's workflow token"
            },
            {
              "ref": "permission:pull_requests:write",
              "who": "The same token"
            }
          ]
        },
        {
          "step": 4,
          "vector": "ai-agent",
          "start": true
        },
        {
          "step": 4,
          "technique": "ai-workflow-step",
          "notes": [
            "Treat the files an AI reviewer reads, such as CLAUDE.md, as untrusted input from the pull request."
          ]
        },
        {
          "step": 5,
          "vector": "untrusted-input",
          "start": true
        },
        {
          "step": 5,
          "technique": "pwn-request",
          "holds": [
            {
              "ref": "scope:repo",
              "who": "aqua-bot's PAT",
              "inferred": true
            }
          ]
        }
      ],
      "url": "/incidents/hackerbot-claw",
      "tier": 0,
      "wayIn": [
        "untrusted-input",
        "ai-agent"
      ],
      "wentAfter": [
        "steal-secrets"
      ]
    },
    {
      "id": "teampcp",
      "title": "TeamPCP tag force-overwrite campaign",
      "dateLabel": "March – April 2026",
      "sortDate": "2026-03",
      "summary": "A Trivy bot token left valid after an earlier break-in pushed a poisoned Trivy release and moved the tags of trivy-action and setup-trivy, whose payload took the secrets of every pipeline that ran them. Those secrets opened Checkmarx's KICS Action, LiteLLM on PyPI and Bitwarden's npm CLI in turn.",
      "narrative": "Each compromise paid for the next. In late February a pull_request_target workflow in aquasecurity/trivy ran a fork's code with the PAT of the aqua-bot service account in scope, and it was stolen. Aqua rotated credentials on 1 March, but not all at once, and on 19 March the aqua-bot account pushed a v0.69.4 tag that built and released a backdoored Trivy, then force-moved 76 of the 77 version tags of aquasecurity/trivy-action and all seven of aquasecurity/setup-trivy to malicious commits. Every workflow that used those Actions by tag ran a stealer that read secrets out of the runner's memory and sent them, encrypted, to a typosquatted domain. Stolen npm tokens fed a worm on 20 March, and on 23 March a Checkmarx service account moved all 35 tags of the KICS GitHub Action the same way. On 24 March LiteLLM versions 1.82.7 and 1.82.8 were uploaded straight to PyPI with a token LiteLLM believes was taken through Trivy in its own CI. In April Checkmarx was hit again and a malicious @bitwarden/cli was on npm for 93 minutes. Trend Micro also counts elementary-data, published on 24 April through a comment that was run as a shell command in one of its workflows. Wiz saw the stolen keys being tried in victims' cloud accounts within hours. Wiz later attributed Mini Shai-Hulud to the same group (see the Shai-Hulud incident).",
      "attribution": "Trend Micro",
      "sources": [
        {
          "type": "research",
          "title": "Trivy compromised: everything you need to know about the latest supply chain attack (Wiz)",
          "url": "https://www.wiz.io/blog/trivy-compromised-teampcp-supply-chain-attack",
          "main": true
        },
        {
          "type": "postmortem",
          "title": "Trivy supply chain attack: what you need to know (Aqua Security)",
          "url": "https://www.aquasec.com/blog/trivy-supply-chain-attack-what-you-need-to-know"
        },
        {
          "type": "advisory",
          "title": "GHSA-69fq-xp46-6x23 (CVE-2026-33634): Trivy, trivy-action and setup-trivy",
          "url": "https://github.com/aquasecurity/trivy/security/advisories/GHSA-69fq-xp46-6x23"
        },
        {
          "type": "research",
          "title": "20 days later: Trivy compromise, act II (Boost Security)",
          "url": "https://labs.boostsecurity.io/articles/20-days-later-trivy-compromise-act-ii"
        },
        {
          "type": "tracker",
          "title": "KICS GitHub Action compromised: TeamPCP strikes again (Wiz)",
          "url": "https://www.wiz.io/blog/teampcp-attack-kics-github-action"
        },
        {
          "type": "research",
          "title": "Tracking TeamPCP: investigating post-compromise attacks seen in the wild (Wiz)",
          "url": "https://www.wiz.io/blog/tracking-teampcp-investigating-post-compromise-attacks-seen-in-the-wild"
        },
        {
          "type": "postmortem",
          "title": "LiteLLM security update, March 2026",
          "url": "https://docs.litellm.ai/blog/security-update-march-2026"
        },
        {
          "type": "research",
          "title": "elementary-data compromised on PyPI and GHCR: forged release pushed via GitHub Actions script injection",
          "url": "https://www.stepsecurity.io/blog/elementary-data-compromised-on-pypi-and-ghcr-forged-release-pushed-via-github-actions-script-injection"
        },
        {
          "type": "advisory",
          "title": "Bitwarden CLI 2026.4.0 infected with malware (Bitwarden community, with Bitwarden's statement)",
          "url": "https://community.bitwarden.com/t/bitwarden-cli-2026-4-0-infected-with-malware/96126"
        },
        {
          "type": "tracker",
          "title": "Detecting, investigating, defending against Trivy supply chain compromise",
          "url": "https://www.microsoft.com/en-us/security/blog/2026/03/24/detecting-investigating-defending-against-trivy-supply-chain-compromise/"
        },
        {
          "type": "tracker",
          "title": "TeamPCP: seven waves of credential chaining",
          "url": "https://www.trendmicro.com/en_us/research/26/e/analyzing-teampcp-supply-chain-attacks.html"
        },
        {
          "type": "tracker",
          "title": "TeamPCP isn't done",
          "url": "https://www.endorlabs.com/learn/teampcp-isnt-done"
        },
        {
          "type": "tracker",
          "title": "TeamPCP campaign overview",
          "url": "https://arcticwolf.com/resources/blog/teampcp-supply-chain-attack-campaign-targets-trivy-checkmarx-kics-and-litellm-potential-downstream-impact-to-additional-projects/"
        }
      ],
      "steps": [
        {
          "title": "A pull_request_target workflow leaks aqua-bot's PAT",
          "detail": "On 27 and 28 February 2026 a pull request to aquasecurity/trivy changed the repository's setup-go action, and the API Diff Check workflow, triggered by pull_request_target, ran it with secrets in scope. The token taken was ORG_REPO_TOKEN, a PAT of the aqua-bot service account that Boost Security found in at least 33 workflows and believes had repo scope across the organization. This first break-in was part of the hackerbot-claw campaign (see that incident). Aqua disclosed it on 1 March and rotated credentials."
        },
        {
          "title": "The aqua-bot account pushes a poisoned Trivy release",
          "detail": "Aqua says the rotation was not atomic, so a still-valid token could have been used to read the new secrets. How the attacker got back in is still open in Boost Security's account. At 17:43 UTC on 19 March the aqua-bot account pushed a commit that swapped the actions/checkout reference for an impostor commit, skipped goreleaser's validation and tagged it v0.69.4. The release pipeline built a backdoored Trivy and published it to GitHub Releases, Docker Hub, GHCR, ECR and Aqua's own Homebrew tap. The binary was available from 18:22 to about 21:42 UTC."
        },
        {
          "title": "The tags of trivy-action and setup-trivy are moved",
          "detail": "From 17:43 UTC the attacker force-pushed 76 of the 77 version tags of aquasecurity/trivy-action and all seven tags of aquasecurity/setup-trivy to malicious commits; Wiz and Boost Security count 75 of 76. Only trivy-action 0.35.0 was safe, because GitHub's immutable releases had been turned on for it on 4 March. Every workflow using either Action by tag ran a stealer that read secrets out of the Runner.Worker process memory, swept more than 50 paths for SSH keys and cloud, Kubernetes and Docker credentials, and sent them encrypted to scan.aquasecurtiy.org. If that failed it created a tpcp-docs repository in the victim's GitHub account and uploaded them there. trivy-action was malicious until about 05:40 UTC on 20 March."
        },
        {
          "title": "Stolen tokens publish an npm worm and new Trivy images",
          "detail": "From 20 March npm tokens taken from CI runners published malicious versions of more than 45 packages, a self-spreading worm Wiz calls CanisterWorm. On 22 March Docker Hub credentials Aqua describes as separately compromised published malicious Trivy images 0.69.5 and 0.69.6, and internal Aqua repositories appeared as public repositories on GitHub. Wiz saw stolen keys checked with TruffleHog within hours of the theft, then AWS accounts enumerated and stolen PATs used to clone repositories and run workflows whose logs were then deleted."
        },
        {
          "title": "Checkmarx's KICS Action is moved the same way",
          "detail": "Between 12:58 and 16:50 UTC on 23 March the Checkmarx service account cx-plugins-releases repointed all 35 tags of Checkmarx/kics-github-action, from v1 to v2.1.20, to impostor commits that added a setup.sh step. ast-github-action 2.3.28 and two OpenVSX extensions published by the ast-phoenix account were also malicious. The stealer was the same, signed with the same RSA key, now sending to checkmarx.zone. Neither Checkmarx nor Wiz says how the accounts were taken; Trend Micro says stolen PATs and Arctic Wolf says previously stolen CI/CD secrets."
        },
        {
          "title": "LiteLLM's PyPI token publishes two malicious versions",
          "detail": "On 24 March LiteLLM 1.82.7 and 1.82.8 were uploaded straight to PyPI, bypassing LiteLLM's release workflow. LiteLLM gives 10:39 UTC and says PyPI quarantined them about 40 minutes later; Wiz gives 08:30 and 11:25 UTC. LiteLLM believes the compromise came through the Trivy it ran in its CI security scan. 1.82.8 added a .pth file that runs on every Python start. LiteLLM brought in Mandiant and moved to a new release pipeline."
        },
        {
          "title": "April: Checkmarx again, then Bitwarden's CLI",
          "detail": "On 22 April Checkmarx's KICS images on Docker Hub, its VS Code extensions and its GitHub Actions were compromised a second time, which Trend Micro thinks most likely used PATs stolen in earlier waves. The same evening, from 17:57 to 19:30 Eastern time, @bitwarden/cli 2026.4.0 on npm carried a preinstall stealer. Bitwarden says it happened in connection with the Checkmarx incident and that no vault data was reached. Trend Micro says the npm token came from the KICS stealer; Socket and JFrog, as quoted in the press, say a compromised GitHub Action in Bitwarden's own pipeline."
        },
        {
          "title": "elementary-data: a comment runs as a shell command",
          "detail": "At 22:10 UTC on 24 April a comment on pull request #2147 of elementary-data reached update_pylon_issue.yml, which put the comment body straight into a run step. With the job's GITHUB_TOKEN the attacker created a verified commit on an orphan tag, v0.23.3, and dispatched the Release workflow on it. At 22:20 UTC the project's own pipeline published 0.23.3 to PyPI and GHCR's latest tag. Trend Micro counts this as a TeamPCP wave; StepSecurity, which documented it, names no group."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "untrusted-input"
        },
        {
          "step": 1,
          "technique": "pwn-request",
          "holds": [
            {
              "ref": "scope:repo",
              "who": "aqua-bot's PAT",
              "inferred": true
            }
          ]
        },
        {
          "step": 2,
          "vector": "leaked-token",
          "inferred": true,
          "holds": [
            {
              "ref": "permission:contents:write",
              "who": "aqua-bot account"
            }
          ]
        },
        {
          "step": 2,
          "technique": "orphan-commit"
        },
        {
          "step": 2,
          "technique": "push-tag"
        },
        {
          "step": 3,
          "escalation": "tags-to-downstream"
        },
        {
          "step": 3,
          "vector": "upstream-dependency"
        },
        {
          "step": 3,
          "technique": "runner-memory",
          "holds": [
            {
              "label": "npm, cloud and GitHub tokens",
              "who": "trivy-action users' CI"
            }
          ]
        },
        {
          "step": 4,
          "technique": "malicious-release"
        },
        {
          "step": 5,
          "vector": "leaked-token",
          "fromStep": 3,
          "inferred": true,
          "holds": [
            {
              "ref": "permission:contents:write",
              "who": "cx-plugins-releases"
            }
          ]
        },
        {
          "step": 5,
          "technique": "orphan-commit"
        },
        {
          "step": 5,
          "escalation": "tags-to-downstream"
        },
        {
          "step": 5,
          "vector": "upstream-dependency"
        },
        {
          "step": 5,
          "technique": "runner-memory",
          "holds": [
            {
              "label": "CI secrets and tokens",
              "who": "KICS Action users' CI"
            }
          ]
        },
        {
          "step": 6,
          "vector": "upstream-dependency",
          "fromStep": 3,
          "holds": [
            {
              "label": "PyPI publish token",
              "who": "LiteLLM's CI secret"
            }
          ]
        },
        {
          "step": 6,
          "technique": "malicious-release"
        },
        {
          "step": 7,
          "vector": "upstream-dependency",
          "fromStep": 5,
          "inferred": true,
          "holds": [
            {
              "label": "npm publish token",
              "who": "Bitwarden's npm release"
            }
          ]
        },
        {
          "step": 7,
          "technique": "malicious-release"
        },
        {
          "step": 8,
          "vector": "untrusted-input",
          "start": true
        },
        {
          "step": 8,
          "technique": "pwn-request",
          "holds": [
            {
              "ref": "permission:contents:write",
              "who": "update_pylon_issue token"
            },
            {
              "ref": "permission:actions:write",
              "who": "The same token"
            }
          ]
        },
        {
          "step": 8,
          "technique": "push-tag"
        },
        {
          "step": 8,
          "escalation": "dispatch-to-publish",
          "holds": [
            {
              "label": "PyPI and GHCR publishing",
              "who": "Release workflow secrets"
            }
          ]
        }
      ],
      "url": "/incidents/teampcp",
      "tier": 0,
      "wayIn": [
        "leaked-token",
        "untrusted-input",
        "upstream-dependency"
      ],
      "wentAfter": [
        "release-tag",
        "steal-secrets",
        "poison-build"
      ]
    },
    {
      "id": "cache-poisoning",
      "title": "Actions cache poisoning (Angular, TanStack)",
      "dateLabel": "Ongoing",
      "sortDate": "2026-05",
      "summary": "A fork's pull request ran in a pull_request_target workflow that shares the repository's Actions cache, wrote a poisoned pnpm store under the key the release workflow restores, and when the release ran, the malware took its OIDC token from memory and published 84 malicious TanStack versions.",
      "narrative": "GitHub Actions caches are scoped to the repository, and a pull_request_target run uses the base repository's scope, so code from a fork can write entries that workflows on main later restore. On 11 May 2026 an attacker's pull request to TanStack/router triggered bundle-size.yml, which ran on pull_request_target, checked out the pull request's merged code and built it. That code filled the pnpm store and the job saved it to the cache under the exact key release.yml computes from the lockfile. Setting permissions: contents: read did not help: cache writes use a runner token, not GITHUB_TOKEN. That evening two release runs restored the poisoned store. The malware read an OIDC token out of the runner, using the same script as the tj-actions compromise, and published 84 versions of 42 @tanstack packages straight to npm in six minutes. No npm token was stolen and the publish workflow itself was not changed. Adnan Khan had shown the same class earlier in angular/dev-infra, through a branch name put into a shell step and a tool that fills the cache.",
      "attribution": "Adnan Khan",
      "sources": [
        {
          "type": "postmortem",
          "title": "TanStack npm supply chain compromise postmortem",
          "url": "https://tanstack.com/blog/npm-supply-chain-compromise-postmortem",
          "main": true
        },
        {
          "type": "research",
          "title": "Mini Shai-Hulud strikes again: TanStack and more npm packages compromised (Wiz)",
          "url": "https://www.wiz.io/blog/mini-shai-hulud-strikes-again-tanstack-more-npm-packages-compromised"
        },
        {
          "type": "research",
          "title": "Cache poisoning through pull_request_target: the TanStack incident",
          "url": "https://safedep.io/tanstack-github-actions-cache-poisoning/"
        },
        {
          "type": "research",
          "title": "The cache that bites back: GitHub Actions cache poisoning attacks",
          "url": "https://hivesecurity.gitlab.io/blog/github-actions-cache-poisoning-supply-chain/"
        }
      ],
      "steps": [
        {
          "title": "A fork's pull request runs in a privileged workflow",
          "detail": "The attacker forked TanStack/router on 10 May 2026 and on 11 May opened pull request #7378. bundle-size.yml runs on pull_request_target, which needs no approval for first-time contributors, checks out the pull request's merged code and runs pnpm install and a build, so the attacker's vite_setup.mjs ran in the base repository's context."
        },
        {
          "title": "The release workflow's pnpm store is poisoned",
          "detail": "The code wrote into the pnpm store, and at 11:29 UTC the job's actions/cache post step saved it, 1.1 GB, to the cache scope of main under Linux-pnpm-store-<lockfile hash>: the key release.yml looks up. Cache writes use a runner-internal token, so permissions: contents: read on the workflow did not stop it."
        },
        {
          "title": "Two release runs restore it",
          "detail": "At 19:15 UTC a re-run of an earlier Release workflow run on main restored the poisoned store, and at 19:16 a maintainer merged an unrelated fix, which started a second release run that restored it too."
        },
        {
          "title": "An OIDC token is taken from memory and used to publish",
          "detail": "release.yml has id-token: write for npm trusted publishing. The attacker's binaries ran during the build, read an OIDC token out of the runner with the memory extraction script used in the tj-actions compromise, and posted packages straight to the registry: 42 versions at 19:20 UTC and 42 more at 19:26. No npm token was stolen and the publish workflow was not changed."
        },
        {
          "title": "Installs run the payload",
          "detail": "Each malicious version added an optional dependency that fetched an orphan commit from the fork network and ran its prepare script. It collected AWS, GCP, Kubernetes, Vault, npm and GitHub credentials. StepSecurity raised it in an issue at 19:46 UTC; TanStack purged every cache entry in its repositories and restructured bundle-size.yml."
        },
        {
          "title": "The same class elsewhere",
          "detail": "Adnan Khan showed the technique earlier in angular/dev-infra: a branch name put straight into a shell step in a pull_request_target workflow, then a tool that fills the cache with entries a release job restores. Wiz ties the TanStack wave to the Mini Shai-Hulud campaign (see the Shai-Hulud incident)."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "untrusted-input"
        },
        {
          "step": 1,
          "technique": "pwn-request",
          "holds": [
            {
              "label": "Write to the Actions cache",
              "who": "bundle-size.yml's runner"
            }
          ]
        },
        {
          "step": 2,
          "escalation": "fork-pr-to-cache",
          "holds": [
            {
              "label": "Code in the release build",
              "who": "release.yml's pnpm store"
            }
          ]
        },
        {
          "step": 4,
          "technique": "runner-memory",
          "holds": [
            {
              "ref": "permission:id_token:write",
              "who": "release.yml's OIDC token"
            }
          ]
        },
        {
          "step": 4,
          "technique": "malicious-release"
        },
        {
          "step": 5,
          "technique": "orphan-commit"
        },
        {
          "step": 5,
          "vector": "upstream-dependency",
          "holds": [
            {
              "label": "Cloud, npm and GitHub credentials",
              "who": "Installers' machines, CI"
            }
          ]
        }
      ],
      "url": "/incidents/cache-poisoning",
      "tier": 1,
      "wayIn": [
        "untrusted-input",
        "upstream-dependency"
      ],
      "wentAfter": [
        "steal-secrets",
        "poison-build"
      ]
    },
    {
      "id": "clinejection",
      "title": "Clinejection: prompt injection in an AI issue triage workflow",
      "dateLabel": "February 2026",
      "sortDate": "2026-02",
      "summary": "An issue title told Cline's AI triage agent to install a package, which ran code in a workflow that shares the Actions cache with the nightly release jobs; poisoning that cache exposed the VS Code Marketplace, OpenVSX and npm publishing tokens, and someone used them to publish an unauthorized Cline CLI.",
      "narrative": "From 21 December 2025 Cline ran an issue triage workflow that started Claude, through anthropics/claude-code-action, with Bash and other tools on every new issue, and let anyone with a GitHub account trigger it. The issue title went straight into Claude's prompt, so a title written as an instruction could make it run npm install on a package the attacker controls. The triage job held no publishing secrets, but every workflow on the default branch shares one Actions cache. Adnan Khan showed that code in the triage job can flood the cache past GitHub's 10 GB limit so the real entries are evicted, then plant entries that the Publish Nightly Release and Publish NPM Nightly workflows restore, which hand over VSCE_PAT, OVSX_PAT and NPM_RELEASE_TOKEN. Because of how those registries scope tokens, the nightly tokens can publish production releases. Khan tested only on a mirror and reported it on 1 January 2026; Cline answered only after he published on 9 February and removed the AI workflows within about 30 minutes. A different actor had found his proof of concept, used it against Cline itself, and published an unauthorized Cline CLI to npm whose postinstall script installed openclaw.",
      "attribution": "Adnan Khan",
      "sources": [
        {
          "type": "research",
          "title": "Clinejection: compromising Cline's production releases just by prompting an issue triager",
          "url": "https://adnanthekhan.com/posts/clinejection/"
        },
        {
          "type": "research",
          "title": "GitHub Actions security: AI-powered Actions vulnerabilities (Wiz)",
          "url": "https://www.wiz.io/blog/github-actions-security-ai-powered-actions-vulnerabilities"
        }
      ],
      "steps": [
        {
          "title": "Anyone can start the AI triage agent",
          "detail": "On 21 December 2025 Cline added a workflow on the issues event that ran claude-code-action with Bash among its tools and allowed_non_write_users set to \"*\", so opening an issue was enough to start it. Its GITHUB_TOKEN was restricted and the only secret in the job was the Anthropic API key."
        },
        {
          "title": "An issue title becomes an instruction",
          "detail": "The issue title was put straight into Claude's prompt. A title telling it to install a helper tool from a commit the attacker controls makes Claude run npm install through its Bash tool, which runs the package's install script on the runner without the model seeing what it does."
        },
        {
          "title": "The shared cache is flooded and refilled",
          "detail": "Every workflow on the default branch can read and write the repository's Actions cache, whether it uses caching or not. Since 20 November 2025 GitHub evicts entries as soon as a repository passes 10 GB, so code in the triage job can fill the cache with junk until the real entries go, then write poisoned ones under the keys the nightly release workflows restore. Khan's Cacheract tool does this in a single run."
        },
        {
          "title": "The nightly workflows hand over the publishing tokens",
          "detail": "Publish Nightly Release and Publish NPM Nightly restore those entries while holding VSCE_PAT, OVSX_PAT and NPM_RELEASE_TOKEN. Because the VS Code Marketplace, OpenVSX and npm scope tokens to the publisher or package, the nightly tokens can publish production releases too. Khan saw suspicious failures in the nightly workflow between 31 January and 3 February 2026."
        },
        {
          "title": "Ignored for five weeks, then fixed in thirty minutes",
          "detail": "Khan reported it through a GitHub security advisory and email on 1 January 2026 and tried again on 8 and 18 January and 7 February without an answer. He published on 9 February, and Cline merged a fix about 30 minutes later that removed the AI workflows and stopped the nightly jobs from using the cache."
        },
        {
          "title": "Someone else used it against Cline",
          "detail": "Khan ran his proof of concept on a mirror of the repository. A different actor found it on his test repository, used it against Cline itself to obtain the publishing credentials, and published an unauthorized version of the Cline CLI to npm with a postinstall script that installed openclaw."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "ai-agent"
        },
        {
          "step": 2,
          "technique": "ai-workflow-step",
          "holds": [
            {
              "label": "Code running in the triage job",
              "who": "Claude's Bash tool"
            }
          ],
          "notes": [
            "Give an AI step in a workflow read-only tools and the GitHub CLI calls it needs, never a shell.",
            "Do not run an AI step on events outsiders can trigger in a workflow that shares a cache with release jobs."
          ]
        },
        {
          "step": 3,
          "technique": "cache-poison",
          "holds": [
            {
              "label": "Code in the nightly builds",
              "who": "Nightly workflows' cache"
            }
          ]
        },
        {
          "step": 4,
          "technique": "runner-memory",
          "inferred": true,
          "holds": [
            {
              "label": "VSCE_PAT, OVSX_PAT, NPM_RELEASE_TOKEN",
              "who": "Nightly release secrets"
            }
          ],
          "notes": [
            "Publish nightly builds with their own tokens that cannot publish a production release."
          ]
        },
        {
          "step": 6,
          "technique": "malicious-release"
        }
      ],
      "url": "/incidents/clinejection",
      "tier": null,
      "wayIn": [
        "ai-agent"
      ],
      "wentAfter": [
        "steal-secrets",
        "poison-build"
      ]
    },
    {
      "id": "prt-scan",
      "title": "prt-scan: automated pull_request_target attacks",
      "dateLabel": "March – April 2026",
      "sortDate": "2026-03",
      "summary": "One actor using six accounts opened more than 500 pull requests whose code ran in pull_request_target workflows with the target's secrets; fewer than one in ten worked, but those leaked AWS, Cloudflare and Netlify keys and led to two compromised npm packages.",
      "narrative": "From 11 March 2026 an actor opened pull requests from forks on branches named prt-scan- followed by a hex string, with the same title and body each time, against repositories whose workflows run on pull_request_target. That trigger runs in the base repository with its secrets, so where a workflow checked out and ran the pull request's code, the attacker's code ran with them. Wiz traced six waves from six accounts, three weeks before Charlie Eriksen made it public on 2 April, when the ezmtebo account opened more than 475 pull requests in 26 hours. The payloads grew from a bash script into AI-written code that fits each repository's language and test setup. They sent the workflow token out, listed secret names and environments through the API, and where the token could write, added a workflow that named every secret and started it with workflow_dispatch to get the values. Wiz counted a success rate under ten percent across more than 450 attempts. First-time contributor approval, actor checks and path filters stopped it at Sentry, OpenSearch, NixOS and others. Where it worked it took AWS keys, Cloudflare API tokens and Netlify tokens, and two npm packages of one maintainer were compromised across 106 versions.",
      "attribution": "Wiz Research",
      "sources": [
        {
          "type": "research",
          "title": "Six accounts, one actor: inside the prt-scan supply chain campaign",
          "url": "https://www.wiz.io/blog/six-accounts-one-actor-inside-the-prt-scan-supply-chain-campaign"
        },
        {
          "type": "research",
          "title": "prt-scan: GitHub Actions exfiltration campaign",
          "url": "https://safedep.io/prt-scan-github-actions-exfiltration-campaign/"
        },
        {
          "type": "tracker",
          "title": "CSA research note: GitHub Actions prt-scan supply chain campaign",
          "url": "https://labs.cloudsecurityalliance.org/research/csa-research-note-github-actions-prt-scan-supply-chain-2026/"
        },
        {
          "type": "tracker",
          "title": "AI-assisted supply chain attack targets GitHub",
          "url": "https://darkreading.com/application-security/ai-assisted-supply-chain-attack-targets-github"
        }
      ],
      "steps": [
        {
          "title": "Pull requests from forks, in waves",
          "detail": "From about 08:00 UTC on 11 March 2026 a since-deleted account opened pull requests on branches named prt-scan-<hex>, all with the same title and body. Wiz traced six waves from six accounts. The last, ezmtebo, was created on 2 April and opened its first pull request two minutes later, then more than 475 in 26 hours."
        },
        {
          "title": "The code runs where pull_request_target runs it",
          "detail": "pull_request_target runs in the base repository with its secrets and a token, even for a fork. Where a workflow checked out and built the pull request's code, the payload ran there. Later payloads were AI-written to fit the target: Go test files, npm scripts, Python conftest files."
        },
        {
          "title": "Secret names first, then their values",
          "detail": "The payload sent the workflow token out, then used it to list secret names, environments and workflow files, and kept watching the runner's processes for ten minutes to catch secrets loaded later. Where the token could write, it added a workflow to the default branch that named every secret and started it with workflow_dispatch so the values reached the logs. A step that tried to add trigger labels to its own pull request could not work with the default token."
        },
        {
          "title": "Most targets blocked it",
          "detail": "Wiz measured a success rate under ten percent across more than 450 attempts. Sentry, OpenSearch, IPFS, NixOS, Jina AI and recharts were protected by first-time contributor approval, workflows limited to trusted actors and path-based triggers."
        },
        {
          "title": "Where it worked: cloud keys and two npm packages",
          "detail": "Wiz saw AWS keys, Cloudflare API tokens and Netlify tokens stolen, and two npm packages with a shared maintainer, @codfish/eslint-config and @codfish/actions, compromised across 106 versions. Charlie Eriksen made the campaign public on 2 April 2026; Wiz found the earlier waves."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "untrusted-input"
        },
        {
          "step": 2,
          "technique": "pwn-request",
          "holds": [
            {
              "label": "Secrets in the job",
              "who": "pull_request_target runs"
            },
            {
              "ref": "permission:contents:write",
              "who": "The run's token, if writable",
              "inferred": true
            }
          ]
        },
        {
          "step": 3,
          "escalation": "workflow-to-secrets",
          "holds": [
            {
              "label": "AWS, Cloudflare, Netlify keys",
              "who": "Compromised repositories"
            }
          ]
        },
        {
          "step": 5,
          "technique": "malicious-release",
          "inferred": true
        }
      ],
      "url": "/incidents/prt-scan",
      "tier": 2,
      "wayIn": [
        "untrusted-input"
      ],
      "wentAfter": [
        "steal-secrets",
        "poison-build"
      ]
    },
    {
      "id": "megalodon",
      "title": "Megalodon: mass backdooring of CI workflows",
      "dateLabel": "May 2026",
      "sortDate": "2026-05",
      "summary": "On 18 May 2026, probably with credentials taken from developers' machines by infostealers, someone pushed workflows that steal CI secrets and cloud credentials straight to the default branch of 5,561 repositories in about six hours, and left dormant workflow_dispatch backdoors in a few chosen ones.",
      "narrative": "Between about 11:36 and 17:48 UTC on 18 May 2026, 5,718 commits landed on the default branches of 5,561 public repositories, with no pull request. Git lets the pusher write any author, so the commits claimed to come from build-bot, auto-ci, ci-bot or pipeline-bot and said things like \"ci: add build optimization step\". SafeDep and Wiz read the pushes as made with compromised personal access tokens or deploy keys, and Hudson Rock found 331 of the 978 usernames involved in infostealer logs; how the credentials were taken is otherwise not established. Most repositories got a new .github/workflows/ci.yml named SysDiag that ran on every push and on pull_request_target, asked for id-token: write, and ran a base64-encoded bash script. The script collected environment variables, credential files, cloud keys from the AWS, GCP and Azure metadata services, secrets found in the workspace and the job's OIDC token request values, and posted them to 216.126.225.129:8443. In a smaller set, including nine Tiledesk repositories and eight of Black-Iron-Project, an existing workflow was replaced by one named Optimize-Build with the same script but only a workflow_dispatch trigger, so it did nothing until someone ran it. SafeDep found the campaign because Tiledesk's maintainer, without noticing, published seven npm versions from the poisoned repository; the npm account itself was not touched.",
      "attribution": "SafeDep, StepSecurity",
      "sources": [
        {
          "type": "research",
          "title": "Megalodon: mass GitHub repo backdooring via CI workflows",
          "url": "https://safedep.io/megalodon-mass-github-repo-backdooring-ci-workflows/"
        },
        {
          "type": "tracker",
          "title": "Megalodon campaign backdoors GitHub repositories via CI workflow compromise (Wiz Cloud Threat Landscape)",
          "url": "https://threats.wiz.io/all-incidents/megalodon-campaign-backdoors-github-repositories-via-ci-workflow-compromise"
        },
        {
          "type": "research",
          "title": "Megalodon: mass GitHub Actions secret exfiltration across 5,500 public repositories",
          "url": "https://stepsecurity.io/blog/megalodon-mass-github-actions-secret-exfiltration-across-5-500-public-repositories"
        },
        {
          "type": "research",
          "title": "Megalodon: new CI/CD malware spreads across GitHub",
          "url": "https://www.ox.security/blog/megalodon-cicd-malware-github/"
        },
        {
          "type": "research",
          "title": "Infostealers just spawned a 5,000+ repo GitHub supply chain attack",
          "url": "https://www.infostealers.com/article/infostealers-just-spawned-a-5000-repo-github-supply-chain-attack/"
        },
        {
          "type": "tracker",
          "title": "Megalodon: mass CI/CD pipeline poisoning via GitHub Actions (CSA research note)",
          "url": "https://labs.cloudsecurityalliance.org/research/csa-research-note-megalodon-github-actions-cicd-supply-chain/"
        }
      ],
      "steps": [
        {
          "title": "Push access comes from stolen credentials",
          "detail": "SafeDep and Wiz say the commits were pushed with compromised personal access tokens or deploy keys, without showing which. Hudson Rock checked the 978 usernames tied to the affected repositories and found 331 of them on machines infected by infostealers, and concluded the access came from infostealer data. SafeDep also describes throwaway accounts with random eight-character names such as rkb8el9r. Which accounts did the pushing, and whose tokens they were, is not published."
        },
        {
          "title": "Forged bot commits go straight to the default branch",
          "detail": "From about 11:36 to 17:48 UTC on 18 May 2026, 5,718 commits reached 5,561 repositories, directly on the default branch with no pull request and no merge commit. The author names were build-bot, auto-ci, ci-bot and pipeline-bot with made-up email addresses, and OX Security saw an author date hardcoded to 17 September 2001. On the Tiledesk commit the GitHub API linked no account to author or committer. Repositories without a ruleset requiring a pull request had nothing to stop it."
        },
        {
          "title": "SysDiag sends secrets out on the next push or pull request",
          "detail": "The mass variant added .github/workflows/ci.yml named SysDiag, triggered on push to any branch and on pull_request_target, with id-token: write and actions: read. pull_request_target runs with the repository's secrets for a pull request from anyone, including a fork. Its base64 bash script read printenv and every readable /proc/*/environ, 27 credential files (AWS, SSH, Docker, npm, gcloud, gh, kubeconfig, Terraform, Vault, git credentials, shell history), the AWS, GCP and Azure metadata services, .env and service account files with 30 or more secret patterns, and ACTIONS_ID_TOKEN_REQUEST_URL and _TOKEN. It gzipped the result and posted it to 216.126.225.129:8443 tagged megalodon. StepSecurity's Harden-Runner blocked one such connection."
        },
        {
          "title": "Chosen repositories get a dormant workflow",
          "detail": "In the targeted variant, Optimize-Build, an existing workflow was replaced. In Tiledesk, commit acac5a9 swapped docker-community-worker-push-latest.yml's on: push for on: workflow_dispatch and its Docker build for the same script. Because the file already said workflow_dispatch when it landed, the push did not run it, and the Actions API showed no dispatch runs. It waits for anyone who can run workflows in the repository, such as the holder of the stolen token, to start it through the API."
        },
        {
          "title": "Tiledesk publishes from the poisoned source",
          "detail": "Tiledesk's maintainer published @tiledesk/tiledesk-server 2.18.6 to 2.18.12 between 19 and 21 May from the backdoored repository, with the same npm account that published the clean 2.18.5. The only difference from 2.18.5 was the workflow file. SafeDep's scanner flagged that file in the package, which is how the campaign was found; the package does not run the payload on install."
        },
        {
          "title": "Write-ups and counts",
          "detail": "OX Security published on 21 May with 3,500 or more repositories it had confirmed through the base64 string, SafeDep the same day with 5,718 commits from GitHub's commit search, StepSecurity on 22 May, Wiz's tracker on 22 May and Hudson Rock on 23 May. OX describes the commits as arriving by pull requests that an owner merges, which the commit data in SafeDep's analysis does not show. No source names an actor; SafeDep notes a resemblance to TeamPCP but thinks it is more likely a copycat."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "leaked-token",
          "inferred": true,
          "holds": [
            {
              "ref": "permission:workflows:write",
              "who": "Stolen PATs or deploy keys",
              "inferred": true
            }
          ]
        },
        {
          "step": 2,
          "technique": "no-review",
          "fixes": [
            "repo-signed-commits"
          ]
        },
        {
          "step": 3,
          "escalation": "workflow-to-secrets",
          "holds": [
            {
              "ref": "permission:id_token:write",
              "who": "SysDiag job's OIDC token"
            },
            {
              "label": "CI secrets and cloud keys",
              "who": "Runner env, files, IMDS"
            }
          ]
        },
        {
          "step": 4,
          "technique": "dormant-workflow",
          "fromStep": 2
        }
      ],
      "url": "/incidents/megalodon",
      "tier": 1,
      "wayIn": [
        "leaked-token"
      ],
      "wentAfter": [
        "submit-code",
        "steal-secrets",
        "persist"
      ]
    },
    {
      "id": "chaindrop",
      "title": "ChainDrop: a hijacked maintainer account publishes through trusted publishing",
      "dateLabel": "August 2026",
      "sortDate": "2026-08",
      "summary": "With the keyv maintainer's GitHub account, the attacker committed a payload straight to main and cut releases, so the projects' own release workflows published it to npm through trusted publishing, with valid provenance. Each install then stole the next victim's tokens and published their packages too.",
      "narrative": "On 4 August 2026 someone used the GitHub account of Jared Wray, who maintains keyv, cacheable and ecto, packages with well over 100 million weekly npm downloads between them. How the account was taken is not known; Wray said they used OIDC with npm and one-time codes on GitHub, so there was no long-lived npm token to steal. From about 09:00 UTC the attacker committed a dropper and a payload straight to main, planted editor and Claude Code hooks, and changed the release script so the new major version would become latest. Creating a release was then enough. The untouched release workflows run on published releases and publish through npm trusted publishing, so keyv 6.0.0 and ten other versions went out from the real pipeline with valid SLSA provenance that tied them to the poisoned commits. The payload, a descendant of Mini Shai-Hulud, runs before install under Bun and takes npm, GitHub, cloud, Kubernetes, Vault, SSH and AI tool credentials from developer machines and CI runners, including secrets read from the runner's memory. With a victim's GitHub token it pushes a workflow that saves the repository's secrets as an artifact and then deletes the run and the branch, and commits the hooks to other branches. With a victim's npm token it republishes their packages with the payload. StepSecurity counted 2,212 versions of 444 packages by 18:10 UTC. Provenance showed which commit was built, not whether anyone should have pushed it.",
      "attribution": "StepSecurity",
      "sources": [
        {
          "type": "research",
          "title": "ChainDrop npm worm: Bun-loaded CI/CD credential harvester with Ethereum dead-drop C2",
          "url": "https://www.stepsecurity.io/blog/chaindrop-npm-worm",
          "main": true
        },
        {
          "type": "research",
          "title": "keyv and cacheable npm package hijacked in supply chain attack (Wiz)",
          "url": "https://www.wiz.io/blog/keyv-and-cacheable-npm-supply-chain-attack"
        },
        {
          "type": "research",
          "title": "'ChainDrop' worm compromises hundreds of popular npm packages",
          "url": "https://securitylabs.datadoghq.com/articles/npm-worm-compromises-popular-npm-packages/"
        },
        {
          "type": "postmortem",
          "title": "Supply-chain compromise: packages across jaredwray/keyv and jaredwray/cacheable, with the maintainer's recovery steps",
          "url": "https://github.com/jaredwray/cacheable/issues/1692"
        },
        {
          "type": "postmortem",
          "title": "keyv: the maintainer's remediation update",
          "url": "https://github.com/jaredwray/keyv/issues/2051"
        },
        {
          "type": "tracker",
          "title": "ChainDrop credential stealing worm infects over 400 npm packages",
          "url": "https://www.csoonline.com/article/4205276/chaindrop-credential-stealing-worm-infects-over-400-npm-packages.html"
        },
        {
          "type": "tracker",
          "title": "ChainDrop: the Keyv and Cacheable npm supply chain attack",
          "url": "https://insights.integrity360.com/threat-advisories/chaindrop-the-keyv-and-cacheable-npm-supply-chain-attack"
        }
      ],
      "steps": [
        {
          "title": "The maintainer's GitHub account is used",
          "detail": "From about 09:00 UTC on 4 August 2026 the jaredwray account pushed to keyv, cacheable and ecto. No source has established how the attacker got in. Wray said on X that they published to npm with OIDC and signed in to GitHub with one-time codes, so no long-lived token was in play, and that they got the account back at around 20:00 UTC."
        },
        {
          "title": "The payload goes straight to main",
          "detail": "Commit ee2681a, \"release: v6.0.0\", added setup.mjs and Math_Symbol.js and a preinstall script to core/keyv, and changed scripts/release-publish.ts and the root package.json so v6.0.0 would be published as latest instead of the 5.x line the repository variable pinned. Commit d8c850c, \"chore: update config\", planted .claude/settings.json and .vscode/tasks.json, and f97eabc at 09:23 removed a test that would have shown the preinstall hook. Datadog saw a branch and two pull requests first, closed with \"merging directly to main\". The workflow files were not changed."
        },
        {
          "title": "A release runs the real publish workflow",
          "detail": "keyv's release.yaml runs when a release is published and publishes through npm trusted publishing. The attacker created release v6.0.0 on f97eabc, and run 30896232272 published keyv 6.0.0 at 09:35 UTC with valid SLSA provenance naming that tag, commit and workflow. The same pattern followed in cacheable (commit 893f73f and release setup-files-v1, nine versions between 10:09 and 10:14) and ecto (release v5.0.1, published at 10:28). No npm token was used for these eleven versions."
        },
        {
          "title": "Installs steal credentials",
          "detail": "The preinstall script downloads Bun 1.3.13 from Bun's GitHub releases and runs a 727 KB second stage. It collects npm, GitHub, AWS, Kubernetes and Vault credentials, SSH keys, AI tool credentials and wallets, and on GitHub Actions reads secrets out of the Runner.Worker process memory. It finds its server through an Ethereum contract, sends data to npm-cache.com, and falls back to public repositories described as \"Shai-Hulud: Here We Go Again\". The first worm-published package appeared at 09:38, three minutes after keyv."
        },
        {
          "title": "A workflow in victims' repositories dumps the secrets",
          "detail": "With a stolen GitHub token that has the workflow scope, the payload pushes .github/workflows/codeql_analysis.yml on a branch named dependabot/github_actions/format/setup-formatter. The workflow, named \"Run Copilot\", runs on push, writes ${{ toJSON(secrets) }} to format-results.txt and uploads it as an artifact. The payload downloads the artifact, then deletes the run and the branch."
        },
        {
          "title": "Editor and agent hooks land on other branches",
          "detail": "Through the GraphQL createCommitOnBranch call the payload commits .claude/settings.json, with a SessionStart hook, and .vscode/tasks.json, with a task that runs on folder open, to up to 50 branches of the repositories it can reach. Opening the repository in VS Code or starting Claude Code there runs the loader again, unless workspace trust blocks it. On the machine it also leaves a watcher that runs a payload when the stolen GitHub token is revoked."
        },
        {
          "title": "Every npm token found publishes the next round",
          "detail": "Valid npm tokens, including granular tokens set to bypass 2FA, are used to repack each of the victim's packages with the payload and publish them. StepSecurity counted 433 packages and 2,201 versions published this way by 13:20 UTC, and 444 packages and 2,212 versions in all by 18:10. Socket later counted 2,251 versions of 452 packages."
        },
        {
          "title": "Clean-up",
          "detail": "npm began removing versions at about 10:39 UTC and keyv was back on 5.6.0 by about 11:15. Wray disabled every GitHub Actions workflow and npm trusted publishing, force-reset main to the last clean commit, deleted the attacker's tags and asked GitHub to purge the commits. The poisoned commits stayed in the repositories' history for a while after the packages were clean, so a release cut from that tree could have shipped the payload again."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "account-takeover",
          "inferred": true,
          "holds": [
            {
              "ref": "permission:contents:write",
              "who": "jaredwray's account"
            }
          ]
        },
        {
          "step": 2,
          "technique": "no-review"
        },
        {
          "step": 2,
          "technique": "editor-config"
        },
        {
          "step": 3,
          "technique": "push-tag",
          "holds": [
            {
              "label": "npm publish via OIDC",
              "who": "keyv's release.yaml"
            }
          ]
        },
        {
          "step": 3,
          "technique": "release-provenance"
        },
        {
          "step": 4,
          "vector": "upstream-dependency",
          "holds": [
            {
              "ref": "scope:repo",
              "who": "Victims' GitHub tokens"
            },
            {
              "ref": "scope:workflow",
              "who": "The same tokens"
            },
            {
              "label": "npm tokens",
              "who": "Victims' machines, CI"
            },
            {
              "label": "Cloud keys and CI secrets",
              "who": "Disk, runner memory"
            }
          ]
        },
        {
          "step": 5,
          "escalation": "workflow-to-secrets",
          "holds": [
            {
              "label": "Repository Actions secrets",
              "who": "Each repo's workflows"
            }
          ]
        },
        {
          "step": 5,
          "technique": "delete-runs",
          "fromStep": 4
        },
        {
          "step": 6,
          "technique": "editor-config",
          "fromStep": 4
        },
        {
          "step": 7,
          "technique": "malicious-release",
          "fromStep": 4
        }
      ],
      "url": "/incidents/chaindrop",
      "tier": 0,
      "wayIn": [
        "account-takeover",
        "upstream-dependency"
      ],
      "wentAfter": [
        "submit-code",
        "delete-history",
        "release-tag",
        "steal-secrets",
        "poison-build",
        "persist"
      ]
    },
    {
      "id": "cve-2024-4985",
      "title": "CVE-2024-4985: SAML auth bypass",
      "dateLabel": "Fixed 2024",
      "sortDate": "2024-05",
      "summary": "On GitHub Enterprise Server with SAML single sign-on and the optional encrypted assertions feature, anyone who could reach the instance could forge a SAML response and sign in as a site administrator, without any account.",
      "narrative": "CVE-2024-4985 (CVSS 9.8 in GitHub's advisory) was an authentication bypass in GitHub Enterprise Server's SAML single sign-on, present only when the optional encrypted assertions feature was turned on. An attacker could forge a SAML response that provisioned or signed in to a user with site administrator rights, with no prior authentication. It affected every version before 3.13.0 and was fixed in 3.9.15, 3.10.12, 3.11.10 and 3.12.4. It was reported through GitHub's bug bounty.",
      "sources": [
        {
          "type": "advisory",
          "title": "GHSA-5pw9-f9r4-mv2r: CVE-2024-4985, SAML forge to site admin",
          "url": "https://github.com/advisories/GHSA-5pw9-f9r4-mv2r",
          "main": true
        },
        {
          "type": "tracker",
          "title": "CVE-2024-4985 (Wiz vulnerability database)",
          "url": "https://www.wiz.io/vulnerability-database/cve/cve-2024-4985"
        },
        {
          "type": "tracker",
          "title": "GitHub fixes maximum severity GHES auth bypass",
          "url": "https://www.helpnetsecurity.com/2024/05/23/cve-2024-4985/"
        }
      ],
      "steps": [
        {
          "title": "SAML with encrypted assertions is turned on",
          "detail": "The bug only existed when the instance used SAML single sign-on with the optional encrypted assertions feature. Instances using other authentication, or SAML without encrypted assertions, were not affected."
        },
        {
          "title": "A forged SAML response is accepted",
          "detail": "An attacker who could reach the instance could forge a SAML response that GitHub Enterprise Server accepted, with no account and no prior authentication."
        },
        {
          "title": "The forged login is a site administrator",
          "detail": "The forged response could provision or sign in to a user with site administrator rights, which controls the whole instance. Every version before 3.13.0 was affected; it was fixed in 3.9.15, 3.10.12, 3.11.10 and 3.12.4 after a bug bounty report."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "platform-vuln"
        },
        {
          "step": 2,
          "technique": "auth-bypass",
          "holds": [
            {
              "ref": "role:ghes-site-admin",
              "who": "A forged SAML login"
            }
          ]
        }
      ],
      "url": "/incidents/cve-2024-4985",
      "tier": 0,
      "wayIn": [
        "platform-vuln"
      ],
      "wentAfter": [
        "platform"
      ]
    },
    {
      "id": "cve-2025-11578",
      "title": "CVE-2025-11578: pre-receive hook symlink escape",
      "dateLabel": "Fixed 2025",
      "sortDate": "2025-10",
      "summary": "An enterprise admin on GitHub Enterprise Server could use a symlink in a pre-receive hook environment to replace system binaries during cleanup and add their own SSH key for root, turning an application role into root on the appliance.",
      "narrative": "CVE-2025-11578 (CVSS 7.2) let an authenticated enterprise admin of GitHub Enterprise Server gain root SSH access to the appliance. With a crafted repository and pre-receive hook environment, a symlink escaped the hook's sandbox so that the cleanup step replaced system binaries; the payload then added the attacker's SSH key to root's authorized keys. It needed enterprise admin rights, affected every version before 3.19, and was fixed in 3.14.19, 3.15.14, 3.16.10, 3.17.7 and 3.18.1 after a bug bounty report.",
      "sources": [
        {
          "type": "advisory",
          "title": "GHSA-g39h-563w-fg8c: CVE-2025-11578, enterprise admin to root via pre-receive symlink escape",
          "url": "https://github.com/advisories/GHSA-g39h-563w-fg8c"
        }
      ],
      "steps": [
        {
          "title": "An enterprise admin sets up a hook environment",
          "detail": "Exploitation needed enterprise admin privileges on the instance, enough to create a pre-receive hook environment and a repository for it."
        },
        {
          "title": "A symlink escapes during hook cleanup",
          "detail": "A crafted repository and environment used a symlink so that the hook's cleanup step replaced system binaries outside the sandbox."
        },
        {
          "title": "Root SSH access",
          "detail": "The payload added the attacker's SSH key to root's authorized keys, giving root SSH access to the appliance. Every version before 3.19 was affected; it was fixed in 3.14.19, 3.15.14, 3.16.10, 3.17.7 and 3.18.1 after a bug bounty report."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "platform-vuln",
          "holds": [
            {
              "label": "Enterprise admin on GHES",
              "who": "The attacker's account"
            }
          ]
        },
        {
          "step": 2,
          "technique": "admin-to-root",
          "holds": [
            {
              "label": "Root SSH on the appliance",
              "who": "The attacker's SSH key"
            }
          ]
        }
      ],
      "url": "/incidents/cve-2025-11578",
      "tier": null,
      "wayIn": [
        "platform-vuln"
      ],
      "wentAfter": [
        "platform"
      ]
    },
    {
      "id": "cve-2025-3509",
      "title": "CVE-2025-3509: pre-receive hook RCE via port reuse",
      "dateLabel": "Fixed 2025",
      "sortDate": "2025-04",
      "summary": "During windows such as a hot patch upgrade, a pre-receive hook on GitHub Enterprise Server could take over a dynamically allocated port that briefly became free and run code on the appliance, for a site admin or anyone who could edit a repository with hooks.",
      "narrative": "CVE-2025-3509 (CVSS 7.2) was a remote code execution flaw in GitHub Enterprise Server's pre-receive hooks. Some internal services use dynamically allocated ports that become free for a moment, for example during a hot patch upgrade, and hook code could use that window to run commands beyond the hook, leading to privilege escalation on the appliance. It needed site administrator rights to enable and configure hooks, or permission to modify a repository whose hooks were already enabled. It affected every version before 3.17 and was fixed in 3.16.2, 3.15.6, 3.14.11 and 3.13.14 after a bug bounty report.",
      "sources": [
        {
          "type": "advisory",
          "title": "GHSA-g3x6-r9w9-mcxx: CVE-2025-3509, pre-receive hook RCE",
          "url": "https://github.com/advisories/GHSA-g3x6-r9w9-mcxx"
        }
      ],
      "steps": [
        {
          "title": "Access to pre-receive hooks",
          "detail": "Exploitation needed site administrator rights to enable and configure pre-receive hooks, or permission to modify a repository where hooks were already enabled."
        },
        {
          "title": "A port becomes free for a moment",
          "detail": "Some services use dynamically allocated ports that become available briefly, for example during a hot patch upgrade. Hook code running in that window could take one over, which limits when the attack works."
        },
        {
          "title": "Code runs on the appliance",
          "detail": "That gave code execution outside the hook, leading to privilege escalation and compromise of the instance. Every version before 3.17 was affected; it was fixed in 3.16.2, 3.15.6, 3.14.11 and 3.13.14 after a bug bounty report."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "platform-vuln",
          "holds": [
            {
              "ref": "role:ghes-site-admin",
              "who": "Or a hook repo editor"
            }
          ]
        },
        {
          "step": 3,
          "technique": "admin-to-root",
          "holds": [
            {
              "label": "Code execution on the appliance",
              "who": "Hook code in the window"
            }
          ]
        }
      ],
      "url": "/incidents/cve-2025-3509",
      "tier": 0,
      "wayIn": [
        "platform-vuln"
      ],
      "wentAfter": [
        "platform"
      ]
    },
    {
      "id": "cve-2026-3854",
      "title": "CVE-2026-3854: push-option metadata RCE",
      "dateLabel": "Fixed 2026",
      "sortDate": "2026-03",
      "summary": "Any user who could push to a repository on GitHub Enterprise Server, even one they created themselves, could put a delimiter into a git push option, inject extra fields into internal service headers and run code on the instance.",
      "narrative": "CVE-2026-3854 (CVSS 8.8) let an attacker with push access to any repository on GitHub Enterprise Server run code on the instance. During a git push, the values of push options were copied into internal service headers without being cleaned, and the header format used a delimiter that can also appear in user input. A crafted push option could therefore add metadata fields of the attacker's choosing, which led to remote code execution. Push access is the lowest bar of all the Enterprise Server flaws on this site: on many instances any user can create a repository and push to it. It was reported through the bug bounty and fixed in 3.14.24, 3.15.19, 3.16.15, 3.17.12, 3.18.6 and 3.19.3.",
      "sources": [
        {
          "type": "advisory",
          "title": "GHSA-64fw-jx9p-5j24: CVE-2026-3854, push option injection to RCE",
          "url": "https://github.com/advisories/GHSA-64fw-jx9p-5j24",
          "main": true
        },
        {
          "type": "tracker",
          "title": "CVE-2026-3854 (Wiz vulnerability database)",
          "url": "https://www.wiz.io/vulnerability-database/cve/cve-2026-3854"
        },
        {
          "type": "tracker",
          "title": "GHES vulnerability: find impacted assets",
          "url": "https://www.runzero.com/blog/github-enterprise-server/"
        }
      ],
      "steps": [
        {
          "title": "Push access to any repository",
          "detail": "The attacker needs to be able to push to a repository on the instance. Where users can create repositories, any user has that for their own."
        },
        {
          "title": "A push option injects header fields",
          "detail": "Values passed with git push -o were put into internal service headers without being cleaned. The header format uses a delimiter that can appear in user input, so a crafted value adds extra metadata fields."
        },
        {
          "title": "Code runs on the instance",
          "detail": "The injected fields led to remote code execution on GitHub Enterprise Server. It was reported through the bug bounty and fixed in 3.14.24, 3.15.19, 3.16.15, 3.17.12, 3.18.6 and 3.19.3."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "insider-write",
          "holds": [
            {
              "ref": "permission:contents:write",
              "who": "Any user's own repository"
            }
          ]
        },
        {
          "step": 2,
          "vector": "platform-vuln"
        },
        {
          "step": 3,
          "technique": "admin-to-root",
          "holds": [
            {
              "label": "Code execution on the instance",
              "who": "Injected push option"
            }
          ]
        }
      ],
      "url": "/incidents/cve-2026-3854",
      "tier": 2,
      "wayIn": [
        "insider-write",
        "platform-vuln"
      ],
      "wentAfter": [
        "platform"
      ]
    },
    {
      "id": "cve-2024-1374",
      "title": "CVE-2024-1374: Management Console template injection",
      "dateLabel": "Fixed 2024",
      "sortDate": "2024-02",
      "summary": "A user with the editor role in GitHub Enterprise Server's Management Console could inject commands through the nomad templates used for audit log forwarding and get admin SSH access to the appliance.",
      "narrative": "CVE-2024-1374 (CVSS 9.1) was a command injection in GitHub Enterprise Server's Management Console. When configuring audit log forwarding, values were placed into nomad templates without enough checking, so an attacker with the Management Console editor role could run commands and gain admin SSH access to the appliance. It needed access to the instance and to the Management Console with the editor role. It affected every version before 3.12 and was fixed in 3.11.5, 3.10.7, 3.9.10 and 3.8.15 after a bug bounty report.",
      "sources": [
        {
          "type": "advisory",
          "title": "GHSA-9779-f4qr-x2w9: CVE-2024-1374, Management Console command injection",
          "url": "https://github.com/advisories/GHSA-9779-f4qr-x2w9",
          "main": true
        },
        {
          "type": "research",
          "title": "HackerOne #2332623: editor to root SSH via nomad template injection (CVE-2024-1374)",
          "url": "https://hackerone.com/reports/2332623"
        }
      ],
      "steps": [
        {
          "title": "The Management Console editor role",
          "detail": "Exploitation needed access to the instance and to the Management Console with the editor role, a role meant for configuring the appliance, not for shell access."
        },
        {
          "title": "Audit log forwarding settings reach a template",
          "detail": "When audit log forwarding was configured, its settings were written into nomad templates in a way that let crafted values run commands."
        },
        {
          "title": "Admin SSH on the appliance",
          "detail": "The injected commands gave admin SSH access to the appliance. Every version before 3.12 was affected; it was fixed in 3.11.5, 3.10.7, 3.9.10 and 3.8.15 after a bug bounty report."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "platform-vuln",
          "holds": [
            {
              "ref": "key:management-console",
              "who": "The editor role"
            }
          ]
        },
        {
          "step": 2,
          "technique": "admin-to-root",
          "holds": [
            {
              "label": "Admin SSH on the appliance",
              "who": "Injected template"
            }
          ]
        }
      ],
      "url": "/incidents/cve-2024-1374",
      "tier": 0,
      "wayIn": [
        "platform-vuln"
      ],
      "wentAfter": [
        "platform"
      ]
    },
    {
      "id": "cve-2022-23732",
      "title": "CVE-2022-23732: Management Console path traversal / CSRF bypass",
      "dateLabel": "Fixed 2022",
      "sortDate": "2022-01",
      "summary": "A path traversal in GitHub Enterprise Server's Management Console bypassed its CSRF protection, so a page the attacker controls could make a logged-in administrator's browser change console settings, which could lead to privilege escalation.",
      "narrative": "CVE-2022-23732 (CVSS 8.8) was a path traversal in GitHub Enterprise Server's Management Console that got around its protection against cross-site request forgery. The attacker needed a victim who was logged in to the Management Console at the time, for example by getting them to open a page the attacker controls, which then sent requests to the console as that user. GitHub's advisory says this could potentially lead to privilege escalation. It affected every version before 3.5 and was fixed in 3.1.19, 3.2.11, 3.3.6 and 3.4.1 after a bug bounty report.",
      "sources": [
        {
          "type": "advisory",
          "title": "GHSA-r4q9-qxgx-r39m: CVE-2022-23732, Management Console path traversal, CSRF bypass",
          "url": "https://github.com/advisories/GHSA-r4q9-qxgx-r39m"
        }
      ],
      "steps": [
        {
          "title": "An administrator is logged in to the Management Console",
          "detail": "The attack needed a victim with an active Management Console session, the console that configures the whole appliance."
        },
        {
          "title": "A path traversal skips the CSRF check",
          "detail": "A path traversal in the console's request handling let a request get past its cross-site request forgery protection, so a page the attacker controls could act in the victim's session."
        },
        {
          "title": "Console changes as the administrator",
          "detail": "GitHub's advisory says this could potentially lead to privilege escalation. Every version before 3.5 was affected; it was fixed in 3.1.19, 3.2.11, 3.3.6 and 3.4.1 after a bug bounty report."
        }
      ],
      "chain": [
        {
          "step": 1,
          "vector": "platform-vuln"
        },
        {
          "step": 3,
          "technique": "admin-to-root",
          "inferred": true,
          "holds": [
            {
              "ref": "key:management-console",
              "who": "The victim's session"
            }
          ]
        }
      ],
      "url": "/incidents/cve-2022-23732",
      "tier": 0,
      "wayIn": [
        "platform-vuln"
      ],
      "wentAfter": [
        "platform"
      ]
    }
  ]
}
