Skip to main content
MalwarePublished

ldk-node (PyPI) · Malicious Code

Affects ldk-nodeSource GCVE Database

0

Malicious package : remove ldk-node and rotate any secrets on hosts that installed it.

Data as of 16 Nov 2026, 12:50 UTC

Classification

Malicious package

Published to PyPI · OSV MAL-2026-19954

What to do

Remove ldk-node from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
PyPIldk-nodeAffected
  • =0.7.9999
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The ldk-node package on PyPI contains malicious code that exfiltrates basic environment information and all environment variables starting with 'LDK' during import. It masquerades as a compatibility wrapper for a non-Python package. This behavior is part of a dependency confusion campaign with clearly malicious intent, including information stealing.

References

Community reviews

Loading reviews…