Brief · Builders
A Claude Code project starter on npm shipped malware for most of a day
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
-
Check whether you ran a 2.x version.
- Why: Only 2.0.0-alpha.0, 2.0.0 and 2.1.0 are flagged, and they were only on npm on Nov 25.
- How: Search your lockfiles and npm cache for
create-ai-agent-setup, and your shell history fornpx create-ai-agent-setupornpm create ai-agent-setupfrom Nov 25. In any project you created that day, look for apostcss.config.jsthat's far longer than a few lines.
-
If you did, treat the machine as compromised.
- Why: That's GitHub's advice, and nobody has published what the payload does.
- How: From a different, clean computer, rotate every key and token the machine held, including AI provider keys, GitHub and npm tokens, cloud credentials and SSH keys (item 1 of the Builder's Checklist). Delete the generated projects and rebuild the machine, because GitHub says removing the package won't reliably remove what it installed.
-
Pin your agent tooling and let new releases age.
- Why: The bad versions were up for a matter of hours, so even a few days' wait would have skipped them.
- How: Pin exact versions of scaffolders and agent tools, run them as
npx package@versioninstead of the bare name, and turn on a minimum release age if your package manager has one (item 22). Vet a project starter the way you'd vet an MCP server (item 12).
-
Control what gets installed on work machines.
- Why: One
npxcommand on a work laptop is all this needed. - How: Route installs through a registry proxy or an allowlist, and treat agent starters and plugins like any other software install (item 7 of the Business Checklist).
- Why: One
Want the next one?
One email, weekly-ish. The week's briefs, how worried to be, and what to do about it. No doom.
Subscribe on Beehiiv ↗Free. Opens Beehiiv in a new tab. Unsubscribe whenever, I won't be offended.