pypi · Malicious package advisory
Malwarelab-3-package-438d82fc
GHSA-grf3-8r5w-5hf3
Malicious code in lab-3-package-438d82fc (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.1.2` ## Source: kam193 (1647151de9ec3b78d6f3b3c4dc4bfe1f7b27f9c1ffdb56d482daa533fd2b1ec3) Packages showing simple variants of revshell with targets to ngrok. Most probably experiments. Later versions moved to use Burp Collaborator to exfiltrate simple data. Pentest? An artifact from some red team curse? --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2024-08-lab-artifacts-revshell Reasons (based on the campaign): - The package contains code to create a reverse shell, allowing an attacker to execute any commands on the victim's machine. - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk. - The package overrides the install command in setup.py to execute malicious code during installation. ## Source: ossf-package-analysis (258568a04c1e81f2ef465ac674b9df033cb918a90ae542bc8ce170578309a32b) The OpenSSF Package Analysis project identified 'lab-3-package-438d82fc' @ 0.1.2 (pypi) as malicious. It is considered malicious because: - The package communicates with a domain associated with malicious activity. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/lab-3-package-438d82fc/MAL-2024-9271.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/lab-3-package-438d82fc - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/lab-3-package-438d82fc/MAL-2024-9271.json - https://github.com/advisories/GHSA-grf3-8r5w-5hf3
Compromised versions (1)
- = 0.1.2
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.