chiprook
← Security
SecurityOctober 13, 2026, 17:53

npm worms hide malicious hooks in AI agent config files

In May and June 2026, two waves of npm worms, Mini Shai-Hulud and Miasma, infected repositories via hooks in .claude/settings.json and .vscode/tasks.json. The payload ran when a project was opened in Claude Code, Gemini CLI, VS Code or Cursor, and npm uninstall did not remove it.

npm worms hide malicious hooks in AI agent config files
#Npm#Claude#GitHub#Microsoft
Read next
Security

Shai-Hulud worm in Tensorlake npm SDK steals AI agent credentials

Security

Six Angular typosquats with postinstall hook pulled from npm

Security

New Shai-Hulud worm scans 469 credential paths

Security

Shai-Hulud npm worm ran code just by opening a folder