VYPR

pypi · Malicious package advisory

Malware

artifact-lab-3-package-1f7a39bc

GHSA-5797-wwww-mx7m

Malicious code in artifact-lab-3-package-1f7a39bc (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 0.1.1`

## Source: kam193 (986e5ddc5b52149bd60f2e303abd548699bee247784d2201ea6e6814790557bf)
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-1f7a39bc/MAL-2024-12195.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/artifact-lab-3-package-1f7a39bc
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/artifact-lab-3-package-1f7a39bc/MAL-2024-12195.json
- https://github.com/advisories/GHSA-5797-wwww-mx7m

Compromised versions (1)

  • = 0.1.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.