MAL-2026-3201 Malicious code in lightning (PyPI)

Malicious package Published
Package
lightning
Registry
PyPI

What is MAL-2026-3201?

MAL-2026-3201 is a malicious package in lightning, published on 30 Apr 2026.

Official description

Versions 2.6.2, 2.6.3 were compromised.

Compromised versions contain injected code that starts automatically during importing the module, downloads (legitimate) JavaScript runtime, and executes included JavaScript infostealer. It collects credentials from multiple sources (e.g. files, process memory, cloud metadata endpoints, CLI commands like gh or gcloud), sensitive cryptocurrency data, shell history files. It also attempts to spread itself using discovered credentials to other repositories and packages.


Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2026-04-compr-lightning

Reasons (based on the campaign):

  • infostealer

  • files-exfiltration

  • exfiltration-ssh-keys

  • exfiltration-crypto

  • exfiltration-credentials

  • compromised-package

What should I do about MAL-2026-3201?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

Sources

Is MAL-2026-3201 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free