Files
vuln-osv/data/PyPI/MAL-2026-18430.json
T

1 line
4.1 KiB
JSON

{"schema_version":"1.9.2","id":"MAL-2026-18430","published":"2026-10-31T13:39:43Z","modified":"2026-11-11T23:45:03.352016020Z","summary":"Malicious code in doctreelstm (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (89260928fc4083b0e6164b6ea05203462456b98e3b181a44527f1a9afc1f6004)\nsetup.py performs an unconditional HTTP GET at install time to the hardcoded bare IP http://38.242.235.206/depconf/doctreelstm/setup-py, sending the installer's username (USER/USERNAME env), hostname (socket.gethostname()), and current working directory as query parameters. The destination is a cleartext bare-IP endpoint, not a first-party registry or vendor host, and the beacon fires on `pip install` with no documentation, no opt-out, and no caller configuration. The package ships no functional code and self-describes as a defensive placeholder squatting an internal project name, but that framing is author-controlled and does not change that installer identity + host + cwd leave the machine to an attacker-controlled destination on install.\n\n## Source: kam193 (9609b278449fb9d196f4929f422f22288aa202df7b8417d91053ab0180711bb8)\nInstalling the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.\n\n\n---\n\nCategory: 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.\n\n\nCampaign: GENERIC-standard-pypi-install-pentest\n\n\nReasons (based on the campaign):\n\n\n - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n","affected":[{"package":{"name":"doctreelstm","ecosystem":"PyPI","purl":"pkg:pypi/doctreelstm"},"versions":["1.0.0","10.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"setup.py","sha256":"64c17fffa2ce33f8e7c7810cfbfb11de8894dadf981b0d9aae6af913c4a5ddac","tlsh":"8611ed52d8016616a59370b0dc2698bc332391172f356aa0388d068d3f8e9d2d6315b8"}],"package_integrity":[{"filename":"doctreelstm-1.0.0.tar.gz","hashes":{"blake2b_256":"bd6aa6e607dbb88ee73c66223e7f59ced88b07c737493b9e1b825e877d54fc48","md5":"00f6b876e0a81085bf338d6a3d106d9d","sha256":"450db6f385d05d0108d5d622c35f7837c3dba4383525fd3aa1aa858bd9ac5dcd"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/doctreelstm/MAL-2026-18430.json"}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/doctreelstm"},{"type":"PACKAGE","url":"https://pypi.org/project/doctreelstm/1.0.0/"},{"type":"PACKAGE","url":"https://pypi.org/project/doctreelstm/10.0.0/"}],"database_specific":{"malicious-packages-origins":[{"id":"pypi/GENERIC-standard-pypi-install-pentest/doctreelstm","import_time":"2026-10-31T14:10:13.667064497Z","modified_time":"2026-10-31T13:39:43.559865Z","sha256":"9609b278449fb9d196f4929f422f22288aa202df7b8417d91053ab0180711bb8","source":"kam193","versions":["1.0.0","10.0.0"]},{"id":"IN-MAL-2026-022618","import_time":"2026-11-11T23:36:06.331069711Z","modified_time":"2026-11-11T23:15:39Z","sha256":"35691c952231d08c013724cb252cb621c9712202ba448ae4b2f2ce6ceb3fd501","source":"amazon-inspector","versions":["1.0.0"]},{"id":"IN-MAL-2026-022619","import_time":"2026-11-11T23:36:06.459345905Z","modified_time":"2026-11-11T23:15:46Z","sha256":"89260928fc4083b0e6164b6ea05203462456b98e3b181a44527f1a9afc1f6004","source":"amazon-inspector","versions":["10.0.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]}