Malicious Code Exploit in lookingan-namala2: A Threat to npm Users
Summary
MAL-2025-158729: Malicious code in lookingan-namala2 (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 'lookingan-namala2' 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. This behavior poses a significant risk to the integrity of the npm registry and can lead to the proliferation of malicious software.
Vulnerability Detail
The vulnerability in 'lookingan-namala2' originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This allows the package to continuously republish variants, polluting the npm registry and potentially compromising other projects that depend on npm packages. The malicious scripts included in the package are designed to automate this process, making it difficult for developers to detect and mitigate the threat.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall lookingan-namala2
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 avoid using the 'lookingan-namala2' package and any other packages associated with the tea.xyz campaign. Regularly 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 'lookingan-namala2' package poses a significant threat to npm users due to its malicious behavior of modifying package files and republishing variants. It is crucial to remove this package and monitor your dependencies for vulnerabilities to maintain the security of your projects.
See every vulnerability recorded for lookingan-namala2 →
FAQ
The main risk is that it can modify your package.json file and republish malicious variants, compromising the integrity of your project.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.
You should uninstall the package immediately using 'npm uninstall lookingan-namala2' and review your project for any other potentially malicious packages.
Yes, tools like Vulert can monitor your package-lock.json file for vulnerabilities in real-time.
Always use trusted packages, regularly update your dependencies, and utilize vulnerability monitoring tools like Vulert.