pypi · Malicious package advisory
Malwareartifact-lab-3-package-736f752d
GHSA-pmx2-q24x-p64p
Malicious code in artifact-lab-3-package-736f752d (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.1.2` ## Source: kam193 (dfb249857a1fcf0c79636d8692dc8b148d847336022dbe6f4ab558f6f5c2f97f) 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 (af3f7688132b6b9f4516d3ba60dff758a89f1a24357a1fee3d891758acac385d) The OpenSSF Package Analysis project identified 'artifact-lab-3-package-736f752d' @ 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/artifact-lab-3-package-736f752d/MAL-2024-10541.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/artifact-lab-3-package-736f752d - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/artifact-lab-3-package-736f752d/MAL-2024-10541.json - https://github.com/advisories/GHSA-pmx2-q24x-p64p
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.