Skip to content
Source
Sign inSign up
pingdotgg/t3code

T3 Connect: can a compromised TLS terminator tamper with messages and hijack an approved agent session? #45977

OpenHxBreak(GitHub profile, opens in a new tab) opened this issue 0 comments

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

Scope and verification status

This is a request to clarify the security boundary of T3 Connect based on public documentation and a limited source review. No live tampering, agent takeover, or actual incident has been demonstrated.

Review context

  1. Discussion #21286 requests E2EE. In #32098, device approval was added while full E2EE was explicitly left out. This question focuses on the integrity of traffic in an already approved session.
  2. T3 Connect internals distinguish the relay Worker from the HTTP/WebSocket data path through the environment's tunnel hostname. The documented protections include signed bootstrap exchanges, DPoP, and optional device approval.
  3. Environment authentication describes proof-bound WebSocket tickets and per-RPC scope checks.
  4. In checkRequestDpopProof, the verifier receives the method, URL, time, expected key thumbprint, and optional access token. No request-body digest is supplied at this call site. This alone does not establish whether another layer authenticates payloads.

Threat model

An active intermediary controlling the infrastructure that terminates TLS on the Connect data path, with the legitimate client and host uncompromised. Ordinary network attackers are still constrained by TLS. Lack of E2EE alone does not prove lack of end-to-end message authentication.

Expected behavior

Users should be able to determine whether the host can cryptographically verify the content of each privileged action as coming from the approved device, independently of TLS termination by intermediate infrastructure.

Please document the actual integrity boundary and point to the enforcement code. If infrastructure operators are explicitly trusted to modify session traffic, that trust assumption and its implications for agent execution should be visible before enabling T3 Connect.

Actual behavior

The reviewed documentation explains enrollment, token binding, and authorization, but I could not establish the guarantee for message contents after a connection is authenticated.

Could maintainers clarify:

  1. Are HTTP request bodies and individual WebSocket RPC messages authenticated end to end, including freshness/order, between the approved device and intended host? Which code verifies this?
  2. If a TLS-terminating intermediary becomes malicious or compromised, could it change a submitted prompt, terminal input, or approval reply, or insert an RPC into an existing session? Would DPoP and Require approval for new devices detect this, or do those protections cover different boundaries?
  3. If such modification is possible, could it redirect the user's agent into unintended file changes, commands, or data disclosure within that session's existing permissions? How does the answer differ between approval-required and Full access modes?
  4. Can server-to-client content, including approval prompts and execution results, be modified without the client detecting it?
  5. If the current architecture trusts this intermediary for integrity, is an end-to-end authenticated channel with verified device/host keys planned, and where is that work tracked?

Potential agent hijacking is a concern to validate, not a confirmed finding. This is distinct from obtaining a new session with a stolen cloud account in #32098 and from passive content exposure discussed in #21286.

Impact

Minor bug or occasional failure

Version or commit

Public main documentation and the DPoP helper reviewed on 2026-11-30; no installed build tested.

Environment

Architectural question about T3 Connect remote clients and a user-owned host, including with new-device approval enabled.

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

For users whose threat model excludes third-party TLS termination, use a direct connection over an authenticated private network such as Tailscale, or a separately authenticated end-to-end channel under their control. Changing routes alone is insufficient unless the chosen route authenticates and protects both endpoints.

  1. HxBreak(GitHub profile, opens in a new tab) added labelsneeds-triage

Sign in to join this conversation.