Malicious code in py-venv-doctor (PyPI)
--- _-= Per source details. Do not edit below this line.=-_ ## 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
AI Analysis
Technical Summary
The py-venv-doctor package overrides the install command in its setup.py to execute code that sends telemetry data after generating a healthcheck report. This telemetry includes the entire environment variable set from the victim's system, which can contain sensitive information. This exfiltration of environment variables classifies the package as malicious. The campaign associated with this threat is identified as 2026-09-py-venv-doctor. There are no known exploits in the wild and no CVSS score is provided.
Potential Impact
The malicious package can leak all environment variables from the system where it is installed, potentially exposing sensitive credentials, tokens, or configuration data. This can lead to information disclosure and further compromise depending on the environment variables present.
Mitigation Recommendations
Users should avoid installing py-venv-doctor versions 0.1.0 and 0.1.1. Since no patch or fix is available, the best mitigation is to remove the package if installed and monitor for any unauthorized data exfiltration. Use trusted sources and verify package integrity before installation.
Malicious code in py-venv-doctor (PyPI)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## 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
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The py-venv-doctor package overrides the install command in its setup.py to execute code that sends telemetry data after generating a healthcheck report. This telemetry includes the entire environment variable set from the victim's system, which can contain sensitive information. This exfiltration of environment variables classifies the package as malicious. The campaign associated with this threat is identified as 2026-09-py-venv-doctor. There are no known exploits in the wild and no CVSS score is provided.
Potential Impact
The malicious package can leak all environment variables from the system where it is installed, potentially exposing sensitive credentials, tokens, or configuration data. This can lead to information disclosure and further compromise depending on the environment variables present.
Mitigation Recommendations
Users should avoid installing py-venv-doctor versions 0.1.0 and 0.1.1. Since no patch or fix is available, the best mitigation is to remove the package if installed and monitor for any unauthorized data exfiltration. Use trusted sources and verify package integrity before installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-16296
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["PyPI"]
Threat ID: 6aade4dd55bf5e2cf5ed9dea
Added to database: 09/19/2026, 01:26:53 UTC
Last enriched: 09/19/2026, 01:28:31 UTC
Last updated: 09/19/2026, 03:55:26 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.