Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9remote

[email protected]

suspicious   confidence 60%   action isolate   analyzed 2026-09-23 12:22 UTC by yolo in 9 tool calls, with lab detonation

Summary

The postinstall hook installs an optional native dependency (systray2) into ~/.9remote/runtime/. The CLI establishes persistence via macOS LaunchAgents, Linux autostart/.service entries, and Windows Startup VBS scripts. PTY sessions are spawned with the full process environment ({...process.env}), exposing API keys and tokens to remote clients. The codebase is heavily obfuscated (vite-plugin-javascript-obfuscator).

Intent

A remote terminal access tool with cloud tunneling via 9remote.cc, cross-platform persistence, and remote desktop capabilities. The heavy JavaScript obfuscation and full environment exposure in remote shells are concerning even though the stated purpose is legitimate.

persistence network_egress credential_access

Findings

Cross-platform persistence mechanism medium dist/cli.cjs:19-74
Writes LaunchAgent plist (~/Library/LaunchAgents/cc.9remote.agent.plist) on macOS, autostart .desktop on Linux X11, .service on systemd, and Startup VBS on Windows to auto-launch 9Remote on boot.
Full environment passed to remote shells high dist/ptyDaemon.cjs:4
PTY daemon spawns child processes with { ...process.env } — API keys, npm tokens, SSH credentials, and cloud secrets are visible to any remote client connected to a session.
Full environment passed to detached processes high dist/ptyDaemon.cjs:10
Remote process spawning uses { ...process.env } again, exposing secrets to arbitrary processes launched through the remote interface.
Heavy code obfuscation medium dist/cli.cjs:1
Entire dist/ bundle is obfuscated via vite-plugin-javascript-obfuscator (91 static hits). Obfuscation impedes audit and may conceal additional behavior.
External server connection info dist/cli.cjs:74
Sessions are created and managed at https://9remote.cc/api/session/create — all tunnel URLs and one-time keys pass through this server.

Lab evidence

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