Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9remote

[email protected]

suspicious   confidence 55%   action isolate   analyzed 2026-09-23 16:09 UTC by yolo in 27 tool calls, with lab detonation

Summary

9remote v3.0.6 installs a system tray native module (systray2) via postinstall, writes ~/.9remote/runtime/package.json, and reads ~/.gitconfig (canary) during hook execution. Terminal sessions receive the full process.env, potentially leaking API keys / cloud tokens to child shells. Heavily minified Next.js bundle (1.4 MB web dir) but crypto references are libsodium for the split-key zero-trust pairing — consistent with the stated security model. Clipboard helpers use xsel / osascript / PowerShell — standard for a remote-desktop app.

Intent

A remote desktop / remote IDE tool that installs a system-tray daemon, tunnels via cloudflared, and passes full process.env to spawned terminal sessions. Installed a runtime package.json under ~/.9remote/runtime/ and read a canary credential file (~/.gitconfig) during detonation — mechanism unexplained.

credential_access persistence reconnaissance

Findings

Canary credential read at install time medium lab report: canary_read ~/.gitconfig
The postinstall hook read /home/andy/.gitconfig (canary credential path). The code does not explicitly reference .gitconfig; the mechanism is unknown.
Runtime package.json written outside package low dist/install.cjs:3
dist/install.cjs creates ~/.9remote/runtime/package.json ({"name":"9remote-runtime","version":"1.0.0","private":true}) and installs [email protected] --no-save into it.
Full process.env passed to spawned shells medium dist/ptyDaemon.cjs:11
dist/ptyDaemon.cjs line 11: env={...process.env,...c||{}} when spawning arbitrary processes via node-pty. API keys in the environment are inherited by child shells.
Autostart persistence installed low dist/cli.cjs:20-29
dist/cli.cjs lines 20-29: writes LaunchAgents plist (macOS), .desktop (Linux XDG), systemd service, or .vbs startup script (Windows) to autostart the agent on boot.
Clipboard access via native tools info dist/server.cjs:215-216
dist/server.cjs lines 215-216: uses xsel --clipboard --output (Linux), osascript (macOS), PowerShell [System.Windows.Forms.Clipboard] (Windows). Legitimate for remote desktop but adds capability.
Heavy minification (not malicious obfuscation) info dist/cli.cjs, dist/web/_next/static/chunks/565f33a6-fd3410bd29f39fdf.js
dist/cli.cjs is a single 133 KB minified bundle containing React, terminal rendering, WebSocket client, QR scanner, and Next.js app shell. Crypto references resolve to libsodium for split-key pairing (dist/web/_next/static/chunks/565f33a6-fd3410bd29f39fdf.js).

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