VYPR

pypi · Malicious package advisory

Malware

alibabacloud-oss2

GHSA-h6qg-fpwm-hmhf

Malicious code in alibabacloud-oss2 (PyPI)

Details

**Severity:** Critical

**Affected versions:** `> 0`

## Source: google-open-source-security (d804868504b96ba968b7eae99df63e235a0eaa2eab4a7951ae02c98c614f1828)
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/alibabacloud-oss2/MAL-2023-8353.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/alibabacloud-oss2/MAL-2023-8353.json
- https://github.com/advisories/GHSA-h6qg-fpwm-hmhf

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.