Malicious code in usdm-minting-client (PyPI)
Description
Source: amazon-inspector (b1ae99636d7eb86ee7c8000ddb08003dd3f5613af27581e668fe12d783b0d665)
The package is a dependency-confusion lure targeting internal USDm/Utila minting tooling. setup.py defines an _exfil() routine that runs both at module import time and inside a custom install cmdclass, so it fires on pip install as well as any sdist build. _exfil() reads wallet and cloud secrets from environment variables (PRIVATE_KEY, MNEMONIC, USDM_PRIVATE_KEY, AWS_SECRET_ACCESS_KEY, GOOGLE_APPLICATION_CREDENTIALS, UTILA_SA_PRIVATE_KEY and similar), reads.env files from the current working directory and $HOME, and recursively collects.pem/.key/.json/.yaml files under ~/.utila and ~/.config/utila. The collected material is JSON-encoded and POSTed via urllib.request.urlopen to a hardcoded destination, webhook.site/import usdm_minting_client, sending USDM_PRIVATE_KEY, PRIVATE_KEY, MNEMONIC, USDM_RPC_URL and the contents of ~/.env and ~/.usdm.env to the same collector endpoint. A header comment in setup.py self-describes the package as a dependency-confusion PoC impersonating an internal usdm-minting-client, and the metadata uses a placeholder homepage (example.com) with a free-mail author address, consistent with a lure rather than a legitimate release.
Source: kam193 (78ca43ab87b214f4da683e6b9f171e762e4956e6db3210796b6ed8bc92e92e72)
During 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 (github.com/
---
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2026-11-usdm-minting-client
Reasons (based on the campaign):
- The package overrides the install command in setup.py to execute malicious code during installation.
- exfiltration-env-variables
- crypto-related
- exfiltration-crypto
- exfiltration-credentials
---