Malicious Code Exploit in sfga-trud-mutiara: A Threat to npm Ecosystem
Summary
MAL-2025-165812: Malicious code in sfga-trud-mutiara (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 'sfga-trud-mutiara' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been linked to a series of malicious activities aimed at inflating developer reputation scores. The package's functionality is compromised by scripts that automate the generation and publication of derivative packages, leading to potential pollution of the npm registry.
Vulnerability Detail
The vulnerability in 'sfga-trud-mutiara' stems from its association with malicious scripts designed to manipulate the npm registry. These scripts modify the package.json file to remove private flags, alter version numbers, and generate random package names, which can lead to the proliferation of harmful packages. The origin of this vulnerability is traced back to the tea.xyz token reward campaign, which exploits npm's publishing mechanisms to create a flood of derivative packages, thereby compromising the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sfga-trud-mutiara
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 remove the 'sfga-trud-mutiara' package from your project by executing the command: 'npm uninstall sfga-trud-mutiara'. This will prevent any malicious scripts from executing while you assess the situation.
Conclusion
The 'sfga-trud-mutiara' package poses a significant threat due to its malicious code designed to exploit the npm ecosystem. It is crucial for developers to remain vigilant, regularly update their packages, and utilize tools like Vulert to monitor for vulnerabilities. By taking proactive measures, the risks associated with such vulnerabilities can be mitigated.
See every vulnerability recorded for sfga-trud-mutiara →
FAQ
The malicious code consists of scripts that automatically generate and publish derivative packages to inflate developer reputation scores.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit the Vulert playground at Vulert Scanner to check your application without any signup.
Using compromised packages can lead to security breaches, data leaks, and the potential for malicious actors to exploit your application.
Regularly audit your dependencies, use tools like Vulert for monitoring, and ensure to keep your packages updated to the latest secure versions.
If affected, immediately remove the compromised package, update your dependencies, and review your application's security posture.