MAL-2026-18430

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/doctreelstm/MAL-2026-18430.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18430
Published
2026-10-31T13:39:43Z
Modified
2026-11-11T23:45:03Z
Summary
Malicious code in doctreelstm (PyPI)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (89260928fc4083b0e6164b6ea05203462456b98e3b181a44527f1a9afc1f6004)

setup.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.

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.

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"
            ]
        }
    ]
}
References
Credits

Affected packages

PyPI / doctreelstm

Package

Name
doctreelstm
View open source insights on deps.dev
Purl
pkg:pypi/doctreelstm

Affected ranges

Affected versions

1.*
1.0.0
10.*
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"