pypi · Malicious package advisory
Malwareformatter-test-package
GHSA-ghfv-h5v8-mv83
Malicious code in formatter-test-package (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.1.2` ## Source: kam193 (8ad808b5e90e246a93704f922e2dd59bf4c5954fdfc55ccf5371c6b13ac7483f) The package is designed to exfiltrate basic data, like hostname and OS details, as well as collect information about the stacktrace it's imported from. --- 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: 2024-08-moti-analytics Reasons (based on the campaign): - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/formatter-test-package/MAL-2024-10029.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/formatter-test-package - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/formatter-test-package/MAL-2024-10029.json - https://github.com/advisories/GHSA-ghfv-h5v8-mv83
Compromised versions (1)
- = 0.1.2
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.