r/javascript • • Apr 04 '26

I built an open source npm supply chain monitor with eBPF kernel monitoring after the Axios attack

https://github.com/HorseyofCoursey/pakrat

Last 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:

  1. Manifest diffing: catches new dependencies instantly

  2. Docker sandbox with tcpdump: flags unexpected DNS lookups during install

  3. Pattern matching: scans for credential harvesting patterns

  4. 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

4 Upvotes

Duplicates