Supply Chain Attacks: When Your Dependencies Turn on You
The SolarWinds hack showed the world: your dependencies are a threat vector.
SolarWinds, Log4Shell, event-stream, ua-parser-js. Supply chain attacks are increasing in frequency and severity.
How they work
Attacker compromises a popular package or update mechanism. Thousands of downstream projects automatically pull in the malicious code.
Why they're devastating
- They affect every consumer of the package
- They're hard to detect (trusted code from trusted sources)
- The blast radius is enormous
Protection strategies
- Pin dependency versions (don't use wildcards)
- Use lock files (package-lock.json, yarn.lock)
- Audit dependencies regularly (npm audit, Snyk)
- Use SBOMs (Software Bill of Materials)
- Implement code signing for your own packages
- Monitor for typosquatting