Malicious code in telebot-bot-run (PyPI)
The telebot-bot-run package on PyPI versions 0.3, 0.4, and 0.5 contains malicious code that executes attacker-controlled scripts on the host system. Upon import, it fetches and executes remote Python code from a mutable Pastebin URL, runs a Telegram bot with hardcoded credentials that allows remote command execution, file exfiltration, directory archiving, and persistent background execution. The package is identified as typosquatting and is designed for remote access and control of infected hosts.
AI Analysis
Technical Summary
The telebot-bot-run package versions 0.3, 0.4, and 0.5 are malicious. On import, the package fetches Python code from a Pastebin URL and executes it directly, enabling arbitrary code execution. It also contains a hardcoded Telegram bot token that starts an infinite polling thread exposing commands such as /ssh (executes shell commands), /get (sends files to the attacker), /collect (archives directories and uploads them), and /start (re-fetches and runs the remote code in the background for persistence). The package metadata is suspicious and consistent with malicious intent. This package is a typosquatting attempt masquerading as a legitimate Telegram bot library and is classified as a Remote Access Trojan (RAT).
Potential Impact
Systems that install telebot-bot-run versions 0.3, 0.4, or 0.5 are subject to full remote code execution by attackers. The attacker can run arbitrary shell commands, exfiltrate any file, archive and upload directories, and maintain persistent control over the infected host. This compromises confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately uninstall telebot-bot-run versions 0.3, 0.4, and 0.5 if installed. Avoid installing packages from untrusted or typosquatted sources. Monitor for and remove any processes related to this package and revoke any exposed credentials. Check vendor advisories or PyPI for updates or removal of the malicious package.
Malicious code in telebot-bot-run (PyPI)
Description
The telebot-bot-run package on PyPI versions 0.3, 0.4, and 0.5 contains malicious code that executes attacker-controlled scripts on the host system. Upon import, it fetches and executes remote Python code from a mutable Pastebin URL, runs a Telegram bot with hardcoded credentials that allows remote command execution, file exfiltration, directory archiving, and persistent background execution. The package is identified as typosquatting and is designed for remote access and control of infected hosts.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The telebot-bot-run package versions 0.3, 0.4, and 0.5 are malicious. On import, the package fetches Python code from a Pastebin URL and executes it directly, enabling arbitrary code execution. It also contains a hardcoded Telegram bot token that starts an infinite polling thread exposing commands such as /ssh (executes shell commands), /get (sends files to the attacker), /collect (archives directories and uploads them), and /start (re-fetches and runs the remote code in the background for persistence). The package metadata is suspicious and consistent with malicious intent. This package is a typosquatting attempt masquerading as a legitimate Telegram bot library and is classified as a Remote Access Trojan (RAT).
Potential Impact
Systems that install telebot-bot-run versions 0.3, 0.4, or 0.5 are subject to full remote code execution by attackers. The attacker can run arbitrary shell commands, exfiltrate any file, archive and upload directories, and maintain persistent control over the infected host. This compromises confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately uninstall telebot-bot-run versions 0.3, 0.4, and 0.5 if installed. Avoid installing packages from untrusted or typosquatted sources. Monitor for and remove any processes related to this package and revoke any exposed credentials. Check vendor advisories or PyPI for updates or removal of the malicious package.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10863
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a6150ed9c2644c7f8da2ca4
Added to database: 07/22/2026, 23:23:25 UTC
Last enriched: 07/22/2026, 23:40:40 UTC
Last updated: 07/31/2026, 03:30:53 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.