All Stories
PyPIsystem-compromised

The Agent Plugin That Read Our Cloud Keys First

by quietparadeNov 13, 2026
Share storyHN

A RAG prototype, a Friday deadline, and a tutorial that listed langchain-agent-tools-plus in its requirements. The name was one character from the package we meant to use. The wheel passed our smoke test because it genuinely registered tools.

90 seconds

Importing it started a thread. That thread walked ~/.aws, ~/.config/gcloud and .ssh, then encoded everything into DNS TXT lookups. Our egress filter allowed DNS, obviously.

Detection

Our SRE saw a spike in resolver traffic to one authoritative nameserver — 4,000 queries in two minutes from a build box. That was the only signal. No error, no crashed process, no weird CPU.

Fallout

Two AWS access keys and a service-account key. The attacker called ListBuckets on four accounts before we rotated. One bucket was public: backups of a client's staging database.

The lesson nobody enjoys

A typo in a dependency name is a supply-chain incident waiting for a trigger. We pin exact versions now, verify spellings against official docs, and treat any package that spawns threads at import as hostile until proven otherwise.

Involved package: langchain-agent-tools-plusCheck in scanner →
Was this story helpful?