MAL-2026-19954: Malicious code in ldk-node (PyPI)
--- -= Per source details. Do not edit below this line.=-
Source: kam193 (44588499f90f7a3fe46da6e8cdab060505859066418cfbf68980e9c7eb4eee9b) During import, the package exfiltrates basic environment information as well as all LDK environment variables. It pretends to be a compatibility wrapper for a non-Python package.
---
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2026-11-ldk-node
Reasons (based on the campaign):
- dependency-confusion
- exfiltration-env-variables
- The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.
Affected Software
Event History
Frequently Asked Questions
What information could be exposed if this package is imported?
During import, the package exfiltrates basic environment information and all environment variables whose names begin with LDK.
What action triggers the malicious behavior?
The described exfiltration occurs during import, so environments that import the package are exposed to the behavior.
Why might this package be installed unexpectedly?
The campaign is identified as dependency confusion, and the package presents itself as a compatibility wrapper for a non-Python package.