pypi · Malicious package advisory
Malwarec2
GHSA-62q2-6mx6-44m2
Malicious code in c2 (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.1.7` ## Source: kam193 (5bf8fb109bddeaac7b9818f893783456619c44562c50fe26abea906cbc1ef06a) Packages exfiltrate the diff of the current repository. The code in "main.py" suggests it's not a real attempt to provide AI-generated commit message, but a security research attempting to leverage typosquatting. --- Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities. Campaign: 2024-08-old-bitcommit Reasons (based on the campaign): - exfiltration-generic - typosquatting --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/c2/MAL-2024-12224.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/c2 - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/c2/MAL-2024-12224.json - https://github.com/advisories/GHSA-62q2-6mx6-44m2
Compromised versions (1)
- = 0.1.7
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.