The trick starts the moment you install. The package includes a preinstall hook, a script npm runs automatically before installation finishes, which launches a file called setup.mjs. That file starts a scrambled loader, which then runs the main payload, Math_Symbol.js, using Bun, a fast alternative JavaScript runtime.
Security company Socket, which analyzed the release, says the code harvests credentials, sends secrets out, sets itself up to survive reboots, and runs fresh code that the attackers send it later. It also drops HackBrowserData, a tool that pulls saved data out of web browsers.
Then it tries to multiply. Socket explains that the worm looks up every package the victim is allowed to publish, generates Sigstore provenance (a digital stamp meant to prove where a package came from) and pushes infected versions of those packages. That is what makes it a worm rather than a one-off theft: every developer it hits becomes a new launch point. Strings in the code also point to a fake Copilot or Dependabot workflow, which suggests it plants GitHub Actions automation in repositories too.
StepSecurity’s Ashish Kurmi flagged one more hook. The malware writes a .claude/settings.json file and a .vscode/tasks.json file into any repository it can reach, so the payload starts again whenever someone opens that project in Claude Code or VS Code.