VYPR

pypi · Malicious package advisory

Malware

advdef01

GHSA-rgww-778x-j2gf

Malicious code in advdef01 (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 1.0.0`

## Source: kam193 (44ffce32113cbe3c908fd584f4b02617cafcfecccc3cea1c4fc068021c4bfa7d)
Package uses the template from https://github.com/thegoodhackertv/malpip to explore building malicious PyPI packages.


---

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


Campaign: SCRIPT_KIDDIE-thegoodhacker-paquete


Reasons (based on the campaign):


 - 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.


 - Package uses simple pre-prepared tools to create a low-quality malicious action.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/752e8a991f186423e3415980200bebfec22d1070/osv/malicious/pypi/advdef01/MAL-2024-12189.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/advdef01
- https://github.com/ossf/malicious-packages/blob/752e8a991f186423e3415980200bebfec22d1070/osv/malicious/pypi/advdef01/MAL-2024-12189.json
- https://github.com/thegoodhackertv/malpip
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/advdef01/MAL-2024-12189.json
- https://github.com/advisories/GHSA-rgww-778x-j2gf

Compromised versions (1)

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