Files
vuln-osv/data/PyPI/MAL-2026-19952.json
T

1 line
6.4 KiB
JSON

{"schema_version":"1.9.2","id":"MAL-2026-19952","published":"2026-11-16T09:21:14Z","modified":"2026-11-16T22:45:04.558673674Z","summary":"Malicious code in usdm-minting-client (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3a76785d8f5b95d2ce973cec36ca5d1e7416205636b7d652a2fcd7f5124d7c01)\nusdm-minting-client 0.1.1 performs credential theft at both install time and import time. setup.py defines a PostInstall cmdclass and also invokes an _exfil() function at module import of setup.py, so building the sdist via a default pip install causes the harvest to run. The function reads a curated set of wallet and cloud environment variables (PRIVATE_KEY, MNEMONIC, AWS_*, GOOGLE_APPLICATION_CREDENTIALS, UTILA_*, and similar) and walks the current working directory, INIT_CWD, $HOME, ~/.utila, and ~/.config for.env,.pem,.key,.json, and.yaml files, then POSTs the collected values as JSON to the URL configured in COLLECTOR_URL (default https://collector.example/collect) via urllib.request.urlopen. The package's top-level __init__.py repeats the exfiltration on import without any guard other than a ~/.usdm_client_exfil_done marker file: it reads USDM_PRIVATE_KEY, PRIVATE_KEY, MNEMONIC, and USDM_RPC_URL from the environment along with cwd/.env, ~/.env, and ~/.usdm.env, and POSTs them to the same collector. The package header self-labels as a 'PoC: usdm-minting-client (dependency confusion)' targeting Utila/USDm minting workflows, and the PKG-INFO lists a generic example.com homepage with a free-mail author. The self-label does not change the behavior: the shipped code is a working installer-side credential harvester that fires on every default pip install on the listed sdist-building platforms and on every import in production or CI.\n\n## Source: kam193 (78ca43ab87b214f4da683e6b9f171e762e4956e6db3210796b6ed8bc92e92e72)\nDuring installation the package exfiltrates credential files and environment variables, focusing on cryptocurrency- and cloud-related entries. The package seems to be targeting users of a package from GitHub (https://github.com/ethena-labs/usdm-minting-client) which has not been published to PyPI.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-11-usdm-minting-client\n\n\nReasons (based on the campaign):\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n\n\n - exfiltration-env-variables\n\n\n - crypto-related\n\n\n - exfiltration-crypto\n\n\n - exfiltration-credentials\n","affected":[{"package":{"name":"usdm-minting-client","ecosystem":"PyPI","purl":"pkg:pypi/usdm-minting-client"},"versions":["0.1.2","0.1.0","0.1.3","0.1.1"],"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"},{"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":["usdm_minting_client-0.1.2.tar.gz"],"path":"setup.py","sha256":"b8e459b4e46db0de6ffb935c599362d5a4398d2e25a0e143d62d90f353444a17","tlsh":"2b91fe94e9852932f15397b89c65a4522334fa5b3e01387837ec13582fce42ed2b5bed"},{"artifacts":["usdm_minting_client-0.1.2.tar.gz"],"path":"usdm_minting_client/__init__.py","sha256":"567b7db99843de26ed70afdb0a7aaafba5ecc884537c46b6a427434aab9543ad","tlsh":"c131549769010463e04be3895c7d6ab87772b84b2c132cb439cd53146fdd61e61b1bea"}],"package_integrity":[{"filename":"usdm_minting_client-0.1.2.tar.gz","hashes":{"blake2b_256":"f581c849724004e62bd78594507cfde8b336887aadaebbaea67ef49e979ebc04","md5":"9fb27aa51a1c57e5f2d38c222bac7dcf","sha256":"8bd61bda266da10746f24c047399f77ba1282ccdc412f23e0a2c51322b0d1481"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/usdm-minting-client/MAL-2026-19952.json"}}],"references":[{"type":"PACKAGE","url":"https://pypi.org/project/usdm-minting-client/0.1.2/"},{"type":"PACKAGE","url":"https://pypi.org/project/usdm-minting-client/0.1.0/"},{"type":"PACKAGE","url":"https://pypi.org/project/usdm-minting-client/0.1.3/"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/usdm-minting-client"},{"type":"PACKAGE","url":"https://pypi.org/project/usdm-minting-client/0.1.1/"}],"database_specific":{"iocs":{"urls":["https://tag-pace-ham-stylus.trycloudflare.com/collect"]},"malicious-packages-origins":[{"id":"IN-MAL-2026-022783","import_time":"2026-11-16T09:44:17.356085859Z","modified_time":"2026-11-16T09:25:31Z","sha256":"a0a06bd1565eb32991e9f3741ec02facd63c61cae5ed8acbb044d70cc2e18ffe","source":"amazon-inspector","versions":["0.1.2"]},{"id":"IN-MAL-2026-022782","import_time":"2026-11-16T09:44:17.300931238Z","modified_time":"2026-11-16T09:25:23Z","sha256":"b1ae99636d7eb86ee7c8000ddb08003dd3f5613af27581e668fe12d783b0d665","source":"amazon-inspector","versions":["0.1.0"]},{"id":"IN-MAL-2026-022784","import_time":"2026-11-16T09:44:17.389237259Z","modified_time":"2026-11-16T09:25:46Z","sha256":"b5189681b5b78596a7d345f269646bb69ddecf8de31574a7226cce5857a2f630","source":"amazon-inspector","versions":["0.1.3"]},{"id":"pypi/2026-11-usdm-minting-client/usdm-minting-client","import_time":"2026-11-16T09:44:19.594130662Z","modified_time":"2026-11-16T09:21:14.591147Z","sha256":"78ca43ab87b214f4da683e6b9f171e762e4956e6db3210796b6ed8bc92e92e72","source":"kam193","versions":["0.1.0","0.1.1","0.1.2","0.1.3"]},{"id":"pypi/2026-11-usdm-minting-client/usdm-minting-client","import_time":"2026-11-16T10:14:50.720295226Z","modified_time":"2026-11-16T09:33:18.743412Z","sha256":"bce756ba12d2af3187d8dc1dacdbaee0c60ba932cc3c12ef9ab27857571b450d","source":"kam193","versions":["0.1.0","0.1.1","0.1.2","0.1.3"]},{"id":"IN-MAL-2026-022816","import_time":"2026-11-16T22:36:32.377947657Z","modified_time":"2026-11-16T22:30:57Z","sha256":"3a76785d8f5b95d2ce973cec36ca5d1e7416205636b7d652a2fcd7f5124d7c01","source":"amazon-inspector","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/"],"type":"REPORTER"}]}