VYPR

pypi · Malicious package advisory

Malware

py-venv-doctor

GHSA-94w6-hr49-qjm7

Malicious code in py-venv-doctor (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 0.1.0`

## Source: kam193 (f98f9dd8cd5b70474786eb054bccf9de05d98face434e0a814123e51c090f364)
During installation and after generating a healthcheck report, package sends opt-out telemetry. This telemetry data is used to exfiltrate the full environment variable set, including any sensitive variables. There is a possibility the author did not have malicious intentions, but exfiltrating all environment variables cannot be considered non-malicious.


---

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


Campaign: 2026-09-py-venv-doctor


Reasons (based on the campaign):


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


 - exfiltration-env-variables


 - action-hidden-in-lib-usage

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/479b257906c0639ca322d7e753c3f106306eb16d/osv/malicious/pypi/py-venv-doctor/MAL-2026-16296.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/py-venv-doctor
- https://github.com/ossf/malicious-packages/blob/479b257906c0639ca322d7e753c3f106306eb16d/osv/malicious/pypi/py-venv-doctor/MAL-2026-16296.json
- https://github.com/ossf/malicious-packages/blob/af486be301974b4c4068b1c7baa77731f37fa05e/osv/malicious/pypi/py-venv-doctor/MAL-2026-16296.json
- https://pypi.org/project/py-venv-doctor/0.1.0
- https://github.com/advisories/GHSA-94w6-hr49-qjm7

Compromised versions (1)

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