Attacking Open Source using
Abandoned Resources
Speakeasy JS - Feb 05, 2021
Hi, I’m Adam
@adam_baldwin
evilpacket
Discovery
Abandoned Resource Attacks
Fun Facts
Disclosure
“I wonder if…”
“Have you tried it yet”
Discovery
https:/
/blog.securityinnovation.com/repo-jacking-exploiting-the-dependency-supply-chain
APP
Dependency
express@4.3.1
npm Registry
Background
APP
Dependency
Dependency
express@4.3.1
npm Registry
https:/
/example.com/pkg-1.0.0.tgz
File
Background
APP
Dependency
Dependency
Dependency
express@4.3.1
npm Registry
https:/
/example.com/pkg-1.0.0.tgz
File
github:evilpacket/beep-boop#beta
GitHub
Repository
Background
Attack Overview
npm cli GitHub
git clone evilpacket/beep-boop
github:evilpacket/beep-boop#beta
Attack Overview
npm cli GitHub
git clone evilpacket/beep-boop
redirect -> joemcpwnerson/beep-boop
github:evilpacket/beep-boop#beta
Attack Overview
npm cli GitHub
git clone evilpacket/beep-boop
redirect -> joemcpwnerson/beep-boop
Git clone joemcpwnerson/beep-boop
github:evilpacket/beep-boop#beta
Attack Overview
npm cli GitHub
git clone evilpacket/beep-boop
redirect -> joemcpwnerson/beep-boop
Git clone joemcpwnerson/beep-boop
Have a repo
github:evilpacket/beep-boop#beta
Attack Overview
npm cli GitHub
git clone evilpacket/beep-boop
redirect -> joemcpwnerson/beep-boop
Git clone joemcpwnerson/beep-boop
Have a repo
git checkout #beta
github:evilpacket/beep-boop#beta
Attack Overview
npm cli GitHub
git clone evilpacket/beep-boop
redirect -> joemcpwnerson/beep-boop
Git clone joemcpwnerson/beep-boop
Have a repo
git checkout #beta
github:evilpacket/beep-boop#beta
ATTACKER
Fun Facts ✨
✨ it’s just numbers
Vulnerable
Packages
https://evilpacket.net/2021/attacking-oss-using-abandoned-resources/
754
Vulnerable
Packages
https://evilpacket.net/2021/attacking-oss-using-abandoned-resources/
754
Download the list
Vulnerable
Package
Versions
https://evilpacket.net/2021/attacking-oss-using-abandoned-resources/
6,530
deps
vs
devDeps
https://evilpacket.net/2021/attacking-oss-using-abandoned-resources/
> 50%
⚠
Latest
Version
Vulnerable
https://evilpacket.net/2021/attacking-oss-using-abandoned-resources/
~ 56%
⚠
Disclosure
TL;DR - I’m sorry for the emails
Special thanks to a bunch of pesky Hackers, Open Source
Maintainers, GitHub Security, and the webpack-cli maintainers…
T.hanks!
adam_baldwin
evilpacket
Questions?

Attacking open source using abandoned resources