~/talk

Abusing GitHub for fun and profit: Actions and Codespaces Security

Talkat NDC Oslo 2023 · 2023-05-22..05-26· [security, devops-and-delivery]
links:none on file
links:none on file
slides:none on file

Demonstrates concrete abuses: GitHub Codespaces gives two free instances and ~60 core hours per month with 30‑day retention and a 40‑minute idle timeout, and its devcontainer.json postStart hooks plus public port forwarding to preview.app.github.dev let attackers spin ephemeral file servers and host malware; defenders find a Rust infostealer exfiltrating to Codespaces and see xmrig miners on Windows, Linux and macOS runners, netcat reverse shells and nmap scans, and over 100+ repos running miners using xmrig and third‑party actions; checks to add: scan container images, restrict tokens, and disable untrusted Actions.

AI-written summary · about

  1. 0:00Intro
  2. 5:08Infection Chain of GitHub/Netlify Abuse
  3. 13:34Automate w/ Dev-Containers & GitHub CLI
  4. 15:11Attacker's Dev-Container Config
  5. 18:32Malware Abusing Codespaces
  6. 21:46Actions Overview
  7. 26:19GHA Marketplace
  8. 30:44Abusing Windows Runners pt 2
  9. 32:22List of repos with the SAME code!
  10. 33:42Abusing Linux Runners
  11. 35:13Abusing macOS Runners
  12. 41:30Run nmap inside the Azure network
  13. 43:02Reverse shell from the Runner
  14. 44:13Pivot attacks using Runners
  15. 45:02Malicious GitHub Actions
  16. 47:10GHA Countermeasures
  17. 50:06Codespaces Recommendations
~/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.