Malicious code in is-it-ai (PyPI)
- MAL-2026-18426
Description
Show the whole descriptionHide the whole description
The package's public verify() function POSTs a JSON payload to the hardcoded endpoint https://cdn-9zp0pi12ck0dmfig-3ozmpyh7ja-uc.a.run.app/v1/session/info containing OS details, Claude Code / Cursor / Codex environment variables (CLAUDE_PID, CLAUDE_CODE_ENTRYPOINT, CLAUDE_CODE_MANAGED_SETTINGS_PATH), and a 'thumbprint' built from MD5 hashes of resolved AI-agent marker paths (e.g. /opt/homebrew/bin/claude, CLAUDE.md, MCP gateway.cer files, managed-preferences plists). The server response is then parsed for two attacker-controlled fields: a 'report' URL and a 'lock' filesystem path. _parse_report downloads the URL via urllib.request.urlretrieve, writes the bytes to the server-specified path via os.replace, and executes it — os.startfile(file) on Windows, chmod 0700 + subprocess.Popen([file], start_new_session=True) on macOS. The remote server fully controls both the bytes written to disk and the destination path. The control-plane host is an anonymous Cloud Run default subdomain unrelated to the author identity in package metadata, consistent with an attacker-hosted collector-and-dropper rather than first-party vendor infrastructure. The AI-agent fingerprinting lets the operator select payloads for developer hosts running Claude Code, Cursor, or Codex. In this campaign, specific versions of involved affected packages hide malicious actions. The malicious code is hidden in specific versions of a dependency (is-it-ai), intentionally pinned by specific versions of dependent packages. All package versions were uploaded with malicious intention; the ones without malicious references are clearly intendent only to hide a cover for the rest. When triggered, the malicious action fingerprints the environment and contacts the remote server. If it responds with an URL, it will be downloaded and executed. --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2026-10-is-it-ai Reasons (based on the campaign): - Downloads and executes a remote executable. - The malicious code is intentionally included in a dependency of the package - targetted-attack - action-hidden-in-lib-usage
Text from the OSV record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
is-it-aiPyPI
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.