pypi · Malicious package advisory
Malwaredatagov-harvester
GHSA-4mxm-7462-pcqw
Malicious code in datagov-harvester (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 20.0.0` ## Source: kam193 (cd1508013c2ef9abe7de7e4eb3bbdc492b545c3344ae4148b4e06165e8313229) The package looks like a beginning for a further work. In fact, the uploader has shortly published a few similar packages appearing to be e.g. an integration for a known application, but containing only a "telemetry" module exfiltrating basic info about the user. This package has no other purpose than collecting data about users. In addition, it appears to be largely generated by an LLM. --- 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-12- sajansubedi 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. - dependency-confusion --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/datagov-harvester/MAL-2025-913.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/datagov-harvester - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/datagov-harvester/MAL-2025-913.json - https://github.com/advisories/GHSA-4mxm-7462-pcqw
Compromised versions (1)
- = 20.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.