pypi · Malicious package advisory
Malwarebitcommit
GHSA-f743-phh8-84r4
Malicious code in bitcommit (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.1.7` ## Source: kam193 (d0e954ac7acd6af73d285edea41177ee09be01a2e14a1b4e6b195ba7e07b9515) 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/bitcommit/MAL-2024-12219.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/bitcommit - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/bitcommit/MAL-2024-12219.json - https://github.com/advisories/GHSA-f743-phh8-84r4
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.