Malicious Code Vulnerability in pyrogrem: Remote Control Telegram Bot
Summary
MAL-2025-192991: Malicious code in pyrogrem (PyPI). Affects pyrogrem versions 0.2. 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 pyrogrem package, available on PyPI, is designed for speed testing and includes a Telegram bot that allows remote control of a computer. While it offers functionality for users looking to test their internet speed, it has been compromised to include malicious code that poses significant security risks.
Vulnerability Detail
The vulnerability originates from a malicious campaign identified as '2025-10-speedd-testing-bot'. The compromised version of pyrogrem (0.2) contains a Remote Access Trojan (RAT) that downloads and executes a remote malicious script. This allows attackers to gain unauthorized access to the user's system, potentially leading to data theft and further exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall pyrogrem
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, users can disable the Telegram bot functionality or restrict internet access for the pyrogrem package until a safe version is confirmed. However, the best course of action is to remove the package entirely.
Conclusion
The pyrogrem package has been identified as containing malicious code that poses serious security risks. Users are advised to uninstall the package and monitor for updates or alternatives. Utilizing tools like Vulert can help in identifying vulnerabilities in open-source software.
See every vulnerability recorded for pyrogrem →
FAQ
Pyrogrem is a package designed for speed testing, which includes a Telegram bot for remote control functionalities.
The vulnerability allows attackers to execute remote scripts on your system, potentially leading to unauthorized access and data theft.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Immediately uninstall the vulnerable version using 'pip uninstall pyrogrem' and look for a safe alternative.
Currently, there is no patched version available for pyrogrem. Users should uninstall the package until a secure version is released.