Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedcritical

Malicious code in claude-remote-agent (npm)

The npm package claude-remote-agent contained malicious code that connected to a hardcoded WebSocket server (wss://claude.pishchykau.eu) controlled by the package author, enabling remote interactive terminal access and exfiltration of Claude Code conversation transcripts from affected hosts.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any developer or system running the claude-remote-agent package; exposure of Claude Code conversation transcripts and arbitrary command execution capability on affected hosts.
Ecosystems
Attack vectors
Affected entities
  • claude-remote-agentnpm package containing hardcoded malicious WebSocket connection and remote code execution capability

The claude-remote-agent npm package contained intentional malicious code that established a persistent connection to a hardcoded WebSocket server at wss://claude.pishchykau.eu. This server was controlled by the package author and allowed remote parties to gain interactive terminal access to the installer's host.\n\nThe malicious functionality was implemented in agent.js and operated through multiple attack vectors. On receiving 'create-session' or 'input' messages, the package spawned pty-bridge.py which executed the local claude CLI inside a pseudo-terminal and wrote network-received bytes directly to the process's stdin. This gave the remote attacker an interactive shell with access to Claude Code's Bash tool, enabling arbitrary command execution on the host. A variant using 'claude -p' was also spawned to receive prompts over the same WebSocket.\n\nAdditionally, the package exfiltrated sensitive data. On receiving 'request' messages with actions 'list-conversations' or 'get-conversation', the agent read and transmitted the contents of ~/.claude/projects/*.jsonl files back to the hardcoded server. These files contained Claude Code conversation transcripts, including executed shell commands, file paths, and user prompts—providing the attacker with detailed information about the victim's development activities.\n\nThe critical aspect of this attack is that the WebSocket endpoint was hardcoded and author-controlled, meaning once the package was installed and executed, the remote attacker maintained persistent control over the host and access to the local Claude conversation store without any configuration or consent from the user.", <parameter name="remediation">["Immediately uninstall claude-remote-agent from all systems where it was installed", "Audit system logs and Claude Code conversation transcripts for evidence of unauthorized access or command execution", "Rotate any credentials, API keys, or sensitive information that may have been exposed in conversation transcripts or executed commands", "Review ~/.claude/projects/ directory for any suspicious modifications or data exfiltration", "Monitor affected hosts for unexpected network connections or process spawning", "Check npm audit and package management tools for any other compromised dependencies", "If the package was used in production or CI/CD environments, conduct a full security review of those systems"]

Indicators of compromise

Packages
  • claude-remote-agent
Domains
  • claude.pishchykau.eu

Remediation

  • Review the linked advisory; remove or upgrade the affected component and rotate any exposed credentials.

Sources

  1. GitHub Advisory GHSA-vmfr-7cqr-9wc8 · GitHub Advisory Database

Cite this entry

"Malicious code in claude-remote-agent (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 6, 2026; last updated August 6, 2026. https://supplychainattack.org/incident/malicious-code-in-claude-remote-agent-npm-1gupga

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. resolvedcritical

    Malicious code in @lyxa.ai/core (npm)

    The npm package @lyxa.ai/core contained malicious code that unconditionally routes all application events through author-controlled cloud infrastructure (CloudAMQP, Redis Cloud, GCP) using embedded credentials, and ships live private keys for GCP and Firebase services, allowing the author to intercept, modify, and trigger arbitrary handlers in any installer's process.

    npmAI agents & skillsCompromised packageMalicious maintainer
  2. activecritical

    Malicious code in agenthub-multiagent-mcp (npm)

    The npm package agenthub-multiagent-mcp contains malicious code that establishes persistent remote control over Claude Code execution. The package falsely claims to be from Anthropic while actually being authored by 'Krishi AI' and connects to a hardcoded attacker-controlled WebSocket server.

    npmAI agents & skillsCompromised packageMalicious maintainer
  3. containedhigh

    Microsoft links Mastra AI supply chain attack to North Korean hackers

    Microsoft attributed a Mastra AI supply chain attack that compromised over 140 npm packages to North Korean hacking group Sapphire Sleet (BlueNoroff). The attack targeted the npm ecosystem and AI development infrastructure.

    UNC1069npmAI agents & skillsCompromised packageMalicious maintainer
  4. containedcritical

    Malicious code in opencode-optimised-toolings (npm)

    opencode-optimised-toolings@4.0.0 contains malicious code that downloads and builds an unauthorized opencode binary from a non-publisher GitHub repository, replaces the legitimate opencode executable on the user's PATH, and establishes persistent code execution with user privileges. The package modifies configuration files to ensure the malicious pipeline continues on future invocations.

    npmCompromised packageMalicious maintainer