# MAL-2026-13406: Malicious code in 9remote (npm)


- **Type:** Malicious package
- **Package:** `9remote` (npm)
- **Published:** 6 Aug 2026

## What is MAL-2026-13406?

MAL-2026-13406 is a malicious package in 9remote, published on 6 Aug 2026. 

### Official description

9remote is a remote-shell tool: its CLI launches an HTTP/WebSocket server and provisions a Cloudflare Quick Tunnel that exposes the host to the public internet at a 9remote.cc-fronted URL. Incoming WebSocket `input` messages are forwarded verbatim into a locally spawned PTY (bash/zsh on Unix, cmd.exe/powershell.exe on Windows) via `pty.write(s.data)`, after `spawn(o.path, o.args,...)` in the pty daemon. The server's router treats requests bearing the `cf-connecting-ip` header as remote-authorized. Access is gated by a short-lived (~30-minute) one-time pair key shown as a QR code; anyone who obtains that key over the tunnel obtains a full interactive shell on the host with the user's privileges. The package is invoked explicitly by the operator (bin entry, not lifecycle scripts or top-level require side effects), and the tunnel terminates at first-party infrastructure (9remote.cc / Cloudflare), so this is the advertised behavior of the tool rather than a covert channel — but the blast radius on any host where the CLI is run is full-host remote code execution behind a single short-lived key.

## What should I do about MAL-2026-13406?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-13406 is a malicious package: 9remote (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-13406/ (Markdown: https://insights.sbomify.com/MAL-2026-13406/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-13406

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-13406/
Summaries are generated and may contain mistakes; the official description above is the record.
