pypi · Malicious package advisory
Malwaretest-packages2
GHSA-2j7x-j4c5-phgr
Malicious code in test-packages2 (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.1` ## Source: kam193 (4336b840413f8b1d796d06001cd5fb057d2e92276771ec70122834253e5e41f3) Generic campaign for all (likely) research / pentests, where the amount or art of collected data raises questions about the privacy, security and ethical side. --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: GENERIC-questionable-pentest Reasons (based on the campaign): - exfiltration-env-variables - exfiltration-generic - The package overrides the install command in setup.py to execute malicious code during installation. - typosquatting --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/test-packages2/MAL-2024-12360.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/test-packages2 - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/test-packages2/MAL-2024-12360.json - https://github.com/advisories/GHSA-2j7x-j4c5-phgr
Compromised versions (1)
- = 0.1
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.