Coop now warns before a host-side remote editor connects to a virtual machine
Trail of Bits’ Coop 0.9.0 warns users before they connect a remote editor to a virtual machine, because a compromised virtual machine can use the editor to run commands on the host. Coop can now also keep a Codex access token out of the virtual machine.
Coop is developed under Trail of Bits’ GitHub account. From version 0.9.0, it warns the user before the user connects a remote editor running on the host machine to a virtual machine. The version was released on 20 October, and the 0.9.1 patch release followed the same day.
According to the release notes, Coop starts Lima virtual machines and transfers workspace files between the host (the user’s own machine) and the virtual machine.
Why the editor is a risk
A remote editor runs on the host, but it edits files and carries out actions in the virtual machine over a remote connection. The connection therefore works in both directions. Coop’s release notes say that if the guest system running in the virtual machine is compromised, it can use the editor’s remote integration to execute commands on the host. For that reason, the notes advise using the editor to open only virtual machines the user trusts.
The notes describe the change as a warning. They do not say whether the user can carry on opening the virtual machine after the warning, and they do not name the editors the warning applies to.
Codex token stays on the host
Coop’s token proxy now also supports Codex workspace personal access tokens and keeps them out of the virtual machine. Requests from the virtual machine go out through the proxy, while the token itself stays on the host. With the setting proxy.openai.auth = "codex_access_token", Coop validates the token on the host and routes inference to the ChatGPT Codex backend. The requests use the workspace identity and the controls returned by validation.
File transfers use rsync only
Coop now uses rsync for every workspace transfer and has removed the earlier tar fallback. Both the host and the virtual machine must have rsync installed. Coop’s own images include it by default. If a file has several names, known as hard links, Coop now copies them as separate files.
Coop now generates shell completion scripts dynamically for Bash, zsh, Fish, PowerShell and Elvish, and the completions also suggest the names of existing instances, images and profiles. Bash completions now also load in Bash 3.2, which ships with macOS.
From version 0.9.1, Coop always starts Lima virtual machines without a graphical display. This also applies to existing instances whose saved configuration enables a graphical display.