← Dev log
Ferry·auth & security·2026-11-25

A workspace setting that could pick the binary

Opening an untrusted folder could point the VS Code extension at an arbitrary executable to launch as the daemon.

It could not have worked

A race, an ordering, one column holding two things. The shape ruled it out before the code ran.

The VS Code extension bundles its own daemon, but it also lets you point it at a different binary — useful for development. That path was an ordinary setting, and ordinary settings can be overridden per workspace by a .vscode/settings.json file inside the folder you open.

So opening an untrusted repository could make the extension launch whatever executable that repository named. No exploit needed; it's just how settings resolve.

The fix is one line of manifest: the setting is now machine-scoped, so only the user's own settings can set it, never a workspace. A related rule went in at the same time: a socket path you supply is only ever connected to — the extension never starts or stops a daemon it didn't launch.

Two other hardening fixes landed in the same pass, both the same shape of "trusted something it shouldn't": replacing an older daemon used the pid from a possibly stale lock file, which could kill an unrelated process, and now asks the daemon to quit first.