pypi · Malicious package advisory
Malwarerandpicker
GHSA-phfq-3x7f-vx22
Malicious code in randpicker (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.1.0` ## Source: kam193 (378d07b700aa25d356594d7b1c42db107def3dbd1cce734e4c1c50b411048eb6) When calling the `Email` function, the code creates a backdoor script and attempts to achieve persistence. The script connects to a Telegram bot and awaits commands to execute. --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2026-06-old-randpicker Reasons (based on the campaign): - action-hidden-in-lib-usage - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine. - backdoor - uses-telegram-bot - persistence - peristence-autorun --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/randpicker/MAL-2026-6138.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/randpicker - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/randpicker/MAL-2026-6138.json - https://opensourcemalware.com/pypi/randpicker - https://github.com/advisories/GHSA-phfq-3x7f-vx22
Compromised versions (1)
- = 0.1.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.