Summary
[email protected] postinstall (dist/install.cjs) only creates ~/.9remote/runtime and runs `npm install [email protected] --no-save` to fetch a tray helper, then exits; the lab saw no credential reads beyond npm's own ~/.gitconfig and no egress except registry.npmjs.org. The real surface is the runtime: dist/cli.cjs spawns cloudflared tunnels, installs daemon autostart (LaunchAgents/HKCU Run/systemd), and dist/server.cjs reads ~/.codex/sessions and writes agent configs plus an MCP tool (resolve_gate) that can remotely approve agent permission prompts. No theft, concealment, or hidden exfil was found, so it is not malicious, but an agent that installs it should treat the host as remotely reachable and isolate it.
Intent
9remote is a legitimate, documented remote-access product (remote terminal, WebRTC remote desktop, file explorer, agent workspace). Its install hook is benign and its flagged capabilities all map to advertised features, but it deliberately exposes the host machine and modifies AI-agent configs, so it is high-risk dual-use rather than clearly safe.
network_egress download_execute persistence agent_config_tamper reconnaissance obfuscation
postinstall fetches a tray helper at install time low package.json:22, dist/install.cjs:3
package.json:22 runs `node dist/install.cjs || true`. dist/install.cjs:3-3 creates ~/.9remote/runtime, deletes ~/.cache/node-systray, and runs `npm install
[email protected] --no-save` in that directory, then chmods the tray binary. Lab: exit 0, wrote only /home/andy/.9remote/runtime/package.json, DNS to registry.npmjs.org only (failed offline). Benign intent, but it is install-time network fetch into a home directory.
Runtime exposes host via Cloudflare tunnels and rewrites DNS resolution medium dist/cli.cjs:11, dist/cli.cjs:193
dist/cli.cjs:11 replaces dns.lookup to resolve via 1.1.1.1/1.0.0.1/8.8.8.8, and dist/cli.cjs:193 spawns `cloudflared tunnel --url http://localhost:<port>`. This matches the advertised zero-config remote access but makes the dev machine reachable from the internet.
Daemon persistence (autostart) installed medium dist/cli.cjs:19, dist/cli.cjs:50, dist/server.cjs:88
dist/cli.cjs:19/50 and dist/server.cjs:88 write autostart entries: macOS LaunchAgents plist, Windows HKCU\...\Run value, and a systemd --user service enabled with daemon-reload. Documented as the 'Persistent PTY Daemon' feature.
Reads and modifies AI-agent configuration and exposes agent-gate MCP tool high dist/server.cjs:178, dist/server.cjs:339, dist/server.cjs:435
dist/server.cjs:178-180 reads ~/.codex/sessions JSONL; dist/server.cjs:339-341 rewrites ~/.codex/config.toml (9remote notify hook) and Claude settings; dist/server.cjs:435 defines the MCP tool resolve_gate, whose prompt lets a caller supply an answer or allow/deny for an agent permission/plan approval. User-toggled product features, but directly in the agent-supply-chain path.
Reconnaissance, clipboard and screen capture capability by design medium dist/cli.cjs:74, dist/cli.cjs:191, dist/server.cjs:109
dist/cli.cjs detects Docker/.dockerenv and GitHub Codespaces (anti_analysis), runs netstat/ipconfig flushdns, and the product captures screen (node-screenshots, robotjs, dist/vendor/scrcpy-server-v3.1) and clipboard (dist/server.cjs:109 xsel). All consistent with the remote-desktop feature set.
No credential harvesting or hidden exfiltration found info dist/cli.cjs:11
No access to ~/.ssh, id_rsa, ~/.aws, ~/.npmrc, ~/.git-credentials or ~/.netrc anywhere in dist/. No POST of process.env to any third-party host. The only external config reads are ~/.9remote/.env and a package-relative ../.env (dist/cli.cjs:11-12, loaded into process.env). The crypto_wallet/ransomware hits are false positives from minified Next.js bundles and the chevrotain parser; crypto use is the advertised X25519 + AES-256-GCM E2E.
Install hooks ran in the isolated lab. Processes spawned: 8. Hooks: postinstall (exit 0), require (exit 0).
DNS names requested: registry[.]npmjs[.]org
Direct connections: socket 127[.]0[.]0[.]1:53
Canary credential files read: /home/andy/.gitconfig
Files written outside the package: /home/andy/.9remote/runtime/package.json