• News/
  • https://www.theregister.com/2025/10/30/phantomraven_npm_malware/

Invisible npm malware pulls a disappearing act – then nicks your tokens

The Register
·
Carly Page
·
Published Oct 30, 2025
·
Updated

A new supply chain attack dubbed PhantomRaven has flooded the npm registry with malicious packages that steal credentials, tokens, and secrets during installation. The packages appear safe when first downloaded, making them particularly difficult for security apps to identify. According to researchers at Koi, the campaign has been active since at least August 2025 and involves 126 malicious packages published by multiple accounts. At least 86,000 downloads were recorded before the campaign was exposed this week, and more than 80 of the infected packages were still live at the time of disclosure. What sets PhantomRaven apart is its use of a new technique the researchers call Remote Dynamic Dependencies (RDD). Unlike typical npm malware, which relies on visible dependencies or post-install scripts, PhantomRaven packages initially appear empty – no dependencies, no suspicious code. But when a user installs them, the package fetches additional code from a remote server controlled by the attacker. The malicious payload is then executed locally, stealing data and exfiltrating it to the attacker's infrastructure. This makes the attack extremely difficult to detect using conventional methods. Security tools that rely on static analysis of package metadata or dependency graphs will see nothing out of the ordinary, because the harmful code doesn't exist in the registry itself. Instead, it's dynamically retrieved during installation, leaving no obvious trace in the source files. The sto...

Read full article

Affected Software

1 affected component
npm registry
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is PhantomRaven?

PhantomRaven is a new malware targeting the npm registry that installs malicious packages to steal credentials, tokens, and secrets.

2

How does PhantomRaven operate?

PhantomRaven disguises itself as safe packages when downloaded, but activates during installation to exfiltrate sensitive information.

3

What types of data does PhantomRaven steal?

PhantomRaven is designed to steal user credentials, tokens, and secrets from the affected systems.

4

Which software is primarily affected by PhantomRaven?

The primary software affected by PhantomRaven is the npm registry.

5

What security issues are highlighted by the PhantomRaven attack?

The PhantomRaven attack underscores significant vulnerabilities in the supply chain of package management systems like npm.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203