Files
vuln-osv/data/PyPI/MAL-2025-3000.json
T

1 line
6.2 KiB
JSON

{"schema_version":"1.9.2","id":"MAL-2025-3000","published":"2025-02-21T21:50:10Z","modified":"2026-11-18T21:15:03.555918942Z","summary":"Malicious code in solders-utils (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (cb21eed8f78e6edbc4b615bfc8f65345e0340db66a14b788635d630a67bf5e9a)\nsolders-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.\n\n## Source: kam193 (eff6c26674dd4f0408742c46785656c3a5d19ca0a87366a60534d37d5a54e687)\nThe only thing the package does is send out all the given data about a cryptocurrency transaction, including the private key, to a hardcoded webhook.\n\nFeedback 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.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2025-02-transaction-utils\n\n\nReasons (based on the campaign):\n\n\n - crypto-related\n\n\n - action-hidden-in-lib-usage\n\n\n - A Telegram webhook is used to send collected data.\n","affected":[{"package":{"name":"solders-utils","ecosystem":"PyPI","purl":"pkg:pypi/solders-utils"},"versions":["0.1.1","1.98.2"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"artifacts":["solders_utils-1.98.2.tar.gz"],"path":"setup.py","sha256":"ff831587bd68da955352fc098f21cd4388100935fcad49438f3013dcde437f50","tlsh":"d8f020068e033c10c3eae17c6e025aef9de73f616f639c9e98e8812632997d14607664"},{"artifacts":["solders_utils-1.98.2.tar.gz"],"path":"hxboot.py","sha256":"fc5f679e07d2f89e0fe4fc67933b65e027d0263b8e623e19166d110432a8bf8d","tlsh":"642186c3d40e1807d01d53c48c060ed836afff8860af285aabd76fc0908c2b2166b61d"}],"package_integrity":[{"filename":"solders_utils-1.98.2.tar.gz","hashes":{"blake2b_256":"4b7d491b4e89ec88abbe2a5bbdf239723e916f9cad97aa4e1ae28d1c9533b175","md5":"39baa75f6446397eec96975b34dd771a","sha256":"91becc30a3ae8eccd45746346547bebf4840d91d289cf7ae8beb70b94715c273"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/solders-utils/MAL-2025-3000.json"}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/solders-utils"},{"type":"PACKAGE","url":"https://pypi.org/project/solders-utils/1.98.2/"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/campaign/2026-11-solana-utils-terminalmoney1"}],"database_specific":{"malicious-packages-origins":[{"id":"RLMA-2025-01999","import_time":"2025-03-31T07:07:06.758949622Z","modified_time":"2025-03-28T13:06:16Z","sha256":"5c8e346305384f94d637742b5acac9fe706eacca5bfb47be549338efa6f2abb0","source":"reversing-labs","versions":["0.1.1"]},{"id":"pypi/2025-02-transaction-utils/solders-utils","import_time":"2025-12-02T22:30:55.599547676Z","modified_time":"2025-02-21T21:50:10Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"cc67f0fb839600d6c9595c6e1c782d58f363987a56d0c739d96e3dcab09b8036","source":"kam193"},{"id":"pypi/2025-02-transaction-utils/solders-utils","import_time":"2025-12-02T23:07:18.638897995Z","modified_time":"2025-02-21T21:50:10Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"eff6c26674dd4f0408742c46785656c3a5d19ca0a87366a60534d37d5a54e687","source":"kam193"},{"id":"pypi/2025-02-transaction-utils/solders-utils","import_time":"2025-12-10T21:38:57.833108292Z","modified_time":"2025-02-21T21:50:10Z","sha256":"1de48d4db6755f2ac7b7280995e8b326ce9ae224577913713623e31355e8b133","source":"kam193","versions":["0.1.1"]},{"id":"RLUA-2026-00771","import_time":"2026-03-19T12:20:28.923943405Z","modified_time":"2026-03-18T12:18:56Z","sha256":"eb4fb9c4ad72103e27553a1b780fcd33a8e6fbbf6277b575ab1997504a5f6e07","source":"reversing-labs"},{"id":"IN-MAL-2026-022831","import_time":"2026-11-18T20:36:30.791876422Z","modified_time":"2026-11-18T20:29:41Z","sha256":"cb21eed8f78e6edbc4b615bfc8f65345e0340db66a14b788635d630a67bf5e9a","source":"amazon-inspector","versions":["1.98.2"]},{"id":"pypi/2026-11-solana-utils-terminalmoney1/solders-utils","import_time":"2026-11-18T21:11:19.006421704Z","modified_time":"2026-11-18T20:39:25.425472Z","sha256":"80e0ec4aa6d82ff7cdd6ed8fafafa78f43cdef496a44f3363b30b730a9fd5930","source":"kam193","versions":["1.98.2"]},{"id":"pypi/2025-02-transaction-utils/solders-utils","import_time":"2026-11-18T21:11:19.00877262Z","modified_time":"2025-02-21T21:50:10Z","sha256":"849131b89d2ade6f265004f83f2de445be68417cd39c70fcbc81bd8a4b2b1e0a","source":"kam193","versions":["0.1.1"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"ANALYST"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}