Skip to content

MAL-2026-10707 Malicious code in @ai-support-agent/cli (npm)

Unknown
Published
Updated
Exploit status
No public exploit known

Description


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

Source: amazon-inspector (bbbb67d5fa1c4b90e7da8e409f66e2e4ced88c5baa6eb14aa33d1d698d5baf69)

The @ai-support-agent/cli package installs a long-running daemon (ai-support-agent start) that connects to a vendor API (default wss://api.ai-support-agent.com/ws/agent-terminal and matching AppSync/HTTP endpoints) and executes remote-delivered commands against the local host. In dist/vscode/vscode-server.js and related files, handleStdin base64-decodes WebSocket message payloads and writes them straight into a local PTY (session.write(decoded)), giving a caller with a valid token an interactive shell on the machine running the agent. A separate command-dispatch path handles structured messages including execute_command (shell), file_read/file_write/file_delete/file_mkdir, process_list/process_kill, chat (spawns Claude Code / arbitrary subprocess), and setup/reboot/update, streaming results back to the vendor. darwin-service.js and linux-service.js install the agent as a persistent system service that starts on boot, and the daemon reaches the vendor over the public internet by default. Anyone who legitimately holds — or who compromises — the vendor API endpoint has full-host remote code execution, filesystem read/write, process control, and reboot capability on every machine running this agent. The daemon behavior is documented as the product's purpose (Web UI drives remote shell/file/process operations), but the network-to-PTY and network-to-exec paths are a persistent backdoor by construction regardless of framing, and blast radius extends to any future compromise of the vendor's control plane.

Upgrade path

1 package: 0 fixed.

PackageAffectedFixed inStatus
ai-support-agent @ai-support-agent/cli(npm) = 0.3.2; = 0.3.2-beta.0; = 0.3.2-beta.1; = 0.3.2-beta.2 +25 more No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
ai-support-agent @ai-support-agent/cli(npm) = 0.3.2-beta.1 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.4.2 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.2-beta.15 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.2-beta.9 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.2-beta.2 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.5-beta.5 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.7-beta.0 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.4.0 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.2-beta.10 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.5 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.4.2-beta.0 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.6 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.6-beta.0 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.2-beta.0 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.2-beta.8 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.4.1 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.2-beta.5 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.5-beta.3 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.5-beta.0 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.4.1-beta.1 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.5-beta.4 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.2-beta.3 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.2-beta.11 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.2 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.2-beta.14 No fix listed
Show 4 more
ProductAffected versionsFixed in
ai-support-agent @ai-support-agent/cli(npm) = 0.3.3-beta.0 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.2-beta.4 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.6-beta.1 No fix listed
ai-support-agent @ai-support-agent/cli(npm) = 0.3.5-beta.1 No fix listed

References