Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

psbt-utilsPyPI

psbt-utils is a confirmed malicious PyPI package (MAL-2026-11520) that steals credentials and exfiltrates sensitive data (malicious version 1.0.0). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in psbt-utils (PyPI)

MAL-2026-11520
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
pip uninstall psbt-utils

What this malware does

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.

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

Malicious versions

1 flagged
1.0.0

Indicators of compromise (SHA-256)

5424e50d87f8c14eb7d0d37d4c98e86a1c06fb3613a66fd9af2e9ab6fd611938
40293a9b1851f25decc83d08f82fab01f1f373d95e13dc937575b7182d470720
859493aa8a6e18c86c8920eb0558655da04891762ef0aba6166e69899013e1d7

Detection & response playbook

Credential / info stealer
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for psbt-utils (version 1.0.0). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging psbt-utils across your stack and pipelines.

  2. If you installed it — respond

    psbt-utils is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If psbt-utils was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks psbt-utils before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. psbt-utils on PyPI has been identified as a malicious package (version 1.0.0 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

2026-08-psbt-utilsIN-MAL-2026-010994

References

Credits

  • Amazon Inspector · finder
  • Kamil Mańkowski (kam193) · reporter

Detect & block this

O3 blocks psbt-utils-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

psbt-utils (PyPI) malicious package — MAL-2026-11520 | O3 Security