Malicious Code Injection in nokire-loklok36: A Threat to npm Users
Summary
MAL-2025-162889: Malicious code in nokire-loklok36 (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-loklok36' 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 generating and publishing numerous derivative packages with altered names and metadata. The intent behind this malicious behavior is to inflate developer reputation scores for rewards associated with the tea protocol.
Vulnerability Detail
The vulnerability in 'nokire-loklok36' originates from its design to execute autopublish scripts that modify the package.json file. This includes removing private flags, altering version numbers, and generating random package names, which leads to the pollution of the npm registry. The ramifications of this vulnerability include potential security risks for developers who unknowingly use these packages, as they may inadvertently incorporate malicious code into their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-loklok36
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, avoid using 'nokire-loklok36' and any other packages associated with the tea.xyz campaign. Regularly audit your project's dependencies to identify and remove any malicious packages.
Conclusion
The 'nokire-loklok36' package poses a significant threat due to its malicious code designed to manipulate the npm registry. It is essential for developers to be vigilant, regularly audit their dependencies, and utilize tools like Vulert to ensure their projects remain secure.
See every vulnerability recorded for nokire-loklok36 →
FAQ
'nokire-loklok36' is an npm package identified as part of a malicious campaign that aims to manipulate the npm registry.
This vulnerability can lead to the inclusion of malicious code in your project, potentially compromising its security and integrity.
You should uninstall 'nokire-loklok36' immediately using the command 'npm uninstall nokire-loklok36' and check for other affected packages.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without requiring any signup.
Yes, tools like Vulert can help you monitor and alert for open-source vulnerabilities in your software without needing access to the code or installation.