[Bug]: T3 Connect architecture is unnecessarily insecure: cloud authorization alone can grant control of linked machines #32098
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/server
Steps to reproduce#
- Enable T3 Connect on a host machine and link it to your account.
- On a previously unpaired device, sign into the same T3 Connect account.
- Select the host environment.
- Verify whether access is granted without approval on the host.
Expected behavior#
An unpaired device should have no access to the host until an explicit, mutual pairing process establishes trust between the devices. Signing into the same cloud account should not establish that trust automatically.
The host should approve the connecting device’s key, and the connecting device should verify the host’s identity. Subsequent communication should be authenticated and encrypted end to end.
The cloud service should facilitate connections without being able to independently grant access. Neither account takeover nor compromise of the cloud authorization service should be sufficient to enroll an attacker-controlled device. Recovery should preserve this boundary.
Actual behavior#
Signing into the same T3 Connect account grants access to a linked machine without approval on that machine. The granted permissions include running agents, operating terminals, and reading and writing files.
The host trusts the cloud service to authorize new device keys. Someone who takes over my account can therefore gain access to my machines. Someone who compromises the cloud credential-signing authority could potentially gain access across users’ connected machines.
T3 Code has hundreds of thousands of users. A single breach of that authority could turn connected machines into a botnet.
Impact#
Blocks work completely
Version or commit#
No response
Environment#
No response
Logs or stack traces#
Screenshots, recordings, or supporting files#
No response
Workaround#
No response
IgnacioFDM(GitHub profile, opens in a new tab) added labelsbug
IgnacioFDM(GitHub profile, opens in a new tab) added labelsneeds-triage
juliusmarminge closed this
Thank you @juliusmarminge for looking into this.
I'd suggest making approval the default for everyone. This PR already does most of the migration: while approval is off, every device key that connects is recorded as trusted. Flipping the default in a later release would keep every device that has connected since then working. Only devices that have never connected would need approval, so current users wouldn't notice the change.
I don't think this should stay opt-in, because T3 Connect is an extremely attractive target. Coding-agent tools are already being hit for their AI access. Last month the [OpenCode Console breach](https://www.bleepingcomputer.com/news/security/opencode-hack-exposes-api-keys-amid-ai-distillation-attacks/) exposed users' stored Anthropic, OpenAI and Google keys, and OpenCode described it as a distillation attack. Google's threat intelligence group has also [documented a market for stolen AI access](https://www.helpnetsecurity.com/?p=390073), where one victim was left with nearly $1M in charges. Getting into T3 Connect would be worth far more than API keys. It would mean terminals, files and agents on a large number of developer machines, with their source code, SSH keys, cloud credentials and push access. As long as the default lets the cloud add devices, one account takeover or relay compromise is enough to get all of that.
a disaster waiting to happen
Sign in to join this conversation.
Thanks for the detailed report. You're right that T3 Connect treated your cloud account as enough to reach a linked machine, and that a compromised account or relay signing key would have been enough to control it.
#36419 adds opt-in device approval. With Require approval for new devices turned on (with the T3 Connect settings in Sharing & access, or during T3 Connect setup), a new device can't reach the machine until someone already trusted there approves it. Approve from the in-app prompt on desktop, web or mobile, or with
t3 auth connect-device approve <code>on a headless host. Both devices show a short code derived from the new device's key, so you can confirm you're approving the right one.It's off by default so existing setups keep working, and it's offered during T3 Connect setup. Full end-to-end encryption with mutual pairing would be a bigger change, and we've left it out for now.
Closing as addressed by #36419.