MAL-2025-3742 Malicious code in document-inference (PyPI)
- Package
- document-inference
- Registry
- PyPI
What is MAL-2025-3742?
MAL-2025-3742 is a malicious package in document-inference, published on 10 May 2025.
Official description
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
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.
What should I do about MAL-2025-3742?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.