criticalMalware report
GHSA-hhw3-765m-4v5m
Malicious code in tencent-cloud-python-sdk (PyPI)
Impact
## 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))
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | tencent-cloud-python-sdk | > 0 | none recorded |
Weakness classification
References
- GitHub advisory
- https://github.com/advisories/GHSA-hhw3-765m-4v5m
- 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