Skip to main content
Menu
Advisories

Malicious code in py-venv-doctor (PyPI)

GHSA-94W6-HR49-QJM7Published Updated GitHubMalware

Description

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 (source)

Affected versions

References