pypi · Malicious package advisory
Malwareoptimal-spark-config
GHSA-7wmr-rv9x-wcc2
Malicious code in optimal-spark-config (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 14.0.0` ## Source: kam193 (a1c1bf78d6e3b593fd29329b4175a48c645abf4b4b63e93db68f25221329d14c) 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 --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/optimal-spark-config/MAL-2026-1222.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/optimal-spark-config - https://github.com/GCLNS - https://github.com/geekennedy - https://github.com/loudpage5125 - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/optimal-spark-config/MAL-2026-1222.json - https://www.virustotal.com/gui/file/d6029cce705b3842042106efb737c8b14eb736fdbfb8d0d03c3dfbc8d6c207a5?nocache=1 - https://github.com/advisories/GHSA-7wmr-rv9x-wcc2
Compromised versions (1)
- = 14.0.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.