pypi · Malicious package advisory
Malwareaws-enumerate-iam
GHSA-vq8r-qm4c-fxc8
Malicious code in aws-enumerate-iam (PyPI)
Details
**Severity:** Critical **Affected versions:** `> 0` ## Source: google-open-source-security (96d7eea455989a7a10bf2fafd9f9c4a2d5d9a4c2a3ec852e424885f3e51c5edb) Attack targeted at users of Alibaba, AWS and Telegram via malicious packages published to PyPI. The malicious code was hidden in strategicly chosen functions and would only trigger when these functions were called. The malicious code does not automatically run on install or import, helping the packages evade detection. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/aws-enumerate-iam/MAL-2023-8359.json)) **References:** - https://blog.phylum.io/cloud-provider-credentials-targeted-in-new-pypi-malware-campaign - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/aws-enumerate-iam/MAL-2023-8359.json - https://github.com/advisories/GHSA-vq8r-qm4c-fxc8
Compromised versions (1)
- > 0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.