Skip to main content
MalwarePublished

40 Fake npm Packages. WSL Was the Real Target.

Source Reddit Cybersecurity

0

Discussion

A typosquatting campaign involved 40 fake npm packages impersonating popular libraries such as chalk, axios, lodash, react, typescript, and commander. The malicious install scripts detected Windows Subsystem for Linux (WSL) environments and used this as a vector to execute native payloads on the underlying Windows host. These payloads targeted cryptocurrency wallets, Chromium browser data, and Telegram sessions. Although the npm packages were removed after about 84 minutes, the payload hosted on GitHub remained active for approximately 39 hours, continuing the attack beyond the removal of the delivery mechanism.

r/cybersecurity (opens in a new tab)u/cloudsek-info0 points0 comments

Forty npm packages. About 84 minutes on the registry. And a payload that kept going after the packages were gone.
CloudSEK traced BRIDGEHEAD, a typosquatting campaign impersonating chalk, axios, lodash, react, typescript and commander.
The clever bit: the install script detects WSL and uses it as a path into the underlying Windows host, where it launches a native payload targeting crypto wallets, Chromium browser data and Telegram sessions.
The GitHub-hosted payload stayed live for roughly 39 hours after the npm packages were taken down.
So the npm takedown removed the delivery layer, not the weapon.
Full technical breakdown, IOCs and attack chain:
https://www.cloudsek.com/blog/bridgehead-npm-typosquatting-wsl-windows-crypto-wallet-stealer
Would be interested to hear how many teams actually monitor the WSL → Windows boundary as part of their developer security controls.

References

Community reviews

Loading reviews…