GHSA-28jx-3vgf-w5vr
Malicious code in setnetwork (PyPI)
Impact
Malicious package. `setup.py` runs base64-encoded code with `exec` on every invocation except `sdist`, i.e. during `pip install`. On Windows it writes an embedded 429 KB executable to the temp directory (`P3c8b0f54872f923c2cd896f7b5.exe`) and starts it. On Linux it looks up the public IP and ISP via ip-api.com (and exits if the ISP is Google or Mythic Beasts), takes a screenshot, collects Firefox and Thunderbird credential and cookie stores (key4.db, logins.json, cookies.sqlite), FileZilla saved servers, Pidgin accounts, Telegram Desktop tdata sessions and Electrum and Exodus wallets, zips and RC4-encrypts them, and uploads the archive to a Telegram bot (bot 6209822134, chat -1001529292045). Observed in a sandboxed install (ip-api.com and api.telegram.org connections). It belongs to the WhiteSnake infostealer campaign on PyPI (April 2023); sibling packages such as libidrequest (MAL-2024-5318) and libideeee (MAL-2024-5315) are already recorded. The package has been removed from PyPI. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/c84da8b2da108933064edd6a85f9021e493a39f2/osv/malicious/pypi/setnetwork/MAL-2026-20117.json))
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | setnetwork | = 0.2 | none recorded |