pypi · Malicious package advisory
Malwareninja-core-optimizer
GHSA-rcx4-8wxf-vqv8
Malicious code in ninja-core-optimizer (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 1.3.3` ## Source: kam193 (fbe38f659a9fac5304f648aa594e12123221abd687755378f05b3efe17d6d4c7) During installation, obfuscated code exfiltrates cryptocurrency wallet data to a hardcoded location --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2026-05-ninja-core-utils Reasons (based on the campaign): - The package overrides the install command in setup.py to execute malicious code during installation. - obfuscation - crypto-related - exfiltration-crypto - backdoor --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/ninja-core-optimizer/MAL-2026-3396.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/ninja-core-optimizer - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/ninja-core-optimizer/MAL-2026-3396.json - https://github.com/advisories/GHSA-rcx4-8wxf-vqv8
Compromised versions (1)
- = 1.3.3
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.