Malicious Code Injection in ratty_ape-tool: A Threat to npm Ecosystem
Summary
MAL-2025-107732: Malicious code in ratty_ape-tool (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 ratty_ape-tool is an npm package that has been identified as part of a malicious campaign targeting the npm ecosystem. This package is designed to participate in the tea.xyz token reward scheme, which incentivizes developers to publish numerous packages. The functionality of ratty_ape-tool is compromised due to the presence of scripts that automate the generation and publication of derivative packages, ultimately leading to pollution of the npm registry.
Vulnerability Detail
The vulnerability in ratty_ape-tool originates from its association with the tea.xyz token reward campaign. The malicious code embedded in this package modifies the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior not only inflates developer reputation scores but also leads to the continuous republishing of variants, which can clutter the npm registry and potentially introduce security risks to dependent projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ratty_ape-tool
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 ratty_ape-tool and any packages that depend on it. Additionally, consider using a tool like Vulert to monitor your package-lock.json for vulnerabilities. You can access the Vulert playground at https://vulert.com/scanner to check if your application is affected by this vulnerability without any signup.
Conclusion
The ratty_ape-tool package poses a significant threat due to its malicious code that modifies package metadata and floods the npm registry. It is crucial for developers to remove this package from their projects and utilize tools like Vulert to monitor for vulnerabilities. Staying informed and proactive can help mitigate risks associated with such malicious packages.
See every vulnerability recorded for ratty_ape-tool →
FAQ
ratty_ape-tool is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through automated package publishing.
The vulnerability can lead to the pollution of the npm registry, potentially introducing security risks and cluttering your project's dependencies.
You should uninstall the ratty_ape-tool package immediately using the command 'npm uninstall ratty_ape-tool' and check for any dependencies that may be affected.
Yes, you can use Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time. You can check your application using the Vulert playground at Vulert Scanner.
Currently, there is no specific patch available for ratty_ape-tool. It is recommended to remove the package and monitor for updates from the maintainers.