Malicious code in python-aliyun-sdk-kms (PyPI)
Summary
MAL-2023-8366: Malicious code in python-aliyun-sdk-kms (PyPI). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
-= Per source details. Do not edit below this line.=-
Source: checkmarx (53bdcdc5414f25435cd821a9217982c4b486c91100caa324a9c3613d4ccd8d42)
Malicious Typosquatting packages campaign targeting developers, steals cloud service credentials
Source: google-open-source-security (4b0a37d9408528e981948fc9fa594b68b02980adbd851742fd03422ff814a7d7)
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.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall python-aliyun-sdk-kms
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →