VYPR

pypi · Malicious package advisory

Malware

hello-world-package-test

GHSA-cgp7-h8fm-q5pc

Malicious code in hello-world-package-test (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 0.1`

## Source: kam193 (8ee148c559a9993ef0660c9183434ff59d2f6430a126a5913ef9a8341b9014ff)
Generic campaign for all (likely) research / pentests, where the amount or art of collected data raises questions about the privacy, security and ethical side.


---

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.


Campaign: GENERIC-questionable-pentest


Reasons (based on the campaign):


 - exfiltration-env-variables


 - exfiltration-generic


 - The package overrides the install command in setup.py to execute malicious code during installation.


 - typosquatting

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/hello-world-package-test/MAL-2024-10034.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/hello-world-package-test
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/hello-world-package-test/MAL-2024-10034.json
- https://github.com/advisories/GHSA-cgp7-h8fm-q5pc

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.