Urgent.News

What's breaking now, across thousands of outlets.

Tech

The npm Worm That Brought Its Own Interpreter

On November 24, 2025, researchers identified a wave of backdoored npm packages that had been downloading a second JavaScript runtime during install. Not a shell script, not a compiled binary from a CDN. A whole other interpreter. A file named setup_bun.js detected the host OS and architecture, downloaded or located the Bun runtime, and cached the binary in ~/.cache or the platform equivalent.…

On November 24, 2025, a wave of backdoored npm packages was identified that downloaded a second JavaScript runtime during installation. The malicious runtime, named Bun, was hidden within files called setup_bun.js and bun_environment.js, which were cached on the host system. The compromised packages appeared under various scopes, including @zapier, @asyncapi, @postman, @posthog, and @ensdomains.

The worm installed Bun likely to evade standard Node.js monitoring, and exfiltration of stolen data peaked early on the same day the campaign was first observed. No clear start date was provided, but CISA had published an alert on an earlier wave on September 23, 2025. The attacker injected a preinstall hook that invoked setup_bun.js during the npm install process.

The payload was designed to run quietly, suppressing all stdout and stderr, and used TruffleHog to actively hunt for secrets on the host. The stolen data was sent to repositories created in the victim's own GitHub account, with names matching a specific pattern and a fixed description string. The worm also used stolen npm tokens to fetch and inject malicious files into the maintainer's packages, bumping the patch version before republishing.

The payload executed during the preinstall phase, before tests or security checks, making it difficult for many teams to detect the malicious activity. CISA recommends setting ignore-scripts=true in .npmrc to prevent potentially malicious scripts from executing during npm install, but few teams have adopted this control due to compatibility costs.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Tuesday 1 September →