pypi · Malicious package advisory
Malwaretest-poc-package-for-session-2
GHSA-4x2c-jf2x-vjvq
Malicious code in test-poc-package-for-session-2 (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.0.1` ## Source: kam193 (0b7003b7bd9585bbb25ce1f957ffef83603883d550f07f77443780a7d47a7f20) Packages that might be part of testing for pentesting / malicious activity / joy, with suspicious activity that does not present any real harm. --- Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities. Campaign: GENERIC-simple-tests Reasons (based on the campaign): - The package overrides the install command in setup.py to execute malicious code during installation. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/test-poc-package-for-session-2/MAL-2026-503.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/test-poc-package-for-session-2 - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/test-poc-package-for-session-2/MAL-2026-503.json - https://github.com/advisories/GHSA-4x2c-jf2x-vjvq
Compromised versions (1)
- = 0.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.