Beyond the Commit: Weaponizing and Hardening GitHub Actions
summary
Shows how GitHub Actions get weaponized and how to harden them with concrete fixes: attackers mutate tags to push malicious actions (example tj-actions/changed-files (23,000+ repos)), pull_request_target plus unsanitized input yields script injection and RCE that steals tokens, and multi‑stage Nx/S1ngularity malware hunts secrets and worms packages. Recommended controls include pin actions to Git SHA, require least‑privilege GitHub token scopes and OIDC short‑lived cloud creds, avoid cache on release jobs, use ThisMore scanner and OpenSSF Scorecard and impose a Dependabot 7‑day cooldown.
AI-written summary · about
chapters (15)
- 0:00GitHub Actions security risks
- 3:02Software supply chain
- 8:18Why GitHub Actions is targeted
- 13:31Script injection in workflows
- 16:22Danger of PR target workflows
- 21:17Cache misuse risks
- 23:05Minimize token permissions
- 26:13OIDC for secrets
- 29:45Shahulu attack deep dive
- 34:03Thismore automated hardening
- 46:00AI-assisted workflow hardening
- 48:09OpenSSF Scorecard
- 50:18AI agents and threats
- 53:14Self-hosted runners
- 54:17Summary and next steps
related talks
23mBreaking the Build: How Attackers Abuse GitHub Actions
56mHow to use GitHub Actions with Security in mind
32mHacker Traction Through GitHub Actions: Is Your (Open Source) Project Safe?
15mGitHub Actions: a time bomb for supply chain security
42mProtecting CI/CD from malicious deploys
42mProtecting Your GitHub from Supply Chain Attacks
55mGitHub Actions: Vulnerabilities, Attacks, And Counter-Measures
52mGitHub Actions Security: From CI Nightmare to Supply Chain Sentinel
