ldk-node PyPI malware: fake compatibility wrapper exfiltrates env vars and system info (0.7.9999)
Severity: critical · Patch status: no-fix-needed · Since 2026-11-16
A malicious PyPI package, ldk-node version 0.7.9999, was published as a fake compatibility wrapper for the non-Python ldk-node project, apparently a dependency-confusion attack. On import, the package exfiltrates basic environment information (IP address, username) plus all environment variables beginning with LDK. The campaign (2026-11-ldk-node) was identified by kam193 and catalogued by OpenSSF and the GitHub Advisory Database (GHSA-vxjx-jrjx-wwm8, CWE-506). No patched version exists; the package is malware and should be removed, not upgraded. Anyone who installed ldk-node 0.7.9999 from PyPI should treat LDK environment variables and host metadata as potentially leaked and rotate any secrets they may have contained.
What to do
- Remove ldk-node 0.7.9999 from all environments and block/allowlist the package in PyPI dependencies
- Audit environments where it was imported; treat all LDK* environment variables as compromised and rotate any credentials or keys they contained
- Review logs for outbound connections made at import time and check for further exfiltration
- Pin dependencies and verify package provenance to prevent dependency-confusion installs
Sources
All live incidents on Threat Watch