~/talk

Pwning the CI (GitHub Actions Edition)

Talkat RSA Conference 2023 · 2023-04-24..04-27· [security, devops-and-delivery]
links:none on file
slides:none on file

A malicious workflow file (pwn.yml) is submitted as a PR and — if auto‑approved or run by a first‑time contributor — executes shell commands that echo environment variables, curl repository secrets offsite, open a reverse shell (netcat), abuse the Docker socket to escalate to root on self-hosted runners, and delete the PR while spoofing commits to hide activity. The demo succeeds in extracting tokens and a persistent shell. Defenses shown: strict branch protection, signed commits, CODEOWNERS, least‑privilege tokens/OpenID Connect, rotating credentials and using tools like OpenSSF scorecard and checkov to detect risky patterns and GitHub token abuse.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:54Why this talk exists
  3. 4:44GitHub Actions workflows basics
  4. 8:56First-time contributor risks
  5. 13:32GitHub token abuse
  6. 18:46Combining attacks in a demo
  7. 28:16Preventing CI/CD attacks
  8. 32:47Tools for securing workflows
  9. 33:33Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.