pypi · Malicious package advisory
Malwarehmac2
GHSA-j3j5-2r76-ch65
Malicious code in hmac2 (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.0.1` ## Source: kam193 (055915f62eab8a5fe37b7501a3ed565a2aba267bdd69e82acaa13525bacf41a1) The package contains obfuscated code that exfiltrate basic data, and then executes commands delivered from remote server --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2024-10-hmac2 Reasons (based on the campaign): - obfuscation - dependency-confusion - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk. - exfiltration-generic --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/hmac2/MAL-2024-12287.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/hmac2 - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/hmac2/MAL-2024-12287.json - https://github.com/advisories/GHSA-j3j5-2r76-ch65
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.