Malicious code in 9remote (npm)
9remote is a remote-shell tool that exposes a host to the public internet via a Cloudflare Quick Tunnel. It allows incoming WebSocket input messages to be forwarded directly into a local shell, granting full interactive shell access to anyone possessing a short-lived one-time key. This behavior is by design, not a covert channel, but it results in full-host remote code execution with the user's privileges on any host running the CLI. Multiple specific versions of 9remote (npm) are affected.
AI Analysis
Technical Summary
9remote is a CLI tool that launches an HTTP/WebSocket server and provisions a Cloudflare Quick Tunnel exposing the host to the internet at a 9remote.cc URL. Incoming WebSocket messages labeled as input are forwarded verbatim to a locally spawned pseudo-terminal (PTY) running a shell (bash/zsh on Unix, cmd.exe/powershell.exe on Windows). Access is controlled by a short-lived (~30-minute) one-time key shown as a QR code. Anyone with this key gains full interactive shell access with the user's privileges, effectively enabling full-host remote code execution. This is the intended functionality of the tool rather than a vulnerability introduced by malicious code. The affected versions explicitly listed include multiple 2.1.x and 2.2.x releases.
Potential Impact
Any user who obtains the short-lived one-time key can gain full interactive shell access on the host running 9remote, executing arbitrary commands with the privileges of the user running the CLI. This represents a full-host remote code execution capability behind a single key, which poses a significant security risk if the key is leaked or intercepted. There is no indication of covert or unauthorized malicious code; the risk stems from the tool's design and exposure model.
Mitigation Recommendations
This behavior is the intended design of 9remote and not a covert malicious backdoor. Operators should treat the one-time key as highly sensitive and ensure it is not exposed to untrusted parties. Limit usage of the CLI to trusted environments and users. Since no patch or fix is indicated, mitigation relies on operational security controls around key distribution and usage. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Malicious code in 9remote (npm)
Description
9remote is a remote-shell tool that exposes a host to the public internet via a Cloudflare Quick Tunnel. It allows incoming WebSocket input messages to be forwarded directly into a local shell, granting full interactive shell access to anyone possessing a short-lived one-time key. This behavior is by design, not a covert channel, but it results in full-host remote code execution with the user's privileges on any host running the CLI. Multiple specific versions of 9remote (npm) are affected.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
9remote is a CLI tool that launches an HTTP/WebSocket server and provisions a Cloudflare Quick Tunnel exposing the host to the internet at a 9remote.cc URL. Incoming WebSocket messages labeled as input are forwarded verbatim to a locally spawned pseudo-terminal (PTY) running a shell (bash/zsh on Unix, cmd.exe/powershell.exe on Windows). Access is controlled by a short-lived (~30-minute) one-time key shown as a QR code. Anyone with this key gains full interactive shell access with the user's privileges, effectively enabling full-host remote code execution. This is the intended functionality of the tool rather than a vulnerability introduced by malicious code. The affected versions explicitly listed include multiple 2.1.x and 2.2.x releases.
Potential Impact
Any user who obtains the short-lived one-time key can gain full interactive shell access on the host running 9remote, executing arbitrary commands with the privileges of the user running the CLI. This represents a full-host remote code execution capability behind a single key, which poses a significant security risk if the key is leaked or intercepted. There is no indication of covert or unauthorized malicious code; the risk stems from the tool's design and exposure model.
Mitigation Recommendations
This behavior is the intended design of 9remote and not a covert malicious backdoor. Operators should treat the one-time key as highly sensitive and ensure it is not exposed to untrusted parties. Limit usage of the CLI to trusted environments and users. Since no patch or fix is indicated, mitigation relies on operational security controls around key distribution and usage. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13406
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a74cf8dbf8831d5391ae78f
Added to database: 08/06/2026, 18:16:45 UTC
Last enriched: 08/06/2026, 18:35:46 UTC
Last updated: 08/06/2026, 18:35:46 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.