Malicious Code Injection in hanafi-bika31-ruro: A Threat to npm Packages
Summary
MAL-2025-103524: Malicious code in hanafi-bika31-ruro (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 package 'hanafi-bika31-ruro' is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The malicious nature of this package poses a significant risk to developers and users relying on npm for secure package management.
Vulnerability Detail
The vulnerability in 'hanafi-bika31-ruro' originates from its association with the tea.xyz token reward campaign. This package contains scripts designed to automatically modify package.json files, removing private flags, altering version numbers, and generating random package names. The continuous republishing of these variants clutters the npm registry, potentially leading to confusion and misuse of legitimate packages. The ramifications include compromised package integrity and the risk of unintentional dependency on malicious code.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall hanafi-bika31-ruro
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 prevent the installation of this malicious package by using the following command to uninstall it: npm uninstall hanafi-bika31-ruro. Additionally, consider using npm audit to identify and address vulnerabilities in your project.
Conclusion
The 'hanafi-bika31-ruro' package poses a significant risk due to its malicious code designed to manipulate npm package integrity. It is essential for developers to be vigilant and take immediate action to remove this package and monitor their projects for vulnerabilities. Utilizing tools like Vulert can aid in maintaining secure dependencies.
See every vulnerability recorded for hanafi-bika31-ruro →
FAQ
The 'hanafi-bika31-ruro' package is an npm package that has been identified as malicious, designed to inflate developer reputation scores through automated publishing.
This vulnerability can compromise the integrity of your project by introducing malicious code and cluttering the npm registry with unwanted packages.
If you have installed 'hanafi-bika31-ruro', it is crucial to uninstall it immediately and monitor your project for any unusual behavior.
You can use tools like Vulert, which monitors your package-lock.json file for vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.