Malicious Code Injection in ajmalhameed Package: Exploiting npm for Token Rewards
Summary
MAL-2025-170749: Malicious code in ajmalhameed (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 ajmalhameed 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 the npm registry by generating and publishing derivative packages with random names. The intent behind this exploitation is to inflate developer reputation scores for token rewards associated with the tea.xyz protocol.
Vulnerability Detail
The vulnerability in the ajmalhameed package originates from its involvement in a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can compromise the integrity of applications relying on these packages. The malicious payload can potentially allow unauthorized access to sensitive data or disrupt application functionality.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ajmalhameed
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 ajmalhameed package and replace it with a trusted alternative. Additionally, you can use the following command to uninstall the package: npm uninstall ajmalhameed.
Conclusion
The ajmalhameed package poses a significant risk due to its malicious behavior aimed at exploiting the npm registry. It is crucial to remove this package from your projects and stay vigilant about the security of your dependencies. Utilizing tools like Vulert can help in monitoring and alerting for such vulnerabilities in real-time.
See every vulnerability recorded for ajmalhameed →
FAQ
The ajmalhameed package is an npm package that has been identified as part of a malicious campaign to exploit the npm registry.
This vulnerability can lead to unauthorized modifications in your application's dependencies, potentially compromising security and functionality.
You should uninstall the ajmalhameed package immediately and monitor your application for any unusual behavior.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup.
Regularly audit your dependencies, use tools like Vulert for monitoring, and ensure you only use trusted packages from reputable sources.