VYPR

pypi · Malicious package advisory

Malware

pdf2doc

GHSA-73fq-5crq-r9px

Malicious code in pdf2doc (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 0.3.9`

## Source: kam193 (ae55659200290f97e3d07c41d49af574eb14ad3dc5913535e8d100cf2c48dd58)
During installation, the code attempts to exfiltrate basic data (username, host name) and send to the attacker. The package looks to be a clone of an existing one


---

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.


Campaign: 2024-09-pdf2doc


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.


 - typosquatting


 - obfuscation


 - dependency-confusion


 - The package overrides the install command in setup.py to execute malicious code during installation.


 - clones-real-package

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/pdf2doc/MAL-2024-11657.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/pdf2doc
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/pdf2doc/MAL-2024-11657.json
- https://github.com/advisories/GHSA-73fq-5crq-r9px

Compromised versions (1)

  • = 0.3.9

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.