MAL-2026-1222 Malicious code in optimal-spark-config (PyPI)
- Package
- optimal-spark-config
- Registry
- PyPI
What is MAL-2026-1222?
MAL-2026-1222 is a malicious package in optimal-spark-config, published on 3 Mar 2026.
Official description
During installation, the package starts obfuscated code that attempts to exfiltrate some basic information using DNS requests and then likely cover tracks by installing a similarly named package from private repository
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2026-02-urllib-slim
Reasons (based on the campaign):
typosquatting
Downloads and executes a remote executable.
obfuscation
dependency-confusion
What should I do about MAL-2026-1222?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.