pypi · Malicious package advisory
Malwareartifact-lab-3-package-392c6acd
GHSA-6rwm-4rrf-5mvg
Malicious code in artifact-lab-3-package-392c6acd (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.1.0` ## Source: kam193 (ada0f9ebcf3f190d513b34099887d36ad38579e9c5b5d2004a8f0bff5565e100) 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 (d4c793b07be2dd53e55879f61090ae0244bd092188ca1a1ba18a58c0de388536) The OpenSSF Package Analysis project identified 'artifact-lab-3-package-392c6acd' @ 0.1.25 (pypi) as malicious. It is considered malicious because: - The package communicates with a domain associated with malicious activity. - The package executes one or more commands associated with malicious behavior. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/artifact-lab-3-package-392c6acd/MAL-2024-8017.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/artifact-lab-3-package-392c6acd - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/artifact-lab-3-package-392c6acd/MAL-2024-8017.json - https://github.com/advisories/GHSA-6rwm-4rrf-5mvg
Compromised versions (1)
- = 0.1.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.