Malicious Code Detected in aiogrem Package: Remote Control Vulnerability

aiogrem Updated 31 Dec 2025

Summary

31/12/2025
CRITICAL
No i
Critical
Not published

MAL-2025-193007: Malicious code in aiogrem (PyPI). Affects aiogrem versions 0.2. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The aiogrem package, available on PyPI, is designed for speed testing and is suspected to be a typosquatted library masquerading as a Telegram bot. Its intended functionality is to facilitate communication and control via Telegram, but it has been compromised to include malicious code that allows remote control of the user's computer.

Vulnerability Detail

The vulnerability in the aiogrem package originates from a malicious campaign identified as '2025-10-speedd-testing-bot'. This package has been found to contain a Remote Access Trojan (RAT) that downloads and executes a remote malicious script on the victim's machine. The malicious intent is clear, as it can lead to unauthorized access and control over the affected system, posing significant security risks to users.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall aiogrem

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 remove the aiogrem package from their environment using the command: 'pip uninstall aiogrem'. Additionally, users should monitor their systems for any unusual activity and consider using security software to detect and remove any potential threats.

Conclusion

The aiogrem package has been identified as malicious, posing significant risks to users through remote control capabilities. It is crucial to uninstall the package and monitor for any unusual activity. Users are encouraged to utilize tools like Vulert for ongoing vulnerability management.

See every vulnerability recorded for aiogrem →

Share this vulnerability

FAQ

aiogrem is a Python package available on PyPI, primarily intended for speed testing and communication via Telegram.

The package was compromised through a malicious campaign that introduced a Remote Access Trojan (RAT) capable of executing remote scripts.

If you have aiogrem installed, you should uninstall it immediately and monitor your system for any unusual activity.

Yes, you can use Vulert to monitor and alert for open-source vulnerabilities in your software without requiring access to the code. Visit Vulert Scanner to check your application.

The risks include unauthorized access to your computer, potential data theft, and the execution of malicious scripts that can compromise your system's security.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall aiogrem

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback