pypi · Malicious package advisory
Malwaretencent-cloud-python-sdk
GHSA-hhw3-765m-4v5m
Malicious code in tencent-cloud-python-sdk (PyPI)
Details
**Severity:** Critical **Affected versions:** `> 0` ## Source: google-open-source-security (bf236cca18e4d157a57cd3de7abed8ad967103c42b9ae53f5026174af46b64a4) 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/tencent-cloud-python-sdk/MAL-2023-8370.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/tencent-cloud-python-sdk/MAL-2023-8370.json - https://github.com/advisories/GHSA-hhw3-765m-4v5m
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.