Malicious Code Injection in nokire-arhani28: A Threat to npm Packages
Summary
MAL-2025-162339: Malicious code in nokire-arhani28 (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 'nokire-arhani28' is part of a series of npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to manipulate npm's registry by automatically generating and publishing derivative packages with randomized names. This behavior is intended to inflate developer reputation scores for rewards associated with the tea protocol. The malicious nature of this package poses a significant risk to developers and users relying on npm for package management.
Vulnerability Detail
The vulnerability in 'nokire-arhani28' originates from its malicious design, which includes scripts that modify the package.json file to remove private flags and alter version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to clutter the npm registry. This not only compromises the integrity of the npm ecosystem but also exposes users to potential security risks as they may inadvertently install these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-arhani28
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 avoid using the 'nokire-arhani28' package and instead look for alternative packages that provide similar functionality without the associated risks. Always verify the integrity and reputation of packages before including them in your project.
Conclusion
The 'nokire-arhani28' package poses a serious threat due to its malicious code designed to manipulate the npm registry. It is essential to remove this package from your projects and monitor for similar vulnerabilities using tools like Vulert. Staying informed and proactive can help protect your applications from such risks.
See every vulnerability recorded for nokire-arhani28 →
FAQ
The 'nokire-arhani28' package is an npm package that is part of a malicious campaign aimed at manipulating the npm registry for token rewards.
This vulnerability can lead to the installation of malicious code, compromising your project's security and potentially affecting its functionality.
If you have installed 'nokire-arhani28', you should uninstall it immediately using 'npm uninstall nokire-arhani28' and check your project for any other vulnerabilities.
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.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.