Malicious Code Injection in amjadrees Package: A Threat to npm Users
Summary
MAL-2025-170865: Malicious code in amjadrees (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 amjadrees package is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit npm's publishing system. It is designed to automatically generate and publish derivative packages with altered metadata, which can mislead developers and inflate reputation scores for token rewards.
Vulnerability Detail
The vulnerability in the amjadrees package stems from its association with a malicious campaign that modifies the package.json file to remove private flags and change version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants to clutter the npm registry. This behavior not only compromises the integrity of the npm ecosystem but also poses risks to developers who may unknowingly use these malicious packages in their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall amjadrees
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 the amjadrees package and look for alternative packages that provide similar functionality without the associated risks. Always verify the source and integrity of packages before installation.
Conclusion
The amjadrees package poses a significant threat to the npm ecosystem due to its malicious behavior. It is essential for developers to be vigilant about the packages they use and to regularly check for vulnerabilities. By removing compromised packages and utilizing tools like Vulert, developers can better protect their projects from potential threats.
See every vulnerability recorded for amjadrees →
FAQ
The amjadrees package is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry.
Using the amjadrees package can lead to the inclusion of malicious code in your project, potentially compromising security and functionality.
If you have installed the amjadrees package, you should uninstall it immediately using 'npm uninstall amjadrees' and check for any other affected packages.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time about open-source vulnerabilities. You can check your application using the Vulert playground without any signup.
Yes, look for alternative npm packages that provide similar functionality but are verified and trusted by the community.