{"id":"MAL-2026-19952","kind":"package","aliases":["MAL-2026-19952"],"related":[],"title":"Malicious code in usdm-minting-client (PyPI)","description":"---\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","summary":null,"severity":"critical","cvss":null,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"usdm-minting-client","fixed":[],"affected":"= 0.1.2; = 0.1.0; = 0.1.3; = 0.1.1","ecosystem":"pypi"}],"ecosystems":["pypi"],"tags":["malicious","package"],"not_affected_if":[],"how_to_check":null,"fix":null,"status":"open","published_at":"2026-11-16T09:21:14+00:00","first_seen_at":"2026-11-16T11:04:42+00:00","triaged_at":"2026-11-16T11:06:40+00:00","updated_at":"2026-11-16T23:37:17+00:00","category":"package","confidence":null,"triage":null,"analyst_status":null,"analyst_note":null,"search":"'-11':322C '-19952':11A,14A '-2026':10A,13A '/.config':113C '/.env':180C '/.usdm.env':182C '/.usdm_client_exfil_done':159C '/.utila':111C '/collect)':137C '/ethena-labs/usdm-minting-client)':302C '0.1.1':39C '2026':321C '3a76785d8f5b95d2ce973cec36ca5d1e7416205636b7d652a2fcd7f5124d7c01':34C '78ca43ab87b214f4da683e6b9f171e762e4956e6db3210796b6ed8bc92e92e72':269C 'along':177C 'also':56C 'amazon':32C 'amazon-inspector':31C 'and.yaml':118C 'applic':97C 'author':224C 'aw':95C 'base':328C 'behavior':233C 'build':67C,257C 'campaign':313C,320C,331C 'categori':310C 'caus':75C 'chang':231C 'ci':266C 'clear':315C 'client':7A,18A,38C,202C,326C 'cloud':89C,285C 'cloud-rel':284C 'cmdclass':54C 'code':2A,236C,343C 'collect':123C 'collector':132C,189C 'collector.example':136C 'collector.example/collect)':135C 'command':337C 'configur':130C 'confus':204C 'credenti':41C,98C,243C,275C,358C 'crypto':351C,355C 'crypto-rel':350C 'cryptocurr':282C 'curat':84C 'current':105C 'cwd':109C 'cwd/.env':179C 'default':72C,134C,249C 'defin':51C 'depend':203C 'detail':23C 'directori':107C 'edit':26C 'entri':287C 'env':348C 'environ':90C,176C,278C 'everi':248C,261C 'example.com':217C 'execut':341C 'exfil':59C 'exfiltr':150C,274C,347C,354C,357C 'exfiltration-credenti':356C 'exfiltration-crypto':353C 'exfiltration-env-vari':346C 'file':119C,161C,276C 'fire':246C 'focus':280C 'for.env':114C 'free':222C 'free-mail':221C 'function':60C,81C 'generic':216C 'github':299C 'github.com':301C 'github.com/ethena-labs/usdm-minting-client)':300C 'googl':96C 'guard':155C 'harvest':77C,244C 'header':192C 'home':110C 'homepag':218C 'import':48C,63C,152C,262C 'info':213C 'infosteal':319C 'init':108C,146C 'inspector':33C 'instal':45C,74C,241C,251C,271C,336C,345C 'installer-sid':240C 'intent':317C 'invok':57C 'json':117C,126C 'kam193':268C 'key':93C,116C,166C,168C 'label':195C,228C 'level':145C 'like':318C 'line':29C 'list':214C,254C 'mail':223C 'mal':9A,12A 'malici':1A,19B,311C,316C,342C 'marker':160C 'mint':6A,37C,201C,207C,325C 'minting':17A 'mnemon':94C,169C 'modul':62C 'overrid':334C 'packag':20B,141C,191C,273C,289C,297C,333C 'pem':115C 'per':21C 'perform':40C 'pip':73C,250C 'pkg':212C 'pkg-info':211C 'platform':258C 'poc':198C 'post':121C,184C 'postinstal':53C 'privat':92C,165C,167C 'product':264C 'publish':307C 'py':147C 'pypi':8A,309C 'read':82C,163C 'reason':327C 'relat':286C,352C 'repeat':148C 'rpc':172C 'run':79C 'sdist':69C,256C 'sdist-build':255C 'seem':290C 'self':194C,227C 'self-label':193C,226C 'set':85C 'setup.py':50C,65C,339C 'ship':235C 'side':242C 'similar':101C 'sourc':22C,30C,267C 'target':205C,293C 'theft':42C 'time':46C,49C 'top':144C 'top-level':143C 'url':129C,133C,173C 'urllib.request.urlopen':139C 'usdm':5A,16A,36C,164C,171C,200C,324C 'usdm-minting-cli':4A,35C,199C,323C 'usdm-minting-client':15A 'user':294C 'utila':99C 'utila/usdm':206C 'valu':124C 'variabl':91C,279C,349C 'via':70C,138C 'walk':103C 'wallet':87C 'without':153C 'work':106C,239C 'workflow':208C","nicknames":[],"mitigations":[],"who_affected":null,"tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":null,"audience":null,"plain_action":null,"pkeys":["usdmmintingclient"],"ptokens":["client","minting","usdm"],"labels":["critical","malicious","package","pypi"],"campaign_type":null,"search_a":"'-19952':11A,14A '-2026':10A,13A 'client':7A,18A 'code':2A 'mal':9A,12A 'malici':1A 'mint':6A 'minting':17A 'pypi':8A 'usdm':5A,16A 'usdm-minting-cli':4A 'usdm-minting-client':15A","search_b":"'malici':19B 'packag':20B","search_c":"'-11':322C '/.config':113C '/.env':180C '/.usdm.env':182C '/.usdm_client_exfil_done':159C '/.utila':111C '/collect)':137C '/ethena-labs/usdm-minting-client)':302C '0.1.1':39C '2026':321C '3a76785d8f5b95d2ce973cec36ca5d1e7416205636b7d652a2fcd7f5124d7c01':34C '78ca43ab87b214f4da683e6b9f171e762e4956e6db3210796b6ed8bc92e92e72':269C 'along':177C 'also':56C 'amazon':32C 'amazon-inspector':31C 'and.yaml':118C 'applic':97C 'author':224C 'aw':95C 'base':328C 'behavior':233C 'build':67C,257C 'campaign':313C,320C,331C 'categori':310C 'caus':75C 'chang':231C 'ci':266C 'clear':315C 'client':38C,202C,326C 'cloud':89C,285C 'cloud-rel':284C 'cmdclass':54C 'code':236C,343C 'collect':123C 'collector':132C,189C 'collector.example':136C 'collector.example/collect)':135C 'command':337C 'configur':130C 'confus':204C 'credenti':41C,98C,243C,275C,358C 'crypto':351C,355C 'crypto-rel':350C 'cryptocurr':282C 'curat':84C 'current':105C 'cwd':109C 'cwd/.env':179C 'default':72C,134C,249C 'defin':51C 'depend':203C 'detail':23C 'directori':107C 'edit':26C 'entri':287C 'env':348C 'environ':90C,176C,278C 'everi':248C,261C 'example.com':217C 'execut':341C 'exfil':59C 'exfiltr':150C,274C,347C,354C,357C 'exfiltration-credenti':356C 'exfiltration-crypto':353C 'exfiltration-env-vari':346C 'file':119C,161C,276C 'fire':246C 'focus':280C 'for.env':114C 'free':222C 'free-mail':221C 'function':60C,81C 'generic':216C 'github':299C 'github.com':301C 'github.com/ethena-labs/usdm-minting-client)':300C 'googl':96C 'guard':155C 'harvest':77C,244C 'header':192C 'home':110C 'homepag':218C 'import':48C,63C,152C,262C 'info':213C 'infosteal':319C 'init':108C,146C 'inspector':33C 'instal':45C,74C,241C,251C,271C,336C,345C 'installer-sid':240C 'intent':317C 'invok':57C 'json':117C,126C 'kam193':268C 'key':93C,116C,166C,168C 'label':195C,228C 'level':145C 'like':318C 'line':29C 'list':214C,254C 'mail':223C 'malici':311C,316C,342C 'marker':160C 'mint':37C,201C,207C,325C 'mnemon':94C,169C 'modul':62C 'overrid':334C 'packag':141C,191C,273C,289C,297C,333C 'pem':115C 'per':21C 'perform':40C 'pip':73C,250C 'pkg':212C 'pkg-info':211C 'platform':258C 'poc':198C 'post':121C,184C 'postinstal':53C 'privat':92C,165C,167C 'product':264C 'publish':307C 'py':147C 'pypi':309C 'read':82C,163C 'reason':327C 'relat':286C,352C 'repeat':148C 'rpc':172C 'run':79C 'sdist':69C,256C 'sdist-build':255C 'seem':290C 'self':194C,227C 'self-label':193C,226C 'set':85C 'setup.py':50C,65C,339C 'ship':235C 'side':242C 'similar':101C 'sourc':22C,30C,267C 'target':205C,293C 'theft':42C 'time':46C,49C 'top':144C 'top-level':143C 'url':129C,133C,173C 'urllib.request.urlopen':139C 'usdm':36C,164C,171C,200C,324C 'usdm-minting-cli':35C,199C,323C 'user':294C 'utila':99C 'utila/usdm':206C 'valu':124C 'variabl':91C,279C,349C 'via':70C,138C 'walk':103C 'wallet':87C 'without':153C 'work':106C,239C 'workflow':208C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T09:21:14+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"osv-malicious","external_id":"MAL-2026-19952","url":"https://osv.dev/vulnerability/MAL-2026-19952","severity":"critical","published_at":"2026-11-16T09:21:14+00:00","modified_at":"2026-11-16T22:45:04+00:00","first_seen_at":"2026-11-16T11:04:42+00:00","fetched_at":"2026-11-16T23:37:17+00:00","note":null}],"documents":[],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}