ghtier

Attack paths

Every GitHub attack has two halves: how the attacker gets in, and what they do once they're there. Pick an attacker goal and the graph shows every way to it: the way in, the GitHub access it uses, the technique, and the defenses (the dots) on the step they break. Hover a box to follow its paths, click one for the details, or pick an incident to see the path it took. Every path ties back to the incidents where they were used.

The source control part (the first three objectives and most entry vectors) follows François Proulx's attack tree for Boost Security, built on the SLSA source integrity threats. The CI/CD, exposure, persistence and GHES paths are drawn from the incidents.

Built from a curated set of 32 incidents, not a measure of how often things happen.

Tier 0Tier 1Tier 2Tier 3Defense that closes the stepDefense that only lowers the oddsReal incidents

Submit malicious code

T0

Get attacker-controlled code onto a branch that gets built and shipped.

Way inGitHub accessTechniqueGoalStolen identity3 ways inDeveloper endpoint1 way inSupply chain and CI/CD3 ways inInsider2 ways inWorkflows: WriteContents: WritePull requests: WriteAdministration: WriteAdministration: Write (org)Push directly, without review6Approve your own PR from asecond accountHave a workflow approve the PRPush more commits afterapprovalApprove someone else's PR,then push to itHide it in a change nobody canreviewUse a trusted colleague'saccountTrick or outlast the reviewerBypass or switch off the rulesSubmitmalicious code

Push directly, without review

Attack

There's no branch protection on the target branch, or it doesn't require a review.

Defense

Require a pull request with approvals, status checks and signed commits, and don't let admins bypass it. Leave force pushes and deletions off.

Incidents by path

Each incident, newest first, with the way in and what the attacker went after.

IncidentWay inWent after
ChainDrop: a hijacked maintainer account publishes through trusted publishing
August 2026
GitHub's internal repositories taken through a VS Code extension
May 2026
Actions cache poisoning (Angular, TanStack)
Ongoing
Megalodon: mass backdooring of CI workflows
May 2026
TeamPCP tag force-overwrite campaign
March – April 2026
prt-scan: automated pull_request_target attacks
March – April 2026
CVE-2026-3854: push-option metadata RCE
Fixed 2026
hackerbot-claw autonomous agent RCE
February 2026
Clinejection: prompt injection in an AI issue triage workflow
February 2026
GlassWorm: editor extensions that steal GitHub tokens and force-push
October 2025 – March 2026
CVE-2025-11578: pre-receive hook symlink escape
Fixed 2025
GhostAction
September 2025, returned 2026
Shai-Hulud self-propagating npm worm
September 2025 / November 2025 / May 2026
Nx "s1ngularity"
August 2025
Toptal repo-visibility flip and wiper
July 2025
GitHub MCP / agentic token breadth
May 2025 – ongoing
CVE-2025-3509: pre-receive hook RCE via port reuse
Fixed 2025
OAuth consent phishing at scale
2025–2026
tj-actions/changed-files supply-chain compromise (CVE-2025-30066)
March 2025
Salesloft Drift GitHub → AWS pivot
March – June 2025
Ultralytics build cache poisoning
December 2024
ArtiPACKED artifact token leakage
August 2024
CVE-2024-4985: SAML auth bypass
Fixed 2024
CVE-2024-1374: Management Console template injection
Fixed 2024
Mercedes-Benz source code exposure
January 2024
Dependabot impersonation
July 2023
Self-hosted runner takeovers (PyTorch and others)
2023–2024
CircleCI session-cookie theft
December 2022 – January 2023
Heroku / Travis CI OAuth token theft
April 2022
GitHub App installation token abuse
Ongoing
CVE-2022-23732: Management Console path traversal / CSRF bypass
Fixed 2022
"Pwn requests": pull_request_target & workflow_run
Ongoing

Sources