Malicious Code Injection in nokire-arhani79: A Threat to npm Ecosystem
Summary
MAL-2025-162395: Malicious code in nokire-arhani79 (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-arhani79' is part of a series of malicious npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by automatically generating and publishing derivative packages with randomized names. This behavior is intended to inflate developer reputation scores for token rewards, posing a significant risk to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in 'nokire-arhani79' originates from its malicious payload, which modifies the package.json file to remove private flags and alters version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This not only compromises the security of the affected packages but also affects the overall trustworthiness of the npm ecosystem, leading to potential exploitation by malicious actors.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-arhani79
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 npm's package-lock.json file to monitor dependencies. Ensure that your package-lock.json does not include 'nokire-arhani79'. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities in real-time.
Conclusion
The 'nokire-arhani79' package represents a significant threat to the npm ecosystem due to its malicious behavior. It is crucial for developers to be vigilant, regularly update their dependencies, and utilize tools like Vulert to monitor for vulnerabilities. By taking proactive measures, the integrity of projects can be maintained.
See every vulnerability recorded for nokire-arhani79 →
FAQ
The 'nokire-arhani79' package is a malicious npm package that is part of a campaign to manipulate the npm registry for token rewards.
This vulnerability can compromise the integrity of your project by introducing malicious code and affecting the overall trustworthiness of the npm ecosystem.
You should uninstall the 'nokire-arhani79' package immediately and monitor your project for any other malicious dependencies.
Yes, Vulert allows you to monitor and alert for open-source vulnerabilities in your software using just the package-lock.json file. You can check if your application is affected by visiting the Vulert playground.
Regularly updating your dependencies, using tools like Vulert for monitoring, and being cautious with package installations can help prevent similar vulnerabilities.