Malicious Code Injection in nokiragne-afa: A Threat to npm Ecosystem
Summary
MAL-2025-162079: Malicious code in nokiragne-afa (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 'nokiragne-afa' is part of a token reward campaign associated with the tea.xyz protocol. It is designed to manipulate the npm registry by generating and publishing numerous derivative packages with randomized names. This behavior aims to inflate developer reputation scores for rewards, making it a significant concern for developers relying on npm for package management.
Vulnerability Detail
The vulnerability in 'nokiragne-afa' originates from its malicious intent to modify the package.json file by removing private flags and altering version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes variants to pollute the npm registry. This can lead to a compromised development environment, potential data leaks, and a tarnished reputation for developers who unknowingly use these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokiragne-afa
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, avoid using the 'nokiragne-afa' package and monitor your package-lock.json for any unauthorized changes. Regularly audit your npm packages using 'npm audit' to identify and mitigate vulnerabilities.
Conclusion
The 'nokiragne-afa' package poses a significant threat to the npm ecosystem due to its malicious behavior aimed at manipulating the registry. Developers should take immediate action to remove this package and monitor their projects for similar vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for nokiragne-afa →
FAQ
'nokiragne-afa' is an npm package involved in a malicious campaign to inflate developer reputation scores by flooding the npm registry with derivative packages.
The vulnerability can lead to unauthorized modifications of your package.json file, potentially compromising your project's integrity and security.
You should uninstall 'nokiragne-afa' immediately using 'npm uninstall nokiragne-afa' and audit your project for any other malicious packages.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json. Visit Vulert Scanner to check your application.
Regularly audit your dependencies, use tools like Vulert for monitoring, and stay updated on security advisories related to the packages you use.