Malicious Code Detected in btcsim Package - Security Alert
Summary
MAL-2025-16235: Malicious code in btcsim (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 btcsim package is a Node.js library designed for simulating Bitcoin transactions. It provides developers with tools to create and test Bitcoin applications without the need for real cryptocurrency. However, the package has been identified as containing malicious code, posing significant security risks to users and their applications.
Vulnerability Detail
The vulnerability in the btcsim package stems from the inclusion of malicious code that can compromise the security of applications utilizing this library. This code may lead to unauthorized access, data theft, or other harmful actions. The issue originated from the package's initial release, indicating that all versions from the start are affected. Users of this package should be aware of the potential ramifications, including loss of sensitive data and exploitation of their systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall btcsim
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 replace the btcsim package with alternative libraries that provide similar functionality without the associated risks. Ensure to review the security of any new packages before integration.
Conclusion
The btcsim package has been identified as containing malicious code, posing significant security risks to users. It is crucial to remove this package from your projects and monitor for any updates or patches. Utilizing tools like Vulert can help you stay informed about vulnerabilities in your software.
See every vulnerability recorded for btcsim →
FAQ
The btcsim package is used for simulating Bitcoin transactions, allowing developers to test their applications without using real cryptocurrency.
You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in your software. By analyzing your package-lock.json file, Vulert can identify if your application is affected.
It is recommended to uninstall the btcsim package immediately and look for alternative libraries to avoid potential security risks.
Currently, there is no patch available for the btcsim package. The best course of action is to remove the package from your project.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.