Malicious Code Injection in nokire-loklok69: A Threat to npm Users
Summary
MAL-2025-162925: Malicious code in nokire-loklok69 (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-loklok69' is part of a series of malicious 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 rewards associated with the tea protocol. The package's functionality is compromised, making it a potential threat to users who may unknowingly install it.
Vulnerability Detail
The vulnerability in 'nokire-loklok69' originates from its inclusion in a malicious campaign that floods the npm registry with harmful packages. The malicious code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which leads to the continuous republishing of these variants. This not only pollutes the npm registry but also poses risks to developers who may rely on these packages for legitimate purposes. The technical aspects include the use of autopublish scripts that automate the creation and distribution of these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-loklok69
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 workaround, you can monitor your project for any dependencies that may include 'nokire-loklok69' by checking your package-lock.json file. If you find it listed, remove it immediately to prevent any potential exploitation.
Conclusion
The 'nokire-loklok69' package poses a significant threat due to its malicious code designed to manipulate the npm registry. It is crucial for developers to be vigilant about their dependencies, remove any malicious packages, and utilize tools like Vulert to monitor for vulnerabilities. By taking proactive measures, you can protect your projects from potential exploitation.
See every vulnerability recorded for nokire-loklok69 →
FAQ
'nokire-loklok69' is a malicious npm package that is part of a campaign to inflate developer reputation scores through the creation of harmful derivative packages.
The vulnerability can lead to the installation of malicious code that modifies your project's dependencies and can potentially compromise your application's security.
You should uninstall the package immediately using 'npm uninstall nokire-loklok69' and check your project for any other affected dependencies.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time. You can check your application for vulnerabilities using the Vulert playground without any signup.
Yes, there are several other packages that may be part of the same malicious campaign. Regularly review your dependencies and stay updated on security advisories.