Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in telebot-bot-run (PyPI)

0
Critical
Published: 07/20/2026 (07/20/2026, 02:36:22 UTC)
Source: GCVE Database
Product: telebot-bot-run

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

PyPIghsa
telebot-bot-run
Affected versions
=0.5=0.3=0.4

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

AILast updated: 07/22/2026, 23:40:40 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses