Skip to main content
Mallory
← Back to News
package-repository-poisoningcredential-stealer-activitydependency-confusion-typosquatbuild-pipeline-compromise

Malicious npm Packages Stealing Developer Credentials Across Platforms

Supply Chain Risk · 9 sources · Updated 5mo ago · First seen Oct 29, 2025

Malicious npm Packages Stealing Developer Credentials Across Platforms

Security researchers have uncovered multiple campaigns involving malicious npm packages designed to steal developer credentials and sensitive information from Windows, macOS, and Linux systems. In one operation, ten typosquatted packages impersonated popular libraries such as TypeScript, discord.js, ethers.js, and others, using sophisticated obfuscation, fake CAPTCHA prompts, and postinstall hooks to deploy an information stealer that harvested credentials from system keyrings, browsers, and authentication services. The malware executed in a new terminal window to evade detection and sent stolen data, including IP addresses, to external servers. Another large-scale campaign, dubbed 'PhantomRaven,' involved 126 npm packages and over 86,000 downloads, targeting authentication tokens, CI/CD secrets, and GitHub credentials. These packages leveraged remote dynamic dependencies to fetch and execute payloads during installation, profiling infected devices and exfiltrating secrets for potential supply chain attacks.

The attackers employed techniques such as slopsquatting, where AI-generated package recommendations led developers to install non-existent, malicious packages. Some packages impersonated tools from GitLab and Apache, and many remained available on npm at the time of reporting. The campaigns highlight the ongoing risks in the npm ecosystem, with attackers exploiting both user trust and platform weaknesses to compromise developer environments and CI/CD pipelines. Security experts warn that the theft of tokens and credentials could enable further attacks, including the introduction of malicious code into legitimate projects and broader supply chain compromises.

Why it matters

Impact assessment

PhantomRaven is a cross-platform software supply chain threat affecting developers, build systems, and organizations that consume npm packages on Windows, macOS, and Linux. The primary impact is credential theft from developer workstations and CI/CD environments, creating direct risk of source-code compromise, malicious package publication, cloud account abuse, and downstream supply chain intrusion.

The exposure is broad rather than narrowly targeted: 126 malicious npm packages were published, they accumulated more than 86,000 installs, and more than 80 packages reportedly remained live at disclosure. Researchers described active exploitation in the wild since at least August 2025.

Supporting facts

  • Affected populations:
    • Software developers using npm
    • CI/CD and build environments
    • Organizations relying on Node.js/npm dependencies
  • Affected platforms:
    • Windows
    • macOS
    • Linux
  • Severity drivers:
    • Theft of npm tokens, GitHub credentials, GitLab credentials, Jenkins auth data, CircleCI tokens, cloud credentials, SSH keys, and environment secrets
    • Potential follow-on abuse includes malicious code insertion into legitimate projects, package hijacking, and broader supply chain compromise
    • Malware also harvested host profiling data including public IP, hostname, OS details, usernames, directories, and Node.js version
  • Scope indicators:
    • 126 malicious npm packages
    • More than 86,000 installs/downloads reported
    • At least 80 packages still active at time of disclosure
    • Campaign active since at least August 2025
  • Known incidents:
    • Multiple references describe this as an active campaign with real-world installs and credential theft
    • Researchers observed suspicious outbound requests during package installation and tied them to attacker infrastructure
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.

7 events · Aug 1, 2025 – Oct 29, 2025
  1. Oct 29, 20251y ago

    Koi Security publishes IOCs for PhantomRaven hunting

    As cleanup began, Koi Security released indicators of compromise to help organizations identify exposure to the PhantomRaven npm supply-chain activity.

  2. Oct 29, 20251y ago

    npm begins reviewing and removing PhantomRaven packages

    Following disclosure, npm's security team was reported to be reviewing and removing the malicious packages from the registry as part of the response to the campaign.

  3. Oct 29, 20251y ago

    Researchers link PhantomRaven to slopsquatting package names

    Koi Security and DCODX said the threat actor appeared to use 'slopsquatting' by registering package names likely to be suggested by hallucinating LLM coding assistants, increasing the chance of developer installation.

  4. Oct 29, 20251y ago

    Koi Security discloses Remote Dynamic Dependencies technique

    Koi Security publicly reported that the packages hid malicious behavior through attacker-hosted Remote Dynamic Dependencies fetched from packages.storeartifact.com, making them appear to have zero dependencies to many scanners while executing via preinstall scripts.

  5. Oct 29, 20251y ago

    PhantomRaven grows to 126 npm packages and 86,000+ downloads

    By late October 2025, researchers reported the campaign had expanded to 126 malicious npm packages with more than 86,000 total downloads, targeting npm tokens, GitHub credentials, CI/CD secrets, and other developer data.

  6. Aug 1, 20251y ago

    Initial wave of malicious npm packages is removed

    Researchers said an initial wave of PhantomRaven packages was removed in August 2025 after appearing on npm, indicating the campaign had already been active before the later larger cluster was identified.

  7. Aug 1, 20251y ago

    PhantomRaven campaign begins targeting npm

    Koi Security assessed that the PhantomRaven software supply-chain campaign started in August 2025, with threat actors publishing malicious npm packages designed to steal developer credentials and secrets.

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 →

Threat actors

1 linked

Malware

1 linked

Affected products

1 linked
Npm

Observables

3 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.