Malicious Code Injection in hanafi-tahu84-ruro Package: npm Vulnerability Overview
Summary
MAL-2025-103562: Malicious code in hanafi-tahu84-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 hanafi-tahu84-ruro package is part of a series of npm packages associated with the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by generating and publishing derivative packages with randomized names, which can inflate developer reputation scores for token rewards. This behavior poses significant risks to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in the hanafi-tahu84-ruro package originates from its malicious intent to modify the package.json file by removing private flags, altering version numbers, and generating random package names. This results in a pollution of the npm registry, making it difficult for developers to trust the integrity of packages. The autopublish scripts included in the package automate this process, leading to potential security risks and reputational damage for developers using these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall hanafi-tahu84-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 measure, you can avoid using the hanafi-tahu84-ruro package and any other packages associated with the tea.xyz token reward campaign. Regularly audit your npm packages to identify and remove any potentially malicious packages.
Conclusion
The hanafi-tahu84-ruro package poses a significant risk due to its malicious code designed to manipulate the npm registry. It is crucial for developers to remove this package and monitor their dependencies for similar vulnerabilities to maintain the integrity of their projects.
See every vulnerability recorded for hanafi-tahu84-ruro →
FAQ
The hanafi-tahu84-ruro package is an npm package linked to a token reward campaign that generates and publishes derivative packages to manipulate developer reputation scores.
This vulnerability can lead to the pollution of the npm registry, making it difficult to trust the integrity of packages and potentially exposing your project to security risks.
If you have installed the hanafi-tahu84-ruro package, you should uninstall it immediately and audit your project for any other potentially malicious packages.
Yes, tools like Vulert can monitor your package-lock.json file for open-source vulnerabilities in real-time without requiring code access or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.