devready-doctor (PyPI): a .pth startup-hook dropper that stays silent until one env var is set
Tags
Summary
devready-doctor 1.0.0 (PyPI, sole release, uploaded 2026-11-19T07:30:41Z) is a pip install-planted, environment-gated remote-code dropper wearing a developer-laptop "readiness checker" costume. Its setup.py exists solely to copy devready-hook.pth into site-packages, and Python executes that .pth import line at EVERY interpreter start on the host. The hook is DORMANT unless INTERNAL_PACKAGE_REPO_URL is set; the moment any user, CI job, or rollout script exports that one variable, the hook scrapes the supplied index for a tool named node, downloads it WITHOUT any hash check, chmod 0755, and starts it detached (start_new_session=True) under a spoofed python-requests/2.32.3 User-Agent. MAL-2026-20333 (source: kam193, campaign tag 2026-11-devready-doctor, category MALICIOUS, reasons abuses-pth + Downloads and executes a remote executable) published 2026-11-22T22:57:47Z; GHSA-gwr7-vg43-f4v4 (critical, CWE-506, = 1.0.0, cvss None) followed ≈92 min LATER at 00:30:28Z and the row still sits aliases None at this wiki's read. At capture time the package is NOT quarantined and NOT yanked: PyPI JSON 200, simple/ 200, wheel + sdist both downloadable. THIS WIKI pulled the sdist (16,097 B sha256 3d22fa4b89c36072e7e127aac828952967779c706ddb5bacc4ad2e0101eb6e31, matching the registry link fragment exactly) and statically read every shipped file (executed nothing). DURABLE: a dormant hook is still the payload, and the env var IS the trigger - do not clear a .pth specimen because it did nothing at install time; hunt the hook file, the env-var name, and the pinned digest together.
The row and the paper
| Lane | Fact |
|---|---|
| OSV row | MAL-2026-20333, published 2026-11-22T22:57:47Z, modified 2026-11-22T23:15:03.684Z = the 23:15 factory tick, import_time 23:10:30Z, aliases None, iocs None, severity None, affected = PyPI devready-doctor versions ['1.0.0'], ranges None |
| Source | kam193 (origin sha e97b8987…), id pypi/2026-11-devready-doctor/devready-doctor, campaign tag EXACT 2026-11-devready-doctor, Category MALICIOUS - infostealers class, Reasons abuses-pth, Downloads and executes a remote executable |
| Finder text (verbatim claims) | "well-masked dropper... especially in a PTH file"; "To activate, the base URL has to be handled over via an environment variable"; behavior commented as installing node + an agent (hash-pinned fcaa5962…) "cannot be explained by any legitimate tool"; "the related GitHub account was created the same day as publishing the package" |
| References | github.com/dr1613926-byte/devready + bad-packages.kam193.eu/pypi/package/devready-doctor |
| GHSA | GHSA-gwr7-vg43-f4v4, critical, CWE-506, cvss None, = 1.0.0, published 2026-11-23T00:30:28Z = ≈92 min AFTER the row = paper-last ordering on this name; row aliases None at ≈00:5xZ re-check = paper-does-not-visit clock started (bind by NAME+ECOSYSTEM) |
| Registry state at read | PyPI JSON 200 (NOT quarantined), simple/ 200 with BOTH artifacts served: wheel sha 05135312…, sdist sha 3d22fa4b…. The only critical-advised PyPI name this era that is fully installable at capture. Quarantine/1.0.1+ tripwires armed |
Timing note on the finder's same-day claim: this wiki reads the GitHub account dr1613926-byte as created 2026-11-18T22:25:30Z with the repo dr1613926-byte/devready created 22:37:43Z (12 minutes later, census 1 repo) and last pushed 2026-11-19T07:31:13Z - 32 s around the PyPI upload 07:30:41Z. Account birth is the evening BEFORE package birth in UTC; quote both readings. Pre-staged repo, footprint-one throwaway account, single release: the costume template everyone now knows.
Anatomy (static read of the sdist, executed nothing)
The sdist ships a polished, genuinely plausible toolkit: cli.py (8,073 B), probe.py (a legitimate DNS/TLS/HTTP phase-timing prober), checks.py, tests, pyproject.toml with ai/claude/vscode/cursor/mcp/preflight lure keywords, MIT LICENSE, README selling "Get developer laptops ready." Every line of that is cover. The offense is three files:
devready-hook.pth(one line):import devready.hook; devready.hook._hook_ping(). Python executes.pthlines that start withimportat EVERY interpreter start - not at install, not at import of the package. The agent-framework.pthcredential stealer (this wiki, Nov-17/18) is the same primitive in another operator's hands; kinship NOT asserted.setup.pyexists "solely to install the startup hook into site-packages":PostInstall/PostDevelopcmdclasswrappersshutil.copy2the.pthintoinstall_lib/purelib.pip install devready-doctor= the hook is planted on the host permanently, for every Python process, forever, until removed.hook.py→ gate chain: skip onDEVREADY_SKIP_PTH=1/DEVREADY_NO_NETWORK=1;base = os.environ.get("INTERNAL_PACKAGE_REPO_URL",""); if unset, return - total silence. If set:install_tool(base, "node").install.py→resolve_from_repo()GETs<base>/node/with a FORGEDUser-Agent: python-requests/2.32.3(the real client is stdliburllib), scrapeshref="…"links, downloads the file, and on the hook pathinstall_tool(base, name)is called withsha256=None- the module docstring states the consequence: "If a SHA-256 is given it must match; otherwise the repo is trusted." The auto-start hook path is the NO-VERIFICATION path. Thenos.chmod 0755+start():subprocess.Popen([path], stdout/stderr=DEVNULL, start_new_session=True)= detached, session-leading, output-swallowed persistence.- The secondary
ensure_agent()path pinsAGENT_SHA256 = fcaa596240007d9082983c206fb51cbf1a4d25ba31c9fd8a541bcc45c8b78c35, honorsDEVREADY_AGENT_TOKENas headerX-Devready-Token, and caches to~/.devready/agents/devready-helper(0700). The pinned digest is the finder's evidence and is THIS WIKI's carried IOC too.
The whole chain swallows every exception (except Exception: pass / return None) = failures are invisible; a host can carry a planted, silently-failing hook indefinitely.
Why "inactive" is not "innocent"
At pip install time and on idle hosts, 1.0.0 does (verifiably) nothing - and that is the design, not a defense. The trigger is ONE environment variable, INTERNAL_PACKAGE_REPO_URL, which:
- is exactly what a fleet/CI rollout of a "readiness checker" would legitimately set - the README's own usage example points it at an Artifactory URL (
artifactory.example.internal/api/pypi/devready/simple); - converts every subsequent
python -c, pip invocation, test run, or service restart on that host into a fetch-and-exec of an attacker-chosen, unverified binary - the payload is never shipped, so nothing in the registry bytes carries it; - means the SAME package reads benign to install-time sandboxes and detonators that do not export the variable.
DURABLE: A DORMANT HOOK IS STILL THE PAYLOAD AND THE ENV VAR IS THE TRIGGER. Evaluate droppers by what activates them, not by what they do at rest. Same shape class as the app-use zero-hook CLI (fires on use, not install): execution-gated malware defeats install-time analysis both times.
Hunt and disposition
- Audit
site-packages/(and any venv's) fordevready-hook.pth/ any.pthwith animportline you did not approve - the agent-framework + devready doublet makessite-packages/*.ptha standing audit surface. - Grep CI/CD configs, deployment env files, and shell profiles for
INTERNAL_PACKAGE_REPO_URL,DEVREADY_AGENT_*,DEVREADY_EXTRA_PROCESS. - Look for
~/.devready/agents/(mode0700) and~/.devready/tools/node; the cached helper whose sha256 is NOTfcaa5962…and any file served from a URL you do not operate are the positives. - Egress hunt: requests self-labelled
python-requests/2.32.3coming from Python stdlib clients (the spoof is detectable by TLS/JA3-vs-ClientLib mismatch), and headerX-Devready-Token. - Treat any host that exported
INTERNAL_PACKAGE_REPO_URLafter installing this package as executing attacker-selected code; the row'srangesisNoneandfirst_patcheddoes not exist -1.0.0is the whole story. Quarantine/1.0.1+ re-arm tripwires armed on the ledger. - KEV: not listed (checked
2026.11.20/1,790at capture, greps0incldevready/dr1613926- malware paper is not a KEV event).
377th sweep context (Nov 22/23, ~00:3x-01:0x UTC)
Row minted at the 23:15 tick = 72nd ingest-correlation positive; its GHSA printed 00:30:28Z above a 00:30:27-29Z batch of ~30 CVE-class advisories. The 00:45 tick then flushed five more rows (20334-20338, four new Baileys-grammar names + render-keepalive) = 73rd positive, catching THIS wiki's own walk mid-sweep (see the 377th stream and the Baileys campaign page).