1 line
4.5 KiB
JSON
1 line
4.5 KiB
JSON
{"schema_version":"1.9.2","id":"MAL-2026-20136","published":"2026-11-18T20:29:52Z","modified":"2026-11-18T21:15:03.500783304Z","summary":"Malicious code in solana-utils-terminalmoney1 (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b58d55f9a4d2ae8d63dbba8c5b88c7fe054e48c2cac2c11cc05d41efe0d4efb9)\nThe sdist's setup.py unconditionally runs `subprocess.run([sys.executable, 'hxboot.py'])` during `pip install`, auto-executing a bundled stealer. hxboot.py reads installer secrets from `~/.env`, `~/.npmrc`, `~/.aws/credentials`, `~/.ssh/id_ed25519`, `~/.ssh/id_rsa`, `~/.config/solana/id.json`, `wallet.json`, and `keypair.json`, and scrapes environment variables matching KEY/SECRET/TOKEN/PASS/MNEM/SEED/PRIV/RPC/API/WALLET. It additionally enumerates Chrome/Chromium/Brave `Local Extension Settings` for MetaMask (extension id nkbihfbeogaeaoehlefnkodbefgpgknn) and Phantom (bfnaelmomeimhlpmgjnjophhpkkoljpa), base64-encoding `.log`/`.ldb` session/wallet files. The collected JSON blob is chunked into ~3200-byte pieces and POSTed to the hardcoded endpoint `https://ntfy.sh/hx83e33eb9`, tagged with the installer's hostname. Package metadata sets `url=https://pypi.org/project/solana-py/` and the README is titled `solana-py`, impersonating the legitimate solana-py project while the distribution name is `solana-utils-terminalmoney1`.\n\n## Source: kam193 (8b9f1e33c12c0eb5b5aefe865fa28651fa55e45a28a5d2cd4cc55c567a7e3af2)\nDuring installation package exfiltrates sensitive environment variables, files and data from browser extensions, focusing on cryptocurrency-related informations.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-11-solana-utils-terminalmoney1\n\n\nReasons (based on the campaign):\n\n\n - exfiltration-env-variables\n\n\n - exfiltration-credentials\n\n\n - exfiltration-browser-data\n\n\n - exfiltration-crypto\n\n\n - crypto-related\n\n\n - typosquatting\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n","affected":[{"package":{"name":"solana-utils-terminalmoney1","ecosystem":"PyPI","purl":"pkg:pypi/solana-utils-terminalmoney1"},"versions":["1.98.2","1.98.3"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"artifacts":["solana_utils_terminalmoney1-1.98.2.tar.gz"],"path":"hxboot.py","sha256":"fc5f679e07d2f89e0fe4fc67933b65e027d0263b8e623e19166d110432a8bf8d","tlsh":"642186c3d40e1807d01d53c48c060ed836afff8860af285aabd76fc0908c2b2166b61d"}],"package_integrity":[{"filename":"solana_utils_terminalmoney1-1.98.2.tar.gz","hashes":{"blake2b_256":"4e7b2a83e69e8b28a10e0037037d7d0250ef86bc32239d7051d3934025b188c9","md5":"af75d44ac9353b41bdf0cd821cbecb02","sha256":"0d86fe55e5d415238cd83716a62f65da4a892ad400eb8d70bc7f64fe40842e71"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/solana-utils-terminalmoney1/MAL-2026-20136.json"}}],"references":[{"type":"PACKAGE","url":"https://pypi.org/project/solana-utils-terminalmoney1/1.98.2/"},{"type":"PACKAGE","url":"https://pypi.org/project/solana-utils-terminalmoney1/1.98.3/"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/solana-utils-terminalmoney1"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-022833","import_time":"2026-11-18T20:36:31.141845495Z","modified_time":"2026-11-18T20:29:52Z","sha256":"288fb4a2f4a24c5e594d11fb8eb85dd3aa6475724509c7fc044b8d86933e2659","source":"amazon-inspector","versions":["1.98.2"]},{"id":"IN-MAL-2026-022834","import_time":"2026-11-18T20:36:31.269639292Z","modified_time":"2026-11-18T20:30:00Z","sha256":"b58d55f9a4d2ae8d63dbba8c5b88c7fe054e48c2cac2c11cc05d41efe0d4efb9","source":"amazon-inspector","versions":["1.98.3"]},{"id":"pypi/2026-11-solana-utils-terminalmoney1/solana-utils-terminalmoney1","import_time":"2026-11-18T21:11:19.008031858Z","modified_time":"2026-11-18T20:36:36.8461Z","sha256":"8b9f1e33c12c0eb5b5aefe865fa28651fa55e45a28a5d2cd4cc55c567a7e3af2","source":"kam193","versions":["1.98.2","1.98.3"]}]},"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/"],"type":"REPORTER"}]} |