News · AI NEWS

Researchers: ChatGPT Desktop forwards your SSH agent to remote Codex when config allows it

· Beijing time

Summary

On November 9, 2026 Privacy Affairs reported on a Hacker News thread and its own check of the macOS ChatGPT app build 26.1103.60933 (built November 8). The Codex remote-SSH integration does not add -A or ForwardAgent=yes on its own; it follows the user’s OpenSSH configuration. When that config enables agent forwarding for the host, the app links the session’s SSH_AUTH_SOCK to ~/.codex/app-server-control/forwarded-ssh-agent.sock on the server and points the background Codex app server, started with nohup, at that socket, so git, ssh, and other commands it runs can authenticate with keys loaded in the local agent. OpenAI even sets ForwardAgent=no for its own cloud connections, but its remote-connection docs do not describe this behavior on customer machines. The concern is the usual agent-forwarding warning plus prompt injection: anyone who can bypass file permissions on the remote host, such as root, can use the forwarded agent while you are connected, and a coding agent that reads a booby-trapped README or issue may gain a path to GitHub and every host that trusts the key. By default Codex has network access off and asks before networked commands. A November 5 report also found that when two computers connect to the same server account, the newer connection replaces the shared link, leaving the remote side with whichever machine connected last. The article recommends a host alias with ForwardAgent no for the app, touch-confirmed or host-limited keys, or a dedicated deploy key on the server.

#OpenAI#ChatGPT Desktop#Codex#SSH#security

This summary reflects the cited source. Visit the original for its full context.

← All AI news