computer-use-linux
- Type
- MCP server
- Scanned
- Nov 17, 2026
- Version
- 5f640bce8e32
- Files read
- 151
computer-use-linux is a tool and plugin that lets AI agents view and control a Linux desktop through screenshots, app text reading, window management, and simulated mouse and keyboard actions. The biggest risk is that it drives your live desktop, so a tricked agent or a window-matching mistake can read private on-screen content or send clicks and keystrokes to the wrong app, while temporary screenshots saved in the shared /tmp folder could be read by other users on the same computer.
What it can reach
- System
- Takes full-screen or window screenshots, reads text and controls from open apps, manages desktop windows, simulates mouse and keyboard input, temporarily reads and replaces the KDE clipboard when pasting, and can change GNOME accessibility settings or install a GNOME extension.
- Browser
- Can view and control any open web browser window on your desktop using screenshots, screen-reader actions, and simulated clicks or typing.
- Files
- Reads process and session details from /proc, writes temporary screenshots and window scripts to /tmp, stores cache data, temporary app-state files, downloaded binaries, and screen-capture tokens in user folders, and saves screenshot images to any existing folder when requested.
- Shell commands
- Runs standard Linux desktop helper programs to manage windows, screenshots, and input, and provides an opt-in tool that can run any shell command as the current user if explicitly enabled with COMPUTER_USE_LINUX_ENABLE_SHELL=1.
- Network
- Opens no network ports by default, downloads prebuilt program files from GitHub Releases during install or first run, can optionally listen over HTTP with a token when started with mcp --listen, and can connect to a local pixelflux service or remote X11 display if configured.
Findings
-
MediumTemporary full-screen screenshots are written directly to shared /tmp with default permissions
When capturing screenshots via the GNOME Shell D-Bus service, gnome-screenshot, or dms, temp_png_path places the temporary PNG path directly inside std::env::temp_dir() (usually /tmp) using a predictable PID-and-timestamp filename instead of an owner-only (0700) directory. Because those external capture helpers create the output file using the desktop session's default umask (typically 0644, world-readable), another local user on a shared Linux machine can monitor /tmp and open the screenshot file before it is unlinked, exposing sensitive on-screen information.
Fix: Create or reuse an owner-only (0700) directory under $XDG_RUNTIME_DIR or inside temp_dir() (verifying with symlink_metadata that it is not a symlink or group/world-accessible, as tree_spill.rs does) and generate filenames with cryptographic randomness via getrandom.
-
MediumAmbiguous window title matching and ignored combined selectors can redirect input to the wrong window
When resolving a non-terminal window target for actions like activate_window, type_text, press_key, or click, resolve_window_target has two targeting flaws. First, title matching uses find() to return the first window (lowest window_id) whose title contains the requested substring case-insensitively without rejecting ambiguous matches across multiple windows; if an earlier-opened browser tab or mail window displays untrusted content whose title contains the target name (such as Notes), input can be focused and sent to that untrusted window. Second, non-terminal selectors do not combine: passing app_id, wm_class, or pid alongside title evaluates only the earlier selector and ignores title completely, even though the pid ambiguity error explicitly tells callers to add title to disambiguate.
Fix: Filter candidate windows across all populated WindowTarget selectors (pid, app_id, wm_class, and title) instead of returning early on the first non-empty field, prefer exact title matches before substring matches, and fail on ambiguous multi-window matches whenever requires_exact_focus() is true.
-
Lowget_app_state is annotated readOnlyHint=true and idempotentHint=true despite creating files on disk
The get_app_state MCP tool advertises read_only_hint = true and idempotent_hint = true, which tells MCP hosts that calls have no side effects and can be auto-approved without user confirmation. However, over stdio it accepts screenshot_file_path to write new .png or .jpg files (up to 4 MiB each) into any writable directory on the host, and repeating the same call fails because existing paths are refused. A prompt-injected agent can use this read-only-marked tool to create image files across writable directories without triggering mutating-tool approval prompts.
Fix: Either move file-saving support exclusively to tools with read_only_hint = false (such as screenshot) or split file-writing observation into a separate tool marked read_only_hint = false and idempotent_hint = false.
-
LowIndicator client binds a world-reachable abstract Unix domain socket
The server binds its indicator client datagram socket in the Linux abstract socket namespace (@computer-use-linux-indicator-client.<pid>.0), which has no filesystem permission checks and is reachable by any local user in the same network namespace. On a multi-user machine, another local user can pre-bind predictable PID socket names (forcing a fallback to an unbound socket that cannot receive acknowledgements) or flood the socket's receive buffer so overlay hide acknowledgements are lost, causing screenshot captures to fail when the indicator overlay is active.
Fix: Bind the client datagram socket to a path inside the user's mode-0700 $XDG_RUNTIME_DIR (unlinking it on drop), or switch the indicator socket to a connected UnixStream or SOCK_SEQPACKET socket so replies return over the private connection.
-
LowNPM installer verifies downloaded binaries against unpinned remote checksum files
During npm postinstall—or automatically at runtime on first CLI or Pi tool launch when install scripts were skipped—npm/install.js downloads native binaries and fetches their .sha256 files from the same GitHub Release URL rather than comparing against digests hardcoded in the npm package. Because GitHub Release assets on a tag can be modified after publication, replacing both the binary and .sha256 file on the release would not be caught even when the npm package integrity hash is locked.
Fix: Embed the expected SHA-256 digests for each supported architecture directly in package.json or npm/install.js before publishing the npm package.
-
LowBootstrap source installer pipes unpinned rustup script directly to sh
When ./install.sh is run on a system without cargo installed and without --skip-rust, it downloads https://sh.rustup.rs and pipes it directly into sh without pinning a specific rustup-init version or verifying a SHA-256 checksum.
Fix: Download a version-pinned rustup-init binary for the host architecture to a temporary file, verify its SHA-256 checksum against a pinned digest, and then execute it.
-
LowPrototype property lookup on agent name can suppress the GNOME on-screen activity indicator
gnome-shell-extension/computer-use-linux@avifenesh.dev/extension.js:460
In ActivityIndicator.show(), the GNOME Shell extension looks up the agent's color using colors[name.toLowerCase()] on a plain JavaScript object literal. If an MCP client or environment sets the agent name to 'constructor' or '__proto__', colors[name.toLowerCase()] resolves to an inherited Object.prototype property rather than undefined, causing hex.slice(...) to throw a TypeError before this._root.show() is called and silently hiding the on-screen activity indicator while desktop actions still run.
Fix: Check Object.hasOwn(colors, name.toLowerCase()) or store the color table in a Map or null-prototype object (Object.create(null)).
-
LowPlugin launcher downloads binaries at runtime and verifies them against unpinned remote checksums
plugins/computer-use-linux/bin/computer-use-linux:104
On first start, the Claude Code and Codex plugin launcher downloads native Linux executables from GitHub Releases at runtime and runs them. Although the script pins the release tag (v0.7.56) and uses HTTPS (preventing casual local-network interception unless COMPUTER_USE_LINUX_DOWNLOAD_BASE is set to an insecure URL), it fetches the expected .sha256 file from the exact same mutable GitHub Release rather than embedding pinned SHA-256 digests in the script, so replacing both assets on the release would pass verification.
Fix: Embed the expected SHA-256 checksums for each supported architecture directly inside the versioned launcher script (or verify cryptographic release signatures/attestations) instead of trusting a .sha256 file downloaded from the same URL.
-
LowTemporary KWin scripts are created in /tmp without owner-only permissions
src/windowing/backends/kwin.rs:964
On KDE Plasma, the KWin backend writes temporary JavaScript files into std::env::temp_dir() (typically /tmp) before instructing org.kde.KWin over D-Bus to load and execute them. While create_new(true) and a random nonce prevent symlink attacks, OpenOptions does not set mode 0600, leaving the file permissions subject to the process umask; on multi-user systems, standard 0022 umasks expose target window UUIDs and callback identifiers to other local users, and shared-group 0002 umasks leave a brief race window where same-group users could modify the script before KWin loads it.
Fix: Set .mode(0o600) via std::os::unix::fs::OpenOptionsExt when creating temporary KWin script files, and prefer placing them inside a private 0700 directory under XDG_RUNTIME_DIR when available.
