Compromised jscrambler npm Package Delivers Cross-Platform Infostealer
Version 8.14.0 of the jscrambler npm package was compromised, silently installing and executing a native infostealer on Windows, macOS, and Linux systems.

Developers using the popular jscrambler npm package are at risk following the discovery of a malicious preinstall hook embedded within version 8.14.0. Published on July 11, 2026, this compromised release silently drops and executes a native infostealer, compiled for Windows, macOS, and Linux, directly upon installation.
The insidious nature of this attack lies in its stealth and automation. Unlike typical malware that requires explicit user interaction or command-line execution, the malicious code within jscrambler 8.14.0 runs automatically as part of the package's installation process. This means that simply installing or updating to this specific version is sufficient to trigger the infostealer, bypassing many common security precautions that rely on user awareness or explicit execution.
Security researchers at Socket were among the first to flag the suspicious activity, identifying the compromised release mere minutes after it appeared on the npm registry. The infostealer's cross-platform compatibility is a significant concern, as it can affect a wide range of development environments and target sensitive data regardless of the operating system.
While the exact data targeted by this specific infostealer has not been fully detailed, such malware typically aims to steal credentials, API keys, cryptocurrency wallet information, and other sensitive data stored on a developer's machine. The implications for supply chain attacks are substantial, as compromised developer tools can serve as a gateway for attackers to infiltrate broader development pipelines and potentially compromise downstream applications or services.
The jscrambler team has not yet released a public statement regarding the incident, and it remains unclear how the package was compromised or how long the malicious version was available. However, the swift detection by Socket highlights the importance of continuous monitoring of software supply chains and the rapid response capabilities of security firms.
This incident serves as a stark reminder of the persistent threats within the open-source ecosystem. Developers and organizations relying on npm packages must exercise due diligence, including verifying package integrity, using lock files to prevent unexpected updates, and employing security scanning tools to detect malicious code before it impacts their systems.
As a precautionary measure, developers are strongly advised to immediately check their installed versions of jscrambler and uninstall or downgrade from version 8.14.0 if it is present. Further investigation into the scope of the compromise and the specific capabilities of the infostealer is ongoing.
The malicious jscrambler npm package versions, ranging from 8.14.0 to 8.20.0, were found to inject a Rust-based malware that targeted a wide array of developer and cloud credentials, including API keys for AI coding tools and major cloud platforms like AWS, Azure, and GCP. This new article also details how the attackers evolved their technique, moving from a preinstall hook to injecting the loader directly into the package's main JavaScript files in later versions (8.18.0 onwards), broadening the attack surface beyond just the installation phase.
The malicious Jscrambler npm package, affecting versions 8.14, 8.16, 8.17, and 8.20, contained an infostealer that executed during the 'preinstall' hook. Application-security company Socket identified that the malware targeted a wide array of sensitive data, including developer credentials, cloud secrets, cryptocurrency wallets, and browser data, employing strong ChaCha20-Poly1305 encryption for obfuscation.
The attackers evolved their tactics starting with version 8.18.0, shifting the malware's delivery method from an install-time script to a self-executing function activated only when the package was imported or its command-line interface was run. This change was a deliberate evasion technique to bypass scanners that only inspect pre-install scripts and to ensure the malware persisted even if the package was not fully integrated into a project.
The supply chain attack on Jscrambler's NPM packages, which delivered a cross-platform credential stealer, has been further detailed. The malicious code was injected via compromised NPM publishing credentials, with multiple versions (8.16, 8.17, 8.18, and 8.20) pushed before a clean version (8.22) was released. The attack also impacted dependent packages like Jscrambler-webpack-plugin, gulp-Jscrambler, grunt-Jscrambler, and Jscrambler-metro-plugin. The malware, written in Rust, targets a wide array of sensitive information including cryptocurrency wallets, AI coding assistant configurations, and cloud credentials, and attempts to achieve privilege escalation and persistence.