Hacking GitHub Actions
summary
Describes concrete GitHub Actions attacks: pull_request_target with write token lets a fork escalate to write access; cache poisoning via shared cache corrupts restored dependencies; tag vs branch hijack lets a branch shadow a release tag; artifacts become readable artifacts available before workflow end enabling quick secret grabs. Covers exploit techniques (memory dumps, reverse shells on runners, dependency substitution, impostor commits) and mitigations: use pull_request events, internal package mirrors, strict allowlists, least privilege, and short-lived purpose-built tokens.
AI-written summary · about
chapters (18)
- 0:00Introduction and welcome
- 1:08Git internals overview
- 3:21Forks and references in GitHub
- 4:23Secrets hierarchy in GitHub
- 5:28Actions and workflows basics
- 6:55Supply chain compromise methods
- 8:47Dependency chain risks
- 9:50GitHub token access levels
- 10:54Cache poisoning attacks
- 12:40Case study: Team PCP incident
- 13:21Tag and branch confusion
- 15:13Impostor commits in actions
- 16:40Unicode and hash spoofing
- 17:23Extracting secrets from workflows
- 19:54Memory dump attacks
- 21:17Self-hosted runner risks
- 22:01Key takeaways and hardening
- 24:34Q&A session
