VYPR

pypi · Malicious package advisory

Malware

dftester-pip

GHSA-7m5q-wmrw-wjwq

Malicious code in dftester-pip (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 0.0.1`

## Source: kam193 (2e23c327cc9243e5437e6b31224c6796b90399065b451269641911b1d1982483)
Example package with overwritten install command and the reverse shell


---

Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.


Campaign: 2024-11-dftester-pip


Reasons (based on the campaign):


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


 - The package contains code to create a reverse shell, allowing an attacker to execute any commands on the victim's machine.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/dftester-pip/MAL-2024-11575.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/dftester-pip
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/dftester-pip/MAL-2024-11575.json
- https://github.com/advisories/GHSA-7m5q-wmrw-wjwq

Compromised versions (1)

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