Malicious Code Injection in nokire-lokcek8: A Threat to npm Packages
Summary
MAL-2025-162837: Malicious code in nokire-lokcek8 (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-lokcek8' 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 itself, thereby polluting the npm registry.
Vulnerability Detail
The vulnerability in 'nokire-lokcek8' originates from its inclusion in a malicious campaign that utilizes autopublish scripts to manipulate package.json files. It removes private flags, alters version numbers, and generates random package names, which can lead to significant security risks, including the potential for unauthorized access and the spread of malicious code across the npm ecosystem. This behavior not only affects the integrity of the npm registry but also poses a risk to developers who may unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-lokcek8
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 'nokire-lokcek8' and any other packages that are part of the tea.xyz campaign. Monitor your package-lock.json file for any unauthorized changes and consider using tools like Vulert to keep track of vulnerabilities in your dependencies.
Conclusion
The 'nokire-lokcek8' package poses a significant threat due to its malicious code designed to manipulate npm packages. It is essential to remove this package and monitor your dependencies regularly to maintain the security of your projects. Utilizing tools like Vulert can aid in identifying vulnerabilities in real-time.
See every vulnerability recorded for nokire-lokcek8 →
FAQ
'nokire-lokcek8' is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to unauthorized modifications of your package.json file, potentially allowing malicious code to be executed in your project, compromising its security.
If you have installed 'nokire-lokcek8', you should uninstall it immediately using 'npm uninstall nokire-lokcek8' and review your other dependencies for any signs of compromise.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.