Malicious Code Injection in hanafi-kupang44-ruro Package
Summary
MAL-2025-103537: Malicious code in hanafi-kupang44-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-kupang44-ruro package is part of the npm ecosystem, primarily used for JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with various packages. This package, like others in the campaign, is designed to manipulate developer reputation scores by generating and publishing numerous derivative packages with randomized names.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the hanafi-kupang44-ruro package. This code modifies the package.json file by removing private flags, altering version numbers, and creating random package names, which are then continuously republished to pollute the npm registry. The origin of this issue is linked to the tea.xyz token reward campaign, which exploits npm's publishing mechanism for fraudulent gains. The ramifications include potential security risks for developers who unknowingly install these packages, as they may inadvertently contribute to the pollution of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall hanafi-kupang44-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, avoid using the hanafi-kupang44-ruro package and monitor your dependencies regularly. You can also utilize tools like Vulert to check for vulnerabilities in your package-lock.json file without needing to install any additional software.
Conclusion
The hanafi-kupang44-ruro package contains malicious code that poses a significant risk to developers and the integrity of the npm ecosystem. It is crucial to remove this package and monitor your dependencies for vulnerabilities to maintain a secure development environment.
See every vulnerability recorded for hanafi-kupang44-ruro →
FAQ
The hanafi-kupang44-ruro package is an npm package associated with the tea.xyz token reward campaign, which aims to inflate developer reputation scores.
The malicious code modifies your package.json file, potentially leading to security vulnerabilities and the pollution of the npm registry.
You can use tools like Vulert to monitor your package-lock.json file for vulnerabilities in real-time.
Regularly audit your dependencies and utilize tools that monitor for vulnerabilities, such as Vulert.
Uninstall the hanafi-kupang44-ruro package immediately using the command: npm uninstall hanafi-kupang44-ruro.