• News/
  • https://www.bleepingcomputer.com/news/security/phantomraven-attack-floods-npm-with-credential-stealing-packages/

PhantomRaven attack floods npm with credential-stealing packages

BleepingComputer
·
Bill Toulas
·
Published Oct 29, 2025
·
Updated

An active campaign named ‘PhantomRaven’ is targeting developers with dozens of malicious npm packages that steal authentication tokens, CI/CD secrets, and GitHub credentials. The activity started in August and deployed 126 npm packages that counted more than 86,000 downloads. The Node Package Manager (NPM) is the default package manager for Node.js, used by JavaScript developers to share and install reusable code that comes in the form of distributed packages. PhantomRaven was detected by researchers at Koi Security and includes packages that mimic legitimate projects, and many are the result of AI hallucinated recommendations (“slopsquatting”). Slopsquatting occurs when developers ask LLMs to suggest packages for a project, and the AI assistants recommend non-existent package names that appear legitimate. The researchers say that some malicious packages impersonate GitLab or Apache tools. Most of them are still present on the npm platform at the time of writing. The packages used in the PhantomRaven campaign leverage a remote dynamic dependencies (RDD) system where they declare zero dependencies, but automatically fetch payloads from external URLs during installation. The mechanism fetches packages and executes them automatically when running ‘npm install’, and requires no user interaction. The “side-loaded” payload profiles the infected device to determine the target’s value, and searches the victim’s environment variables for email addresses. Most worryingly, the malware ...

Read full article

Affected Software

3 affected components
npm NPM
GitLab GitLab
Apache Apache
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 the main topic of this article?

The article discusses the 'PhantomRaven' attack, which involves a surge of malicious npm packages aimed at stealing developer credentials.

2

What security implications are discussed?

The attack poses significant risks by potentially exposing authentication tokens, CI/CD secrets, and GitHub credentials to attackers.

3

What products or software are affected?

The affected products include npm, GitLab, and Apache software.

4

When did the PhantomRaven attack campaign start?

The PhantomRaven attack campaign began in August of this year.

5

How many malicious npm packages were deployed in the PhantomRaven attack?

The PhantomRaven attack deployed a total of 126 malicious npm packages.

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