Skip to content

MAL-2025-3000 Malicious code in solders-utils (PyPI)

Unknown
Published
Updated
Exploit status
No public exploit known
Technology
Cloud Platforms

Description


-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (cb21eed8f78e6edbc4b615bfc8f65345e0340db66a14b788635d630a67bf5e9a)

solders-utils is a typosquat of the solana-py project (its homepage points at solana-py). The sdist's setup.py unconditionally spawns a subprocess running the sibling file hxboot.py before calling setup(), so pip install solders-utils executes the payload on every supported platform. hxboot.py scrapes process environment variables filtered by secret-shaped substrings (KEY, SECRET, TOKEN, PASS, MNEM, SEED, PRIV, RPC, API, WALLET) and reads installer-owned credential files including ~/.aws/credentials, ~/.ssh/id_rsa, ~/.ssh/id_ed25519, ~/.npmrc,.env, ~/.config/solana/id.json, wallet.json, and keypair.json. It also walks Chrome, Chromium, and Brave profile directories for Local Extension Settings belonging to MetaMask (nkbihfbeogaeaoehlefnkodbefgpgknn) and Phantom (bfnaelmomeimhlpmgjnjophhpkkoljpa), base64-encoding the.log/.ldb leveldb files that hold the encrypted seed vaults. Host information, the filtered environment values, credential file contents, and wallet extension blobs are serialized to JSON and POSTed in 3200-byte chunks to the hardcoded ntfy.sh topic https://ntfy.sh/hx83e33eb9, a public pub/sub channel used as an attacker-controlled drop.

Source: kam193 (eff6c26674dd4f0408742c46785656c3a5d19ca0a87366a60534d37d5a54e687)

The only thing the package does is send out all the given data about a cryptocurrency transaction, including the private key, to a hardcoded webhook.

Feedback from PyPI Team: the package "transaction-utils" may also exploit a known pip behavior to overwrite files of an existing legitime package and replace it with malicious content.


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

Campaign: 2025-02-transaction-utils

Reasons (based on the campaign):

  • crypto-related

  • action-hidden-in-lib-usage

  • A Telegram webhook is used to send collected data.

Upgrade path

1 package: 0 fixed.

PackageAffectedFixed inStatus
pypi solders-utils(PyPI) = 0.1.1; = 1.98.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi solders-utils(PyPI) = 0.1.1 No fix listed
pypi solders-utils(PyPI) = 1.98.2 No fix listed

References