These write-ups are not threat intelligence and are not kept up to date as an incident develops. They are here to show how each attack worked, so you can find and fix the same techniques in your own setup. For the latest on an incident, read its sources.
Incidents
Real attacks on GitHub, research that showed an attack would work, and GitHub Enterprise Server vulnerabilities. Almost every incident below is a story about which permission the stolen credential carried, not which product had a bug. Filter by how the attacker got in and what they went after; the pill is the highest tier the attacker held. Incidents marked Attack path have been worked through from their sources into a step-by-step path you can follow on their page; the ones marked Sources only have a short write-up and link to their sources. For the techniques across all incidents, with the defense for each step, see Attack paths.
32 of 32 incidents
- T0August 2026Attack pathChainDrop: a hijacked maintainer account publishes through trusted publishingWith 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.Stolen identity, Supply chain and CI/CD
- T0May 2026Attack pathGitHub's internal repositories taken through a VS Code extensionA 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.Stolen identity, Supply chain and CI/CD, Developer endpoint
- T1OngoingAttack pathActions cache poisoning (Angular, TanStack)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.Supply chain and CI/CD
- T1May 2026Attack pathMegalodon: mass backdooring of CI workflowsOn 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.Stolen identity
- T0March – April 2026Attack pathTeamPCP tag force-overwrite campaignA 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.Stolen identity, Supply chain and CI/CD
- T2March – April 2026Attack pathprt-scan: automated pull_request_target attacksOne 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.Supply chain and CI/CD
- T2Fixed 2026Attack pathCVE-2026-3854: push-option metadata RCEAny 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.Insider, Platform
- T0February 2026Attack pathhackerbot-claw autonomous agent RCEAn 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.Supply chain and CI/CD
- February 2026Attack pathClinejection: prompt injection in an AI issue triage workflowAn 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.Supply chain and CI/CD
- T0October 2025 – March 2026Attack pathGlassWorm: editor extensions that steal GitHub tokens and force-pushMalicious 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.Supply chain and CI/CD, Developer endpoint
- Fixed 2025Attack pathCVE-2025-11578: pre-receive hook symlink escapeAn 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.Platform
- T1September 2025, returned 2026Attack pathGhostActionWith 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.Stolen identity
- T0September 2025 / November 2025 / May 2026Attack pathShai-Hulud self-propagating npm wormA 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.Stolen identity, Supply chain and CI/CD
- T0August 2025Attack pathNx "s1ngularity"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.Supply chain and CI/CD
- T0July 2025Attack pathToptal repo-visibility flip and wiperWith 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.Stolen identity, Supply chain and CI/CD
- T2May 2025 – ongoingAttack pathGitHub MCP / agentic token breadthAn 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.Supply chain and CI/CD
- T0Fixed 2025Attack pathCVE-2025-3509: pre-receive hook RCE via port reuseDuring 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.Platform
- T02025–2026Attack pathOAuth consent phishing at scaleFake "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.Stolen identity
- T0March 2025Attack pathtj-actions/changed-files supply-chain compromise (CVE-2025-30066)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.Stolen identity, Supply chain and CI/CD
- T1March – June 2025Attack pathSalesloft Drift GitHub → AWS pivotStolen 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.Stolen identity
- T1December 2024Attack pathUltralytics build cache poisoningA 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.Stolen identity, Supply chain and CI/CD
- T2August 2024Attack pathArtiPACKED artifact token leakagePublic 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.Stolen identity
- T0Fixed 2024Attack pathCVE-2024-4985: SAML auth bypassOn 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.Platform
- T0Fixed 2024Attack pathCVE-2024-1374: Management Console template injectionA 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.Platform
- T3January 2024Attack pathMercedes-Benz source code exposureA 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.Stolen identity
- T0July 2023Attack pathDependabot impersonationWith 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.Stolen identity
- T22023–2024Attack pathSelf-hosted runner takeovers (PyTorch and others)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.Supply chain and CI/CD
- T0December 2022 – January 2023Attack pathCircleCI session-cookie theftMalware 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.Stolen identity
- T0April 2022Attack pathHeroku / Travis CI OAuth token theftOAuth 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.Stolen identity
- OngoingSources onlyGitHub App installation token abuseAn 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.
- T0Fixed 2022Attack pathCVE-2022-23732: Management Console path traversal / CSRF bypassA 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.Platform
- T2OngoingAttack path"Pwn requests": pull_request_target & workflow_runA 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.Supply chain and CI/CD
Timeline
Hover or tap an event for a quick preview, then click through for the full writeup.
Recurring escalations
If you're tiering by blast radius, these are the actions that keep showing up as the pivot point, most used first, each linked to the incidents that used it.
Two things stand out for the severity model. First, contents:write on a widely consumed repo is categorically different from the same permission on a leaf repo, because tag mutation propagates to every downstream consumer pinning by tag. Second, several of the worst incidents involved no vulnerability at all; cache sharing, non-ephemeral runners, and agent token breadth are all designed behaviour, which is why severity here needs a "works as intended" flag distinct from CVE-backed findings.