What's in your dependencies? Supply chain attacks on Python projects
summary
Shows concrete attacks and defenses: GitHub Actions injection publishes crypto miners (analytics case, active ~12 hours); maintainer phishing bypasses 2FA and injects malware into releases (num2words, July); a high‑download LLM package with PTH startup execution was downloaded ~100k times in hours from a project with 3 million downloads/day and stole SSH keys, cloud creds and wallets. Defenses that actually help are short‑lived PyPI tokens, pinning versions and hashes, dependency cooldowns, CI permission audits, credential rotation and pattern/LLM diff scanners.
AI-written summary · about
chapters (14)
- 0:00Introduction to supply chain attacks
- 1:30How supply chain attacks work
- 3:18Attacker motivations and methods
- 6:05Typosquatting examples
- 7:33Case study: Malicious analytics package
- 9:25Case study: Num2words phishing attack
- 12:17Case study: LightLM supply chain breach
- 15:53Common misconceptions about security
- 18:06Defense: Dependency cooldown
- 20:13Tools for dependency security
- 22:43AI as attack vector and tool
- 24:48Tips for managing dependencies
- 27:59Summary and final advice
- 28:23Q&A session
