Hackers backdoor Jscrambler npm package with infostealer malware

A Malicious npm Package Leaves Almost 1,500 Developers Exposed to InfoStealing Malware

In a worrying incident that highlights the ongoing threats to software development and distribution, hackers have managed to compromise a popular npm package called Jscrambler. The malicious version of the package was published for almost two hours, during which time it was downloaded over 1,400 times. This has left many developers vulnerable to information-stealing malware.

Jscrambler is a commercial platform used by web and mobile application developers to protect their JavaScript code from reverse engineering and tampering. The company’s npm package, with its 17,000 weekly downloads, allows app developers to upload their JavaScript to Jscrambler’s service for protection against real-time modifications like injecting malicious code.

The malicious version of the Jscrambler package was published by a threat actor who managed to exploit compromised npm publishing credentials. This allowed them to inject an infostealer malware into the package, which targeted sensitive data such as source code, developer credentials, cloud credentials, and even cryptocurrency wallets. The malware used strong encryption to make it difficult for security researchers to reverse-engineer the code.

Fortunately, Jscrambler’s quick response meant that the malicious package was deprecated within two hours of its publication, and a safe version (8.22) was released shortly after. However, the incident highlights the risks associated with software development and distribution through npm. The affected package had four other Jscrambler packages as dependencies, which have also been deprecated and replaced with new versions.

The incident has significant implications for developers who may have used the malicious version of the Jscrambler package. According to Jscrambler, these developers should treat their environments as compromised and take immediate action to protect themselves. This includes rotating all secrets, restoring from safe backups, and ensuring that they are using the latest version of the product.

The incident serves as a reminder of the importance of security in software development and distribution. Developers need to be vigilant and take proactive steps to ensure that their environments and dependencies are secure. By doing so, they can prevent such incidents from happening in the future and protect themselves against information-stealing malware.

In light of this incident, developers should prioritize testing every layer of their environment before attackers do. This includes using breach and attack simulation tests to validate their SIEM and EDR rules, as highlighted by the Picus whitepaper. By staying one step ahead of potential threats, developers can ensure that their environments remain secure and protected against information-stealing malware.


Source: Bleeping Computer — 2026-07-13