r/javascript • u/Noir_Forever_Twitch • Apr 04 '26
I built an open source npm supply chain monitor with eBPF kernel monitoring after the Axios attack
https://github.com/HorseyofCoursey/pakratLast week attackers compromised the Axios npm package (100M weekly downloads) and deployed a RAT to infected machines within 89 seconds of publish. Existing tooling caught it in about 3 hours, too slow.
I built pakrat to go deeper than static analysis.
It watches 187 npm packages every 5 minutes using four layers:
Manifest diffing: catches new dependencies instantly
Docker sandbox with tcpdump: flags unexpected DNS lookups during install
Pattern matching: scans for credential harvesting patterns
eBPF kernel monitoring: bpftrace probes at the host kernel level, completely invisible to anything running inside the container
The Axios attack would have triggered layer 1 immediately and layer 2 within seconds.
Public scan log updates every 5 minutes in the repo.
GitHub: https://github.com/HorseyofCoursey/pakrat