Malicious Code Injection in nokire-loklok80: A Threat to npm Ecosystem
Summary
MAL-2025-162938: Malicious code in nokire-loklok80 (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-loklok80' is part of a series of npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. The malicious nature of this package lies in its ability to modify critical files and republish variants, thereby polluting the npm registry.
Vulnerability Detail
The vulnerability in 'nokire-loklok80' stems from its inclusion in a malicious campaign that utilizes autopublish scripts to modify the package.json file. This modification removes private flags, alters version numbers, and generates random package names, which can lead to the proliferation of unwanted packages in the npm ecosystem. The ramifications include potential security risks for developers who unknowingly integrate these packages into their projects, as well as damage to the integrity of the npm registry.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-loklok80
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 prevent the installation of this package by adding it to your project's .npmrc file with the following line: 'package-lock=false'. This will stop npm from resolving this package during installations.
Conclusion
The 'nokire-loklok80' package poses a significant threat due to its malicious code that modifies package files and repopulates the npm registry with harmful variants. It is essential for developers to remove this package and monitor their projects for similar vulnerabilities to maintain security and integrity.
See every vulnerability recorded for nokire-loklok80 →
FAQ
'nokire-loklok80' is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to the introduction of unwanted and potentially harmful packages into your project, compromising its security and integrity.
You should immediately remove 'nokire-loklok80' from your project and check for any dependencies that may have been affected.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file. You can also check your application for vulnerabilities using the Vulert playground.
Regularly audit your dependencies, keep your packages updated, and utilize tools like Vulert to monitor for vulnerabilities.