telebot-bot-run (PyPI) · Malicious Code
Affects telebot-bot-runSource GCVE Database
Malicious package : remove telebot-bot-run and rotate any secrets on hosts that installed it.
Data as of 22 Jul 2026, 23:40 UTC
Malicious package
Published to PyPI · OSV MAL-2026-10863
What to do
Remove telebot-bot-run from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPItelebot-bot-run | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- getsafety.com/blog-posts/telegrem-bot-malware (opens in a new tab)
- bad-packages.kam193.eu/pypi/package/telebot-bot-run (opens in a new tab)
- pypi.org/project/telebot-bot-run/0.3/ (opens in a new tab)
- pypi.org/project/telebot-bot-run/0.5/ (opens in a new tab)
- pypi.org/project/telebot-bot-run/0.4/ (opens in a new tab)