VYPR

pypi · Malicious package advisory

Malware

telethon-pro-safe

GHSA-7qqw-3fqg-h939

Malicious code in telethon-pro-safe (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 3.0.0`

## Source: kam193 (8bc2e515c2eb7bf73ea5d532cfb6701dcaf3dd95e9d8248ee3d426b1d0c1ed8c)
During installation, package executes obfuscated code that starts a RAT-like software allowing remote control and exfiltrating sensitive data.


---

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.


Campaign: 2026-05-telethon-pro-safe


Reasons (based on the campaign):


 - rat


 - The package overrides the install command in setup.py to execute malicious code during installation.


 - exfiltration-credentials


 - exfiltration-browser-data


 - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.


 - The package contains code to detect if it is running in a sandbox environment.


 - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.


 - infostealer


 - obfuscation

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/telethon-pro-safe/MAL-2026-4859.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/telethon-pro-safe
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/telethon-pro-safe/MAL-2026-4859.json
- https://github.com/advisories/GHSA-7qqw-3fqg-h939

Compromised versions (1)

  • = 3.0.0

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.