Hacker Traction Through GitHub Actions: Is Your (Open Source) Project Safe?
summary
Research identifies concrete attack paths against GitHub Actions: repo jacking lets an attacker recreate moved action repositories because actions download not clone; a scripted Neo4j dependency crawl of ~7,000 Action-using repos finds 175 trivially exploitable cases, one chain infects 18 repos and extracts secrets from 72 downstream projects, and an upstream compromise reaches ~12,000 packages; tools include curl/webhooks, Docker privilege escalation, force-updated tags and a worm that crawls downstream which successfully runs and steals tokens unless actions are pinned or permissions set to read-only GitHub Actions token rewrite.
AI-written summary · about
chapters (25)
- 0:00Introduction to GitHub Actions security risks
- 1:45What are GitHub Actions and why they matter
- 2:49Research origins command injection vulnerabilities
- 3:54Repo jacking attack vectors in GitHub Actions
- 5:21NPM email hijacking and supply chain risks
- 6:24Command injection in GitHub workflows
- 8:10Dependency confusion and poison pipeline attacks
- 8:54Self-approved workflows and security defaults
- 10:19GitHub token rewrite capabilities before 2023
- 11:46Reverse shell execution on GitHub Runners
- 12:51Dangers of self-hosted GitHub Runners
- 14:54Extending reach through dependency chains
- 15:57Building a dependency attack graph with Neo4j
- 17:00Mass exploitation of top GitHub repositories
- 18:24Creating a GitHub Actions worm for secret theft
- 20:09Live demo of the worm attack in action
- 22:14Why this attack worked and how to prevent it
- 23:58Securing workflows with GitHub Actions best practices
- 24:40GitHub security lab and open source tools
- 25:22Summary and open source countermeasures
- 25:44Q&A session on Docker privilege escalation
- 27:10Limiting outbound traffic from GitHub Runners
- 28:35Docker command privilege escalation explained
- 29:38Statistics on trusted GitHub Actions usage
- 31:22Final thoughts on open source security
related talks
17mIs My (Open Source) Project Safe?
23mBreaking the Build: How Attackers Abuse GitHub Actions
55mBeyond the Commit: Weaponizing and Hardening GitHub Actions
55mGitHub Actions: Vulnerabilities, Attacks, And Counter-Measures
56mHow to use GitHub Actions with Security in mind
57mGitHub Actions: Vulnerabilities, Attacks, and Counter-measures
15mGitHub Actions: a time bomb for supply chain security
42mProtecting Your GitHub from Supply Chain Attacks
