Malicious Code Detected in telegrem Package: Remote Control Vulnerability
Summary
MAL-2025-192943: Malicious code in telegrem (PyPI). Affects telegrem 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 telegrem package, available on PyPI, is designed as a speed testing tool that integrates a Telegram bot for remote control functionalities. While it offers users the ability to test internet speeds, it has been compromised, embedding malicious code that poses significant security risks.
Vulnerability Detail
The vulnerability originates from a malicious campaign identified as '2025-10-speedd-testing-bot', attributed to the source kam193. This package contains a Remote Access Trojan (RAT) that downloads and executes a remote malicious script, potentially allowing attackers to gain unauthorized control over the user's computer. The malicious intent is clear, as it aims to steal information and compromise system integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall telegrem
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, users should avoid using the telegrem package and refrain from executing any scripts or commands associated with it until a secure version is available.
Conclusion
The telegrem package has been compromised, embedding malicious code that poses serious security risks. Users are advised to uninstall the package immediately and monitor for updates or patches. Utilizing tools like Vulert can help in identifying vulnerabilities in your software dependencies.
See every vulnerability recorded for telegrem →
FAQ
Telegrem is a Python package designed for speed testing and includes a Telegram bot for remote control functionalities.
The vulnerability allows attackers to execute remote scripts on your computer, potentially leading to unauthorized access and data theft.
Uninstall the telegrem package immediately to protect your system from potential threats.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software without requiring code access. You can check your application against known vulnerabilities using the Vulert playground.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.