Field Notes
THE POISONED WELL
31 March 2026
We ran npm install. Down the pipe came axios, one of the most trusted libraries in the JavaScript world. Hundreds of thousands of projects drink from it every day. Nobody checks the water.
You don’t think twice about axios. We thought twice.
Something felt off. The package hash didn’t match. We checked it against the registry, and our suspicion became a certainty: the version we’d pulled wasn’t the one that had been published. Somewhere between the registry and our machine, or inside the registry itself, someone had swapped the bottle while the label stayed the same.
This was a supply chain attack. Not a slide at a conference or a thought experiment. It was live, on our developer machine, on a quiet Tuesday.
What We Did
Then we did something we’d never imagined doing. We turned an AI agent loose on the system as an antivirus. We fed it the CVE, told it what the RAT was supposed to do, and sent it hunting through the machine for the intruder.
Thankfully Nothing from that install touched the client’s server. We pulled the full dependency tree and checked hashes against known-good versions. We documented everything — package name, version, hash, timestamp, registry response.
Then we did what you always do, however clean the scan comes back. We wiped the machine and rotated every key it had ever touched. A machine that’s been visited doesn’t get to vouch for itself.
Most developers know this in theory. Few live it.
- Lock your dependency versions.
package-lock.jsonexists for a reason. Use it. - Verify hashes on anything critical. Tools like
npm auditare a start, not a finish. - Treat your build environment as hostile. It might be.
- Know what your dependencies actually do.
axiosmakes HTTP requests. If your version of axios is also doing something else, that is worth knowing.
We got lucky. Or rather: we were paying attention. On a quiet Tuesday, that was enough.