Malicious Code Injection in important_peacock_replicate_automation Package
Summary
MAL-2025-103998: Malicious code in important_peacock_replicate_automation (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 important_peacock_replicate_automation package is part of the npm ecosystem, designed for automation tasks. However, it has been identified as part of a malicious campaign that floods the npm registry with harmful packages. This package's primary function is to automate certain processes, but it has been compromised to serve malicious purposes, including manipulating package metadata.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded within the important_peacock_replicate_automation package. This payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names. The intent is to inflate developer reputation scores for the tea protocol token rewards, leading to pollution of the npm registry with unauthorized packages. The ramifications include potential security risks for developers who unknowingly install these compromised packages, as they may inadvertently expose their projects to further vulnerabilities.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall important_peacock_replicate_automation
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 important_peacock_replicate_automation package altogether. If you have dependencies that rely on it, consider refactoring your code to eliminate those dependencies until a secure version is available.
Conclusion
The important_peacock_replicate_automation package poses a significant security risk due to its malicious code. Developers should take immediate action to remove this package from their projects and monitor for any further vulnerabilities. Utilizing tools like Vulert can help in maintaining the security of your applications.
See every vulnerability recorded for important_peacock_replicate_automation →
FAQ
It is an npm package designed for automation tasks but has been compromised to include malicious code.
If you have this package installed, it could lead to unauthorized changes in your project and expose it to further vulnerabilities.
You should uninstall the package immediately and check for any dependencies that may rely on it.
Currently, there are no patches available for this specific package. It is recommended to remove it from your project.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time without requiring code access.