pypi · Malicious package advisory
Malwaredocument-inference
GHSA-rj2w-785g-hjqf
Malicious code in document-inference (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.0.2` ## Source: kam193 (0519099776ddb5cbd1778fa5f043a1cad34d94d5116ae895120aba38608e7eb0) Packages that seem to be created by a legit bug bounty hunter. Designed to look like created by different organisations, they contain a couple of data exfiltration (including all env variables) and potential remote code execution (though the URL seems not to serve any code). --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2025-05-sl4x01 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. - exfiltration-env-variables - impersonation ## Source: ossf-package-analysis (4dbb3f4bab26a0095d969efb7bd23845a0ab5683269ccb37f98fcaf285d845d3) The OpenSSF Package Analysis project identified 'document-inference' @ 0.0.2 (pypi) as malicious. It is considered malicious because: - The package executes one or more commands associated with malicious behavior. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/document-inference/MAL-2025-3742.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/document-inference - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/document-inference/MAL-2025-3742.json - https://github.com/sl4x0 - https://github.com/advisories/GHSA-rj2w-785g-hjqf
Compromised versions (1)
- = 0.0.2
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.