Malicious Code Injection in bad_rook_dumbs Package: A Threat to npm Ecosystem
Summary
MAL-2025-99744: Malicious code in bad_rook_dumbs (npm). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The bad_rook_dumbs package is part of a broader campaign that exploits the npm ecosystem, primarily targeting developers involved in the tea.xyz token reward initiative. This package is designed to automate the generation and publication of derivative packages, which can lead to reputation inflation for developers seeking token rewards. Its functionality includes creating random package names and modifying existing package configurations, making it a significant threat to the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the bad_rook_dumbs package stems from its malicious code that modifies the package.json file by removing private flags and altering version numbers. This allows the package to continuously republish itself and its variants, polluting the npm registry with potentially harmful packages. The origin of this issue is linked to a campaign that aims to exploit the npm ecosystem for token rewards, leading to a degradation of trust and reliability in package management.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bad_rook_dumbs
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, you can manually remove the bad_rook_dumbs package from your project by executing the following command: npm uninstall bad_rook_dumbs. Additionally, consider using npm audit to identify and address other potential vulnerabilities in your project.
Conclusion
The bad_rook_dumbs package poses a significant threat to the npm ecosystem due to its malicious code that modifies package configurations and republish variants. It is crucial for developers to be vigilant, remove this package, and utilize tools like Vulert to monitor for vulnerabilities in their projects.
See every vulnerability recorded for bad_rook_dumbs →
FAQ
The bad_rook_dumbs package is a malicious npm package that automates the creation and publication of derivative packages, primarily targeting developers involved in the tea.xyz token reward campaign.
This vulnerability can lead to the pollution of your project's dependencies, potentially introducing malicious code and compromising the security of your application.
You should immediately uninstall the bad_rook_dumbs package and check for any other vulnerabilities in your project using npm audit.
Yes, you can use Vulert, which monitors and alerts you in real-time for open-source vulnerabilities in your software by analyzing your package-lock.json file.
Absolutely! You can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup.