Unearthing Malicious And Risky OpenSource Packages Using Packj
summary
Automated vetting tool PACKJ detects risky metadata, performs static and runtime tracing, and flags sensitive APIs; it runs as a CLI and cloud service at package.dev. The system finds typosquats, dependency-confusion builds, account-hijackable packages (scans show ~2,800 expired-email domains), and injected remote-code-execution patterns; examples include a CTX compromise (22k weekly downloads, 7k installs in days), colors/faker sabotage (millions of weekly downloads), and ~40 reported malicious packages taken down.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 0:53Open-source software is everywhere
- 2:17Package Managers
- 5:10Package Installation today - dependency hell
- 7:00Software Supply Chain Attack
- 8:28Attack Techniques: Typosquatting
- 11:43Technique: Social Engineering
- 12:31Technique: Dependency Confusion
- 13:50Technique: Account Hijacking
- 14:39How do we defend against these attacks?
- 17:00Manual Vetting is infeasible
- 18:43Vanity Stats are not enough
- 19:49Packj: a dev-friendly vetting tool
- 22:00Deep Metadata Analysis
- 24:28Rigorous API Analysis
- 25:11Runtime Analysis
- 25:55Remote Code Execution Attack
- 26:54Dependency Confusion Attack - Feb 2021
- 31:14Colors and Faker Attack - Jan 2022
