# GHSA-V882-M3JG-6XJ6: Malicious code in usdm-minting-client (PyPI)

- Database: GitHub
- Malicious package: yes
- Published: 2026-11-16
- Modified: 2026-11-17

## Affected versions

- usdm-minting-client (PyPI): 0.1.2
- usdm-minting-client (PyPI): 0.1.0
- usdm-minting-client (PyPI): 0.1.3
- usdm-minting-client (PyPI): 0.1.1

## 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, https://webhook.site/ec3e3cb9-4cc1-4cb8-a273-4811768a631d (overridable via COLLECTOR_URL). The top-level usdm_minting_client/__init__.py repeats the exfiltration on every `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 (https://github.com/ethena-labs/usdm-minting-client) which has not been published to PyPI.


---

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

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/25bc5736b59de100db6f0340f720ffe68c1dd043/osv/malicious/pypi/usdm-minting-client/MAL-2026-19952.json))

## References

- https://bad-packages.kam193.eu/pypi/package/usdm-minting-client
- https://github.com/ossf/malicious-packages/blob/25bc5736b59de100db6f0340f720ffe68c1dd043/osv/malicious/pypi/usdm-minting-client/MAL-2026-19952.json
- https://pypi.org/project/usdm-minting-client/0.1.0
- https://pypi.org/project/usdm-minting-client/0.1.2
- https://pypi.org/project/usdm-minting-client/0.1.3
- https://github.com/ossf/malicious-packages/blob/74d1b2820358b1cd3d1136e12e921607b304d806/osv/malicious/pypi/usdm-minting-client/MAL-2026-19952.json
- https://pypi.org/project/usdm-minting-client/0.1.1
- https://github.com/advisories/GHSA-v882-m3jg-6xj6

Page: https://cve.now/GHSA-V882-M3JG-6XJ6

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
