MAL-2026-11520
Dashboard / Malicious Package / MAL-2026-11520
MAL-2026-11520
Summary: Malicious code in psbt-utils (PyPI)
Details: Source: amazon-inspector (40293a9b1851f25decc83d08f82fab01f1f373d95e13dc937575b7182d470720) psbt-utils presents itself as a PSBT/Bitcoin wallet signing library handling WIF and hex private keys. update.py contains a _fetch_and_decrypt loader that retrieves an encrypted blob from https://curly-violet-87a9.ricardorichp.workers.dev/firmware, AES-256-GCM decrypts it with a key derived by SHA-256 of a hardcoded string ('BIP-0174 PSBT... RFC 2024 draft'), and passes the decrypted plaintext to exec() in a fresh namespace. The exec'd code defines TelemetrySender.load and TelemetrySender.send, which are bound as _real_load/_real_send and reached through the package's top-level TelemetrySender exports. Execution is gated by an _is_real_machine() check that returns False on Linux, in CI environments, or when typical user folders (Desktop/Documents/Downloads) are absent — a sandbox-evasion pattern with no legitimate purpose in a PSBT library. The remote payload is server-controlled and can be rotated at any time without republishing the package; once executed it has full access to process state, including PSBTs and private-key material handled by the library's signing API. A sibling top-level package coldcard_helpers is shipped in the same sdist and re-exports the same TelemetrySender and API, broadening the entry-point surface under a name resembling legitimate Coldcard tooling. The combination of a wallet/signing package, hidden fetch-decrypt-exec of encrypted remote code from a non-publisher Cloudflare Workers subdomain, sandbox-evasion gating, and dual entry-point names is a wallet-secret exfiltration dropper. Source: kam193 (859493aa8a6e18c86c8920eb0558655da04891762ef0aba6166e69899013e1d7) The code advertised as a firmware upgrader for hardware wallets in fact downloads an infostealer. The stealer searches the machine for cryptocurrency sensitive data (wallet files, seeds), browser data (passwords, cookies), all kinds of credentials (including tokens, passwords, SSH keys, TOTP seeds etc.), other sensitive files and current clipboard content. Data are exfiltrated, and the stealer configures persistence via scheduled tasks or LaunchAgent. The code deliberatly doesn't start in CI environments and checks if the system looks real. Continuation of 2026-08-coldcard-helpers campaign. Related packages are used in malicious repository https://github.com/domaup/coldcard-poc Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2026-08-psbt-utils Reasons (based on the campaign): - infostealer - files-exfiltration - clipboard-stealing - exfiltration-ssh-keys - obfuscation - crypto-related - exfiltration-cloud-tokens - Downloads and executes a remote malicious script. - exfiltration-browser-data - exfiltration-crypto - exfiltration-credentials - persistence
References: https://bad-packages.kam193.eu/pypi/package/psbt-utils, https://pypi.org/project/psbt-utils/1.0.0/, https://github.com/domaup/coldcard-poc/commit/b283e8f995b0933008c281f2161ff01245d30253
Affected packages
Package
Name: psbt-utils
Purl: pkg:pypi/psbt-utils
Affected ranges
Type: N/A
Events:
