VYPR

pypi · Malicious package advisory

Malware

artifact-lab-3-package-b1ec2b9f

GHSA-9fv3-m3gc-f9c4

Malicious code in artifact-lab-3-package-b1ec2b9f (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 0.1`

## Source: kam193 (3fe49cb6b5b199c213d54391901382790a3d9663bd90bf78361f07c594160fa6)
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.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/artifact-lab-3-package-b1ec2b9f/MAL-2024-11527.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/artifact-lab-3-package-b1ec2b9f
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/artifact-lab-3-package-b1ec2b9f/MAL-2024-11527.json
- https://github.com/advisories/GHSA-9fv3-m3gc-f9c4

Compromised versions (1)

  • = 0.1

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.