Malicious code in doctreelstm (PyPI)
Malware
Published
Oct 31, 2026
to the GitHub Advisory Database
•
Updated Oct 31, 2026
Description
Published to the GitHub Advisory Database
Oct 31, 2026
Reviewed
Oct 31, 2026
Last updated
Oct 31, 2026
Source: kam193 (9609b278449fb9d196f4929f422f22288aa202df7b8417d91053ab0180711bb8)
Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.
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: GENERIC-standard-pypi-install-pentest
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.
The package overrides the install command in setup.py to execute malicious code during installation.
Credit: OpenSSF (source)
References