{"id":"MAL-2026-20135","summary":"Malicious code in solana-py-utils (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (dc8b7ddf366b6a8802ad0f189a30e59d76e2a9d779227ec155d7f53a6d130490)\nThe sdist's setup.py unconditionally runs the bundled hxboot.py via subprocess under the current Python interpreter during pip install. hxboot.py reads installer-owned secrets including ~/.aws/credentials, ~/.ssh/id_* keys, ~/.netrc, ~/.pypirc, ~/.npmrc, kube/docker/gh/gcloud configuration, Solana keypair files (~/.config/solana/id.json, wallet.json),.env files, and *.pem/*.key material, and scrapes environment variables matching KEY/SECRET/TOKEN/PASS/MNEM/SEED/PRIV/API/WALLET. It additionally enumerates Chromium/Chrome/Brave/Edge user profiles for the MetaMask (nkbihfbeogaeaoehlefnkodbefgpgknn), Phantom (bfnaelmomeimhlpmgjnjophhpkkoljpa), and another wallet extension (bhhhlbepdkbapadjdnnojkbgioiodbic) Local Extension Settings, and base64-encodes the leveldb.log/.ldb contents. The aggregated data is POSTed via urllib to the hardcoded topic https://ntfy.sh/hx83e33eb9. The package name mimics legitimate Solana tooling (typosquat of solana-py), and the stealer fires automatically on `pip install` on every platform that builds the sdist.\n\n## Source: kam193 (7106643886b94c7d16d9e66e601c05cc8a05bb775d75d006fcd06e733ac1892c)\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","modified":"2026-11-18T21:15:03.455901013Z","published":"2026-11-18T20:29:34Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-11-18T20:29:34Z","sha256":"6792d58c87bc86a313a03ceeb2d18e6bfe5666a649a93c06c16cf649069bc2e7","source":"amazon-inspector","versions":["1.98.2"],"id":"IN-MAL-2026-022830","import_time":"2026-11-18T20:36:30.64073955Z"},{"versions":["1.98.3"],"id":"IN-MAL-2026-022832","import_time":"2026-11-18T20:36:30.968913499Z","modified_time":"2026-11-18T20:29:46Z","sha256":"dc8b7ddf366b6a8802ad0f189a30e59d76e2a9d779227ec155d7f53a6d130490","source":"amazon-inspector"},{"modified_time":"2026-11-18T20:38:00.877819Z","sha256":"7106643886b94c7d16d9e66e601c05cc8a05bb775d75d006fcd06e733ac1892c","source":"kam193","versions":["1.98.2","1.98.3"],"id":"pypi/2026-11-solana-utils-terminalmoney1/solana-py-utils","import_time":"2026-11-18T21:11:19.007384089Z"}]},"references":[{"type":"PACKAGE","url":"https://pypi.org/project/solana-py-utils/1.98.2/"},{"type":"PACKAGE","url":"https://pypi.org/project/solana-py-utils/1.98.3/"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/solana-py-utils"}],"affected":[{"package":{"name":"solana-py-utils","ecosystem":"PyPI","purl":"pkg:pypi/solana-py-utils"},"versions":["1.98.2","1.98.3"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/solana-py-utils/MAL-2026-20135.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"package_integrity":[{"hashes":{"md5":"a1a68fc4f54ca58bb15ea54001c4ae77","sha256":"810cc85d7438721ab5bb9243c0c5b2593c82e0a83a7e5fd6b2666490b675b349","blake2b_256":"c0afd8e4cd5c78547dc3a8f65011e0d46a5131792e679183d43c75d668796d40"},"filename":"solana_py_utils-1.98.2.tar.gz"}],"evidence_files":[{"sha256":"fc5f679e07d2f89e0fe4fc67933b65e027d0263b8e623e19166d110432a8bf8d","tlsh":"642186c3d40e1807d01d53c48c060ed836afff8860af285aabd76fc0908c2b2166b61d","artifacts":["solana_py_utils-1.98.2.tar.gz"],"path":"hxboot.py"},{"tlsh":"c0f090068f032c00c3eae03c6f0216ef8ceb3b206f638c9e98e8912232887d05207220","artifacts":["solana_py_utils-1.98.2.tar.gz"],"path":"setup.py","sha256":"e3d24f43d65463ff021b32fd75e3f2c2e7fe19e3e439aae75fa403773e6f7702"}]}}}],"schema_version":"1.9.2","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"}]}