{"id":"MAL-2026-20333","summary":"Malicious code in devready-doctor (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (02ec7bb9287a697da813333e07de2b4157357a01d3b712c5dfb8447b89fd5ccc)\nThe 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 '\u003cbase\u003e/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.\n\n## Source: kam193 (e97b89875c468d4d4b9ab97b28c1693ec8c058de9e445b9f3d09075d3605253a)\nThe 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.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-11-devready-doctor\n\n\nReasons (based on the campaign):\n\n\n - abuses-pth\n\n\n - Downloads and executes a remote executable.\n","modified":"2026-11-23T00:45:04.371052831Z","published":"2026-11-22T22:57:47Z","database_specific":{"malicious-packages-origins":[{"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":"pypi/2026-11-devready-doctor/devready-doctor"},{"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"},{"source":"kam193","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"}]},"references":[{"type":"WEB","url":"https://github.com/dr1613926-byte/devready"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/devready-doctor"},{"type":"PACKAGE","url":"https://pypi.org/project/devready-doctor/1.0.0/"}],"affected":[{"package":{"name":"devready-doctor","ecosystem":"PyPI","purl":"pkg:pypi/devready-doctor"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/devready-doctor/MAL-2026-20333.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"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"},{"tlsh":"efa15296ccb96d12d247b3ac980ec1806b18ad872e09783c3edc1bd95fac96d91f2594","artifacts":["devready_doctor-1.0.0.tar.gz","devready_doctor-1.0.0-py3-none-any.whl"],"path":"src/devready/checks.py","sha256":"3339a89e1416c2deb7212a0cc263e264fc9bf1a43ee591b8bfd4b854dfb7dbfb"}],"package_integrity":[{"filename":"devready_doctor-1.0.0-py3-none-any.whl","hashes":{"md5":"4668d18a68fbab0a3c3abb891a9ab7f0","sha256":"051353123129e3f9d9496e6a6a88a211a64176a69235f4ddaf8d50ab58f54a48","blake2b_256":"63d0ad7b96524f37b0abb62d7613cd011530f6d7387ec569fa9e7fff705b3ccc"}},{"hashes":{"blake2b_256":"1f229b74b1806fdb79c73480e560240774ed0cd767fa7aad475f2981305d5155","md5":"06d37e35277f232fcc62999ad2cf5c55","sha256":"3d22fa4b89c36072e7e127aac828952967779c706ddb5bacc4ad2e0101eb6e31"},"filename":"devready_doctor-1.0.0.tar.gz"}]}}}],"schema_version":"1.9.2","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"},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"ANALYST"}]}