MAL-2026-20333

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/devready-doctor/MAL-2026-20333.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20333
Published
2026-11-22T22:57:47Z
Modified
2026-11-23T00:45:04Z
Summary
Malicious code in devready-doctor (PyPI)
Details

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

Source: amazon-inspector (02ec7bb9287a697da813333e07de2b4157357a01d3b712c5dfb8447b89fd5ccc)

The wheel installs devready-hook.pth into site-packages, which Python auto-loads at every interpreter start and calls devready.hook._hook_ping(). When the INTERNAL_PACKAGE_REPO_URL environment variable is set, the hook calls install_tool(base, 'node'), which fetches '/node/' from a simple-index page, resolves the first href, writes the bytes to /.devready/tools/node, chmods the file 0755, and spawns it detached via subprocess.Popen. The code path explicitly passes sha256=None and comments that the repo is 'trusted', so no integrity check is performed on this branch. The hardcoded tool name 'node' is a dependency-confusion-shaped target: any host serving '/node/' at the configured URL controls what runs on the installer's machine at Python startup, disguised as installing the Node.js runtime. The same package's checks.py additionally reads the first 4KB of classic installer credential files (/.aws/credentials, ~/.ssh/id_ed25519, ~/.npmrc, ~/.pypirc,.env, ~/.claude/settings.json) and records size, mode, mtime, and a 16-hex-char sha256 prefix in a local report; this version does not wire that report to a network sink, but it pairs a credential-inventory capability with the remote-execution hook on the same host.

Source: kam193 (e97b89875c468d4d4b9ab97b28c1693ec8c058de9e445b9f3d09075d3605253a)

The package is a well-masked dropper. In multiple places, especially in a PTH file, it downloads and executes a remote executable. To activate, the base URL has to be handled over via an environment variable. This behavior is commented as installing a development tool ("node") and an agent (including verification of the hash fcaa596240007d9082983c206fb51cbf1a4d25ba31c9fd8a541bcc45c8b78c35), but the behavior cannot be explained by any legitimate tool. The related GitHub account was created the same day as publishing the package.


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

Campaign: 2026-11-devready-doctor

Reasons (based on the campaign):

  • abuses-pth

  • Downloads and executes a remote executable.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "pypi/2026-11-devready-doctor/devready-doctor",
            "import_time": "2026-11-22T23:10:30.072229255Z",
            "modified_time": "2026-11-22T22:57:47.805816Z",
            "sha256": "e97b89875c468d4d4b9ab97b28c1693ec8c058de9e445b9f3d09075d3605253a",
            "source": "kam193",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-023032",
            "import_time": "2026-11-23T00:32:40.196861759Z",
            "modified_time": "2026-11-22T23:58:20Z",
            "sha256": "02ec7bb9287a697da813333e07de2b4157357a01d3b712c5dfb8447b89fd5ccc",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "pypi/2026-11-devready-doctor/devready-doctor",
            "import_time": "2026-11-23T00:32:42.421819532Z",
            "modified_time": "2026-11-22T22:57:47.805816Z",
            "sha256": "6ddb854ec9c9ae05d27a1eb12b25df5d3d3f73a8a9106f7dac5e32171172fb82",
            "source": "kam193",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

PyPI / devready-doctor

Package

Name
devready-doctor
View open source insights on deps.dev
Purl
pkg:pypi/devready-doctor

Affected ranges

Affected versions

1.*
1.0.0

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "artifacts": [
                "devready_doctor-1.0.0.tar.gz",
                "devready_doctor-1.0.0-py3-none-any.whl"
            ],
            "path": "src/devready/hook.py",
            "sha256": "5980b4c1653bd6041a2895bba2317d1dc53c7f64cbe60324127b449c1e4661a5",
            "tlsh": "3601c086ad592a30d501537cd1aa808c236e685724750034799ec2387fcb203d0a71ed"
        },
        {
            "artifacts": [
                "devready_doctor-1.0.0.tar.gz",
                "devready_doctor-1.0.0-py3-none-any.whl"
            ],
            "path": "src/devready/checks.py",
            "sha256": "3339a89e1416c2deb7212a0cc263e264fc9bf1a43ee591b8bfd4b854dfb7dbfb",
            "tlsh": "efa15296ccb96d12d247b3ac980ec1806b18ad872e09783c3edc1bd95fac96d91f2594"
        }
    ],
    "package_integrity": [
        {
            "filename": "devready_doctor-1.0.0-py3-none-any.whl",
            "hashes": {
                "blake2b_256": "63d0ad7b96524f37b0abb62d7613cd011530f6d7387ec569fa9e7fff705b3ccc",
                "md5": "4668d18a68fbab0a3c3abb891a9ab7f0",
                "sha256": "051353123129e3f9d9496e6a6a88a211a64176a69235f4ddaf8d50ab58f54a48"
            }
        },
        {
            "filename": "devready_doctor-1.0.0.tar.gz",
            "hashes": {
                "blake2b_256": "1f229b74b1806fdb79c73480e560240774ed0cd767fa7aad475f2981305d5155",
                "md5": "06d37e35277f232fcc62999ad2cf5c55",
                "sha256": "3d22fa4b89c36072e7e127aac828952967779c706ddb5bacc4ad2e0101eb6e31"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/devready-doctor/MAL-2026-20333.json"