> status: mostly fine. patch anyway.practical AI security · est. 2026

Brief · Builders

A Claude Code project starter on npm shipped malware for most of a day

By alkizz ·

GitHub flagged three versions of create-ai-agent-setup as malware on Nov 25. It's an npm package that describes itself as a "CLI to create production-ready projects with Claude Code AI agent configuration." The bad versions are 2.0.0-alpha.0, 2.0.0 and 2.1.0, all published that day, and GitHub's advisory, GHSA-4c46-v99r-6h9r, which OSV carries as MAL-2026-20623, lists no fixed version. Its advice is blunt: "Any computer that has this package installed or running should be considered fully compromised."

What's known

The package has been on npm since Apr 28, 2026, with 1.x releases through 1.6.1 on Jun 2. Then nothing until Nov 25, when 2.0.0-alpha.0 went up at 5:12 AM ET, 2.0.0 at 5:47 AM ET and 2.1.0 at 9:34 AM ET. GitHub's advisory followed at 4:43 PM ET, about eleven and a half hours after the first bad version. The 2.x versions are gone from the registry now, and latest points back to 1.6.1. npm's public download counter shows 898 downloads on Nov 25, against single digits on most days the week before, though that counter also counts mirrors and automated scanners.

Neither GitHub nor OSV says what the malware does. LPM Firewall, a third-party scanner that blocks flagged packages, says there's no install hook. The payload, per LPM, is an obfuscated loader in the templates/frontend-vite/postcss.config.js file the tool copies into new Vite projects, so it runs when that project's tooling loads its PostCSS config, not when you install the package. LPM says what the hidden code does after that "could not be established." I couldn't check any of that myself, because npm no longer serves the bad versions. Nobody has said whether the author published 2.x or someone else got hold of the account.

Why it's an agent-stack problem

A Claude Code project starter is exactly the kind of thing you run once, in a fresh folder, without reading it. It writes config files your agent will trust from then on, and a frontend template's build config runs on every dev server start. That's the agent config files are code problem with a build step attached.

What to do

Sources

← All briefs