setnetworkPyPI
Advisory published Updated
setnetwork is a confirmed malicious PyPI package (MAL-2026-20117) that steals credentials and exfiltrates sensitive data (malicious version 0.2). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in setnetwork (PyPI)
What this malware does
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.
Malicious versions
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for setnetwork (version 0.2).
If you installed it — respond
setnetwork is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.
Did it already run?
If setnetwork was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
References
Credits
- wormsign · finder
Detect & block this
O3 blocks setnetwork-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.