Malicious npm Packages Distribute PyInstaller Infostealer via Typosquatting and Fake CAPTCHA
Ten malicious packages were discovered on the npm registry, masquerading as popular JavaScript libraries through typosquatting techniques. These packages, which included names like typescriptjs, deezcord.js, and react-router-dom.js, were designed to trick developers into downloading them by mimicking legitimate projects. Upon installation, a postinstall script executed a heavily obfuscated loader that displayed a fake CAPTCHA in the terminal to appear legitimate, then downloaded and ran a 24MB infostealer built with PyInstaller. This malware targeted Windows, Linux, and macOS systems, stealing credentials from system keyrings, browsers, and authentication services. The campaign went undetected for an extended period, resulting in nearly 10,000 downloads before being reported to npm, with the malicious packages still available at the time of reporting.
The infostealer's deployment leveraged multiple layers of obfuscation, including self-decoding wrappers, XOR decryption, and control-flow obfuscation, to evade static analysis and detection. The attack highlights the ongoing risks posed by supply chain threats in open-source ecosystems, particularly through typosquatting and social engineering tactics. Security researchers emphasized the importance of vigilance when installing npm packages and recommended enhanced scrutiny of package names and sources to mitigate the risk of inadvertently installing malicious software.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
2 events from the most recent confirmed update back to the earliest known activity.
Researchers disclose cross-platform npm infostealer campaign details
Security reporting revealed that the malicious packages fetched a PyInstaller-based infostealer and in some cases used fake CAPTCHA-style social engineering to trigger execution. The disclosures identified the campaign as a cross-platform supply-chain threat affecting developer environments.
Ten typosquatted npm packages are published with credential-stealing code
Attackers uploaded 10 malicious npm packages masquerading as legitimate libraries in a typosquatting campaign. The packages targeted developers on Windows, macOS, and Linux and were designed to steal credentials and other sensitive data.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
4 references tracked. Mallory keeps watching after this page renders.
Typo hackers sneak cross-platform credential stealer into 10 npm packages
csoonline.com
Open sourcenpm Typosquat Campaign: 10 Malicious Packages Deliver PyInstaller Infostealer via Fake CAPTCHA
securityonline.info
Open source10 npm Packages Caught Stealing Developer Credentials on Windows, macOS, and Linux
thehackernews.com
Open sourceMalicious NPM packages fetch infostealer for Windows, Linux, macOS
bleepingcomputer.com
Open sourceSee the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


