Skip to main content
Mallory
← Back to News
package-repository-poisoningdependency-confusion-typosquatcredential-stealer-activityloader-delivery-mechanism

Malicious npm Packages Distribute PyInstaller Infostealer via Typosquatting and Fake CAPTCHA

Supply Chain Risk · 4 sources · Updated 5mo ago · First seen Oct 30, 2025

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.

Why it matters

Impact assessment

This is a software supply-chain compromise affecting developers and build environments that installed ten typosquatted npm packages impersonating widely used JavaScript libraries. Impact is high because the payload is a cross-platform infostealer for Windows, Linux, and macOS that can steal credentials, session cookies, SSH keys, cloud configuration files, API tokens, and secrets from OS keyrings, enabling follow-on access to source code, cloud consoles, email, VPNs, and internal systems.

Exposure appears broad rather than narrowly targeted: the packages were published to the public npm registry on 2025-07-04 and accumulated nearly 10,000 downloads over roughly four months. There is confirmed malicious execution in the wild via npm postinstall hooks, and the packages reportedly remained available at the time of reporting.

Affected populations

  • Developers, DevOps engineers, CI/CD runners, and build servers using npm
  • Organizations with JavaScript/Node.js development workflows
  • Enterprises whose developer endpoints store browser credentials, SSH keys, cloud tokens, or VPN credentials

Severity and business risk

  • Credential theft from browsers, OS keyrings, SSH key locations, and token stores
  • Potential compromise of code repositories, cloud environments, corporate email, file storage, VPN access, and production databases
  • Risk of downstream operational disruption, unauthorized code changes, cloud abuse, data theft, and reputational damage

Scope and exploitation status

  • Public npm ecosystem exposure through typosquatted packages
  • More than 9,900 to nearly 10,000 downloads reported across sources
  • Confirmed in-the-wild malicious package distribution and automated execution on install

Key entities and affected package names

  • Researcher/entity: Socket, including researcher Kush Pandya
  • Registry: npm
  • Malicious packages: deezcord.js, dezcord.js, dizcordjs, etherdjs, ethesjs, ethetsjs, nodemonjs, react-router-dom.js, typescriptjs, zustand.js
  • Impersonated projects: TypeScript, discord.js, ethers.js, nodemon, react-router-dom, zustand
Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Oct 29, 2025
  1. Oct 29, 20251y ago

    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.

  2. Oct 29, 20251y ago

    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.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Observables

2 linked

Indicator values are masked on this page. See the values in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.