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 158 KB executable to the temp directory (Wde24bc9faebba164d8c8467a5f7840.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.
{
"iocs": {
"files": [
{
"digests": {
"sha256": "30ec5a08b0b2f021bff877a13aba35cdb9d4bd5aa107a321550decae53a0a70e"
},
"paths": [
"setup.py"
]
},
{
"digests": {
"sha256": "b12ca928c062c8e73a4154878a680133ef73ac2832cb9a6f48d4cedb0defc5e5"
},
"paths": [
"%TEMP%/Wde24bc9faebba164d8c8467a5f7840.exe"
]
}
],
"urls": [
"https://api.telegram.org/bot6209822134",
"http://ip-api.com/line?fields=query,isp"
]
}
}