Privacy and security come before convenience. This file lists what Tether protects, how, and where each control lives in the code. If you change one of these controls, update this file in the same change.
How a connection is encrypted, step by step with code references, is in docs/encryption.md. This section lists what we protect, from whom, and what is left.
| Asset | Where it lives |
|---|---|
| Session content: screen, keystrokes, clipboard, files, audio, chat | Only on the two endpoints; in transit end-to-end encrypted |
| Control of a host | Granted by password, 2FA and/or the Accept click on the host |
| Device identity key (Ed25519) | Each device's config file (Tether.toml), unencrypted, 0600 on Unix |
| Server key (Ed25519) | /var/lib/tether/id_ed25519 on every relay node |
| Admin key, updater key | Tether Manage vault on the admin's PC (argon2id + XChaCha20-Poly1305) |
| Host secrets at rest | Permanent password hash, 2FA secret, remembered passwords (obfuscated, see below) |
| Metadata | Device IDs, IPs, machine uuids, connection times on hbbs/hbbr/tether-api; audit log |
| Device health reports | status/ on each relay: pinned device keys, the last report and the history of each device that runs a monitoring agent; readable by the relay operator and team members |
| Mac build signing material | Sent per job to the Mac build runner (docs/mac-build-runner.md) |
- Endpoint ↔ endpoint: the only place session content is in clear. Each endpoint trusts its own OS and user account.
- Endpoint ↔ relay node (Caddy/nginx, hbbs, hbbr, TURN, tether-api): TLS on 443. The relay sees metadata, not content. hbbs is trusted to vouch for host keys (it signs them with the server key), which is the one place a relay node is trusted with more than availability.
- Admin PC ↔ everything: the admin key signs policies, server key lists, team documents and custom apps; the updater key signs code. Clients verify both against compiled-in public keys.
- Local user ↔ Tether processes: the local IPC and config folder; Tether's own windows are guarded against remote input (below).
| Actor | Can | Cannot (mitigation) | Residual risk |
|---|---|---|---|
| Remote attacker (internet, knows or guesses an ID) | Request sessions; try passwords; flood rendezvous | Get in without password/Accept; guess the 50-bit one-time password (per-IP throttling and blocking, rotation after 10 wrong attempts, Authentication); downgrade to plaintext (refused on both sides) | Weak permanent passwords if policy allows them; social engineering of the Accept click; the viewer's ID and name in the prompt are self-reported |
| Malicious technician (legitimate session) | Everything the session permissions allow, as the logged-in user | Click or type into Tether's own windows (own_ui_guard); read or change Tether's config/install folders via file transfer; use Tether's own recorder without the host user's consent; change host settings remotely (this build has no remote path for that); open the camera view or the remote terminal (enable-camera, enable-terminal forced N) |
Full control of the OS as that user by design: start programs (a command prompt included), files outside the guarded folders, admin rights if UAC is approved. Windows Mouse Keys and the On-Screen Keyboard still reach a Tether window (below, W18). Recording with any other tool (screen recorder, modified viewer) is not prevented: the consent gate is enforced by the honest viewer. Where the host's policy health.agent is on-request or install and Tether's service runs, the session (any approval, control on) can have the organisation's signed health monitoring agent installed as a LocalSystem service even when the signed-in user is no administrator, or removed; visible in the connection window and the session audit log, blocked by machine policy manual (Device status) |
| Malicious customer (host side) | Show fake content; record their own screen; keep what the technician sends (files, clipboard); put content into the technician's clipboard while clipboard sync is on | Inject keyboard or mouse input into the technician's PC (input messages flow from viewer to host only); read files the technician does not send | The host is the trusted endpoint for what it shows; treat files and clipboard from a host as untrusted |
| Compromised relay host without the server key (hbbr only, Caddy, TURN) | See IPs, timing, sizes, host IDs; drop or delay traffic; serve stale downloads | Decrypt or alter session content (session keys are sealed to the host's ephemeral key; docs/encryption.md §8); forge policies, key lists or updates (admin/updater signatures) | Denial of service; metadata; legacy TCP tunnels (W2) and version-0 sessions with non-Tether peers (W1) are readable |
| Compromised tether-api (or the relay's data folder) | Withhold or falsify what it serves: policy, release and monitor indexes it can only withhold or replay within their signed validity; refuse or accept enrolments, link or unlink devices in its own store and show false health; with control of its hbbs lookup answer, make any Tether proof pass there, so an attacker's agent shows on a host row that has no agent yet; admit anyone as a team member on itself; replay a staff sign-in token it received at another relay of the deployment within the token's lifetime (Team access) | Give anyone team rights at another relay (the team document is admin-signed); make a client install or run anything not in an admin-signed index and signed with the updater key; start an agent install where the signed policy does not ask for it; forge or replay the session message (it is end to end in the session) | False health on its own rows; denial of service (Device status) |
| Compromised hbbs with the server key | Everything above, plus sign any key for any ID | Decrypt past or running sessions (forward secrecy) | Undetected man-in-the-middle of new sessions by impersonating hosts: no host-key pinning and no viewer authentication (docs/encryption.md). Mitigated only by keeping the key secret, hardening and monitoring the relays, and rotating the key on suspicion (key rotation) |
| Network attacker (Wi-Fi, ISP, LAN) | See IPs, timing, TLS record sizes, SNI; block traffic | Read rendezvous or session data (TLS with verified certificates, no unverified fallback, then end-to-end encryption); answer as a LAN host without its signed key | Denial of service |
| TLS-inspecting corporate proxy | Read the rendezvous signalling (IDs, machine uuids, device public keys, connect requests) and the clear handshake at the start of each relay stream | Decrypt session content (except W1, W2) or swap the host key without the server key | With a stolen server key, the MITM above. Clients behind one proxy share an IP as hbbs sees it, which matters for the RegisterPk key replacement in docs/encryption.md |
| Local malware on the host | Read the screen and input like any program; read the config (device key, permanent password hash, which is password-equivalent); use Tether's IPC as the user; sign Tether proofs for this user's own Tether ID (it can read the key); without Tether's service, swap the staged agent before the elevation prompt or break the install over the pipe | – (endpoint security is out of scope). It cannot get an elevated program started without someone approving the Windows prompt, which then shows the swapped file's (other or missing) publisher, and the genuine agent installs only its own verified copy | Full compromise of that host's sessions |
Local malware on a Mac host with unattended access, running as an admin-group user |
Replace /Applications/Tether.app (no password needed), which the root LaunchDaemon and the login-window host then run: root on that Mac |
– (macOS lets the admin group change /Applications; an update signed by Tether must stay installable without a prompt) |
Root on that Mac. Only where Install as service was used (docs/unattended.md) |
| Local malware on the viewer | Read the session, inject input into it, read remembered passwords | – | Full compromise of that viewer's sessions |
| Stolen technician laptop | Remembered peer passwords (obfuscated with the machine uid, so readable), trusted-device tokens, the team member key | Admin actions: the technician app has no admin key; if Tether Manage is on the same laptop, its vault still needs the passphrase | Unattended access to remembered hosts until their passwords change; the team key: its key entry's rights until removed from the team document, or a signed-in person's session until it ends (sign-out, deny list; Team access) |
Malicious update server (compromised relay serving /download/) |
Withhold updates; serve an old copy of the signed release index (a device that already accepted a newer serial refuses it) | Make a client run code not signed by the updater key (minisign key 1AD0C3FBDCA3B4EA, verified before install); change version, minimum version or rollout (the release index is signed by the admin key; the unsigned latest.json is not read by builds with REQUIRE_SIGNED_INDEX); offer an older signed build under a higher version (the signed trusted comment names file and version) |
Denial of service: no updates while the device reaches no other source (after 30 days the app warns that the update information is out of date). Builds before the signed index: W9 |
| Holder of an enrolment grant (public: it is in the policy) | Enrol agents for Tether IDs whose identity key it holds, up to 30 new pins a minute per IP and STATUS_MAX_DEVICES |
Enrol or link anything without a Tether proof by the key hbbs holds for the ID named; read anything | Many fake agents for IDs it registered itself (hbbs accepts new IDs freely): revoke the grant, remove their devices, renew |
| Person with a Tether Manage role (signed in, no keys) | Read what the role allows on the relays' admin routes; an Operator removes devices, revokes tokens and handles diagnostics tickets; store unsigned proposals | Sign or publish anything (the relays refuse a session on every signing route; the vault does not sign while someone without KeyHolder is signed in) | A key holder may publish their own proposal without a second person (recorded as same_person) |
| Holder of the admin and updater keys | Change policy within the floor, trust another server key, ship signed code; set health.agent, which makes Tether's service install or remove the signed agent on every machine the policy reaches |
Turn off TLS verification or end-to-end encryption by policy (FLOOR) |
Fully trusted: guard the vault and passphrase |
| Mac build runner sender | Run signed jobs on the build Mac | Run unsigned jobs, act as another sender, replay jobs (docs/mac-build-runner.md) | A job is arbitrary code as the Mac user |
The relay operator is not trusted with content: hbbr and Caddy forward ciphertext. hbbs is trusted to sign the right host key; with the server key, a compromised hbbs is the one relay compromise that reaches content.
| Layer | Mechanism | Enforced in |
|---|---|---|
| Transport to the relay | TLS WebSocket on 443 only (rustls default versions, TLS 1.2 or 1.3 with rustls; the native-tls retry uses the OS stack's range, and Caddy/nginx accept 1.2 or later; Let's Encrypt certificate, verified against the bundled Mozilla roots plus the OS root store, retried with the OS TLS stack, so a corporate inspection CA installed in the OS is accepted; never an unverified fallback). A fallback route uses TLS on port 80; it works only on relays where port 80 is forwarded to the TLS listener (Server hardening). TLS is chosen only for domain names: an endpoint given as an IP address gets plain ws:// (W4 below). With policy network.direct = auto and no proxy: direct paths beside it (LAN listener on the local subnet only; WebRTC/ICE for IPv6 and NAT hole punching, STUN only against our own relays, signalling only over the TLS WebSocket). Never with a proxy. |
apps/desktop/src-tauri/src/netpolicy.rs, docs/corporate-networks.md |
| Client ↔ rendezvous server | The WebSocket to hbbs is authenticated by TLS alone (the upstream rendezvous key exchange is skipped on WebSocket, common.rs::secure_tcp_impl). The compiled-in Ed25519 server public key (TETHER_PUB_KEY, release builds refuse to compile without it) is what viewers verify host keys with: hbbs signs each host's public key with the server key. A server key list signed by the admin key can replace it (key rotation without reinstalling): while the configured server key is one of the listed keys, clients trust the active listed keys; lower serials are rejected, so a relay can neither widen nor roll back the set. A key option outside the list is trusted on its own; the UI cannot set it unless policy allows settings.server (default N), but a machine administrator can (W3 below). Upstream's custom-client routes are off in Tether builds: server and key are not taken from the exe file name or the environment variable RUSTDESK_APPNAME, and custom.txt beside the exe is not read (platform/windows.rs::get_license_from_exe_name, common.rs::load_custom_client). |
apps/desktop/src-tauri/build.rs, hbb_common::config::RS_PUB_KEY / server_keys_for, tether_trust::serverkeys, docs/key-rotation.md |
| Server key check | hbbs -k _ / hbbr -k _ reject clients that do not present the matching public key (licence_key), or one of KEYS_ACCEPT during a rotation. The public key is in every client, so this is a configuration check, not client authentication. A server asked for the check never runs without it: when id_ed25519 exists but cannot be read (or cannot be created), hbbs and hbbr exit instead of accepting every client, and they do not write a new id_ed25519.pub beside it. A new private key file is created 0600. |
server/systemd/*.service, server/docker-compose.yml, vendor/rustdesk-server/src/common.rs::key_accepted, require_key, gen_sk_in |
| Peer ↔ peer (end-to-end) | Each device has an Ed25519 identity whose public key hbbs signs. The host signs a fresh X25519 key; the viewer seals a random 32-byte session key to it (crypto_box), and both derive one key per direction (BLAKE2b over the handshake transcript). Relay and LAN traffic is XSalsa20-Poly1305 (libsodium secretbox) with counter nonces. On WebRTC the stream is protected by DTLS only (the secretbox key is not applied there); the host signs its DTLS fingerprint into its identity (IdPk.dtls_fingerprint) and a mismatch or missing fingerprint fails closed. Forward secrecy: yes (ephemeral keys). Not covered: hbbs with the server key can impersonate a host (docs/encryption.md); key exchange version 0 with non-Tether peers is broken (W1); legacy TCP tunnels run without the inner encryption (W2). |
client.rs::secure_connection, server.rs::identity_handshake, hbb_common::tcp::Encrypt, hbb_common::webrtc |
| No plaintext fallback (viewer) | Upstream asks the user whether to "continue insecurely". Tether refuses the connection outright. Exception: a connection typed as an IP address or host:port skips the rendezvous, the handshake and this check; against a Tether host it fails, against a stock RustDesk host with direct IP access it would run unencrypted. |
vendor/rustdesk/src/client.rs::confirm_insecure_connection (#[cfg(feature = "tauri")]), client/io_loop.rs (is_direct_ip_access) |
| No plaintext fallback (host) | The host aborts the handshake when the peer offers no key, sends no key exchange, the transport is not flagged secure, or this device's key pair is missing. The direct listener uses the same handshake. | vendor/rustdesk/src/server.rs::identity_handshake, rendezvous_mediator.rs::direct_server |
| Secrets at rest | Permanent password (stored as SHA256(password ‖ salt), which is password-equivalent for login), 2FA secret and remembered peer passwords are wrapped with secretbox under a key made from the machine uid (symmetric_crypt). The machine uid is not secret (readable by local users, sent to hbbs at registration), so this is obfuscation, not protection against someone who can read the config. The device's Ed25519 secret key is stored unencrypted. Config files are 0600 on Linux/macOS; on Windows they inherit the profile folder's ACL. |
hbb_common::password_security::symmetric_crypt, hbb_common::config |
| Control | Default | Where |
|---|---|---|
| Approval | Incoming sessions need either a click on Accept on the host or a valid password (configurable to click-only or password-only). Accept is never pre-selected in either app. The request names the viewer's ID, says that the name is chosen by the other side and not verified, and says what is asked for (screen control, file transfer, camera, command line, network access). In the desktop app another request or a chat message never changes the request that is shown, and when the shown connection ends, a waiting request is never shown by itself; in TetherQS a new request appears above the running sessions' cards and Help closes. | Settings › Security |
| One-time password | 10 characters from a 32-character alphabet, 50 bits (upstream default is 6). Rotated after 10 consecutive wrong attempts. Never sent: the viewer answers a per-connection challenge with SHA256(SHA256(password ‖ salt) ‖ challenge) inside the encrypted stream. |
security.rs DEFAULTS, core server/connection.rs (check_update_temporary_password, verify_h1) |
| Permanent password | ≥ 12 characters, ≥ 3 character classes, ≤ 128. Validated in Rust (authoritative) and in the UI. | security.rs::check_password_strength, src/lib/security.ts |
| Two-factor authentication | Optional TOTP (RFC 6238, 6 digits) required after the password. Enrolment needs a verified code before it takes effect. | Settings › Unattended access, core auth_2fa.rs |
| Other ways in | Bearer secrets, not identities. Resume ticket: a connection with the session's key and companion_secret skips password and Accept, not 2FA. It is valid while the session's connection runs (that connection is closed when the new one is authorised, so a session never runs on two) and for 120 s after it dropped; not after either side ended the session on purpose (Disconnect on the host, closing the viewer). The resumed connection keeps the permissions the host user last set. A file-transfer companion of a running session whose file permission is on skips password and Accept the same way. A trusted-device token skips 2FA; upstream's recent-session rule accepts the previous one-time password for 30 s. A server-key MITM learns companion_secret. |
core server/connection.rs (resume_of_authed_session, resume_register, resume_forget, RESUME_WINDOW, is_file_transfer_of_authed_session, is_recent_session, send_logon_response_and_keep_alive), docs/encryption.md §6 |
| Brute-force protection | Failed logins are counted per IP and per IPv6 /64, /56 and /48 prefix: more than 6 in a minute are throttled, more than 30 (IPv6 prefixes: 60/80/100) blocked. Counters live in memory and reset on host restart. For relayed sessions the IP is the one hbbs reports. The one-time password rotates after 10 consecutive failures. | core server/connection.rs (LOGIN_FAILURES, check_failure) |
| Identity verification | Viewers see whether the session is end-to-end encrypted and which path it uses, and can hover the shield for the host key's fingerprint. No Tether app shows a device its own fingerprint, so an out-of-band comparison is not supported yet, and the viewer does not remember host keys between sessions. The host cannot verify the viewer: its ID and name are self-reported. | Session.tsx, client/io_loop.rs |
| Control | Mechanism | Where |
|---|---|---|
| Policy integrity | Policies are signed by the admin key (Ed25519), which never leaves the admin's PC. Clients verify against compile-time public keys, so a compromised relay cannot push or alter a policy. Lower serials are rejected (no rollback); both apps keep the highest accepted serial beside the cache (policy-serial). Layers resolve as defaults < profile < custom app < group < machine, with one exception: a custom app's setting is ignored for every feature the policy profile locks (off, locked or hidden), so a custom app can add restrictions and defaults but never unlock what the policy locks. The relay and Tether Manage validate a bundle strictly and refuse to publish a bad rule. In an app one rule never fails the policy: a rule with an unknown feature or a bad value is skipped and named in the log (policy rules not applied), a rule with a state or field from a newer Tether Manage is skipped silently, and the rest applies; TetherQS opens a custom app's attached profile the same way. Still refused as a whole: broken JSON, unknown top-level or group fields, an assignment to a group that does not exist. A policy that locks a permission off also takes it from running sessions and from sessions that resume, in both apps (desktop: in the connection window's process, at its next policy check), and a running file-transfer connection is closed when file transfer is locked off. |
crates/tether-trust (policy::resolve_with, Bundle::validate, Bundle::from_json, custom::open_app), apps/*/src-tauri/src/policy.rs, desktop sink::enforce_permission_locks / revoke_locked, TetherQS commands::revoke_denied, sink::take_denied |
| Policy in the background service | The Windows service (--server) refuses new incoming sessions while policy connect.incoming is off or policy update.minimum-version is above its version, also at the logon screen: the app writes the refusal text into the core option tether-refuse-incoming, and the host sends it as the login error before any password exchange. Running sessions are not ended. The release index's mandatory/minimum state is enforced by the app and the connection window, not at the logon screen. Group policy reaches the service only after the signed-in user has opened Tether (the service adopts that app's device id from option tether-install-uuid at its next policy check); before that only profile and machine policy apply. |
desktop policy::apply_incoming, incoming_refusal, publish_uuid, pick_uuid; core connection.rs::on_open; docs/unattended.md |
| Server key list | The admin key also signs which server keys devices trust (GET /api/server-keys). Whoever holds the admin key can therefore make devices trust another server key; it still needs a path into the TLS relay connection to use it. New server private keys are sealed in the vault like the other keys. Devices keep the highest accepted serial beside the cache (server-keys.serial), so deleting the cache does not reopen a rollback. The private key file exported for the relays is created readable by the current user only, and Manage keeps asking to delete it. Manage refuses to publish a key list that lacks the key a relay reports it signs with (when no relay reports its key, it publishes and says the list could not be checked), starts a new rotation from the relays' signing key, refuses to save key files into a folder that already holds another id_ed25519 pair, and deletes only a pair whose public key is a server key of the vault. |
tether_trust::serverkeys, apps/manage/src-tauri/src/keys.rs, docs/key-rotation.md |
| Security floor | TLS verification, end-to-end encryption, 443-only networking and "no silent recording" are not policy features. The apps apply them on top of any policy. | tether_trust::policy::FLOOR, security.rs, netpolicy.rs |
| Serials | Tether Manage takes the next policy and key list serial only from documents that verify with its admin key and from its own published copies (never from what a relay reports), with an overflow check. | apps/manage/src-tauri/src/main.rs next_serial |
| Response size | Policy and key list answers are read with a hard limit (stop after limit + 1 bytes), so a relay cannot make a client buffer an endless answer. | tether_trust::read_limited |
| Admin API | Every admin request is signed over the relay's host name, method, path with query, timestamp, nonce and body hash (Tether-Sig: v2 host=… ts=… nonce=… sig=…). A relay accepts v2 only for the names in its RELAY_HOST (from /etc/tether/server.env; without it v2 gets 401), so a captured request cannot be replayed at another relay. The signed host is a plain host name or IPv6 literal (reqauth::host_of); Tether Manage takes a relay address only as https://host with an optional port (no path, user name, query or fragment; server_ok), so the host that is signed is the host the request goes to. No app falls back to v1 by itself. The server allows ±300 s clock skew and rejects replayed nonces (kept 601 s, persisted across restarts; a failed write of nonces.json is logged and does not fail the request). Tether Manage and the technician app sign v2 and follow no HTTP redirects. v1 signatures (no host name, older apps) are accepted until TETHER_SIG_V1=off is set (W14). |
tether_trust::reqauth, server/api (sig_relay), docs/api.md |
| Keys at rest | Admin and updater private keys are encrypted with argon2id + XChaCha20-Poly1305 under the admin's passphrase. The vault has a format version: Tether Manage never saves a vault newer than it understands and keeps unknown fields, so it cannot drop keys it does not know. | apps/manage/src-tauri/src/keys.rs |
| Update integrity | Installers and TetherQS are signed with the updater key (minisign, key id 1AD0C3FBDCA3B4EA) and verified against the compiled-in TETHER_UPDATER_PUB_KEY before installation. Clients below the minimum version cannot start or accept sessions. Release metadata (version, file, size, sha256, mandatory, minimum version, rollout, halt) comes from the release index signed by the admin key; a serial floor per channel refuses older indexes, and the unsigned latest.json is not read (REQUIRE_SIGNED_INDEX). Both apps also check the signed trusted comment (file name and version) of every artifact, so an older signed build cannot be offered under a higher version (W9). A device below a release's or the policy's minimum version is offered the release whatever its place in a staged rollout or update.rollout = late, never a halted release (both apps). TetherQS never swaps its exe while a session runs and counts a download as staged only after it verified. |
update.rs (both apps), tether_trust::release, docs/updates.md |
| Recording consent | Tether's recorder requires an explicit Allow from the other party for every connection, regardless of policy. The viewer never assumes the permission. This binds honest viewers only: the host just withholds the permission, so a screen recorder or a modified viewer is not stopped. A viewer that keeps asking is shown at most once per 10 s per connection, and Allow is never pre-selected. | core client.rs, server/connection.rs, docs/recording.md |
| Diagnostics | Exports redact passwords, salts, key pairs and tokens. A system proxy's user name and password are removed before the proxy URL is logged (without_credentials). Uploads are accepted only for tickets an admin opened (8 characters, 24 h, one upload, kept 7 days). |
diag.rs, server/api |
Every host reports its incoming connections to the first relay of its build
(POST /api/audit/conn|file|alarm, docs/api.md); Tether Manage › Sessions shows them.
- What is logged: time (relay clock), host Tether ID and base64 machine uuid, connection number, the technician's Tether ID, display name and IP address as the host saw them, the address the host posted from, connection kind and how it was approved (click, password), file transfers with folder or file path, count and up to 10 file names with sizes, disconnects, and alarms such as IP whitelist blocks. No session content, no file content, no passwords.
- Not authenticated. Hosts have no device key, so a post is unauthenticated device telemetry like the heartbeat: anyone who can reach a relay can add records under any ID, or fill the log within the limits (8 KiB per record, 120/min per IP with an IPv6 client counted by its /64, 60/min per device, size cap). Records are never used for anything else (no device, policy or access decision); read them as a log of what hosts reported, not as proof. A host that cannot reach the first relay within 120 s drops the record (its log says "Audit post dropped").
- Privacy and retention: names, IP addresses and file paths are personal data. Files are
0600under/var/lib/tether-api/audit/, readable only with an admin-signed request, kept 90 days or 50 MB (AUDIT_RETENTION_DAYS,AUDIT_MAX_MB;AUDIT_RETENTION_DAYS=0stores nothing). CSV exports leave the relay: handle them like the records. One query answers at most about 8 MiB of records and setsX-Audit-Truncated: 1when it cut; the Sessions page of Tether Manage then names the relay.
Technicians and other staff get an org-scoped identity without the admin key. Each technician app
(and each run of Tether Manage) has its own Ed25519 key, and every member request (/api/team/*) is
signed with it in the admin request format (relay host name, method, path with query, timestamp,
nonce, body hash; ±300 s; replayed nonces rejected, same persisted cache as admin requests; v1
without the host name as for admin requests, W14), naming the key with kid. The desktop's key file
is generated only when it is missing (an unreadable or damaged file is reported, never replaced),
written to a temp file, 0600 on Unix (on Windows only the profile folder's permissions), and
linked into place without replacing (apps/desktop/src-tauri/src/team.rs::key_at). Who a key
belongs to, and what it may do, comes from one of two places:
- A sign-in session (0.7.0; docs/sign-in.md). The person signs in with the
organisation's identity provider (Microsoft Entra ID is the documented one) in the system browser
(authorization code with PKCE). The app posts the access token, signed with its key, to every
relay (
POST /api/team/session). Each relay checks the token itself: RS256 against the provider's keys (fetched over HTTPS from the issuer's host, compiled-in web PKI roots, no proxy),ver2.0, issuer, tenant, audience, client, time with 300 s skew, at most 28 h lifetime, no groups overage,oidnot on the deny list, and only therolesclaim mapped through the signed document. It then binds a session to that key: the person's later requests are ordinary signed requests, so a stolen access or refresh token alone cannot make them, and a token (uti) binds one key per relay (409 token-used). The session ends at the token's expiry orTEAM_SESSION_MAX_MINUTES(default 60), whichever is first; permissions are recomputed from the document in force on every request. The refresh token is kept only in the OS credential store, the access token only in memory while it is posted, neither in files or logs (apps/desktop/src-tauri/src/oidc.rs,server/api/src/oidc.rs). - A key entry in the team document: services (the bridge, scripts) and break-glass staff, and,
until everyone signs in, technicians as before 0.7.0. The administrator adds the public key with
a name after comparing its fingerprint out of band. With
oidc_onlyonly entries marked as a service keep working.
The signed mapping. Who is a member and with what rights (write, audit, sbom, agent,
customers), which directory roles map to which rights or Tether Manage roles, the deny list and the
provider's issuer, tenant, audience and client id are one admin-signed team document
(tether_trust::team), published by a key holder (PUT /api/admin/team; serial must rise).
Clients read the sign-in settings (GET /api/team/config) and verify them against the compiled-in
admin key, never trusting the relay's word; each relay verifies the document it is given. A relay
operator who can only change configuration cannot grant rights through it. Customer scope is
enforced by the relay: a device outside a member's customers answers exactly as an unknown one.
A compromised relay (tether-api or its data folder) can and cannot:
- It can treat anyone as a member on itself, or serve false data: it holds that relay's data
anyway. Whoever can write its data folder or
ADMIN_PUB_KEYdecides who is a member there (put back an older document, trust another admin key). - It cannot give itself or anyone rights at another relay through the team document (that is admin-signed, and its serial cannot go back by a publish), make a client or Tether Manage trust other sign-in settings (they verify them with the admin key), or sign anything with the admin or updater key (Tether Manage sessions never sign; Central management).
- It can replay a token it received at another relay of the deployment within the token's
lifetime: all relays share one API registration, so a valid access token is accepted by each of
them once, bound to the first key that presents it there. The same holds for anyone who obtains a
valid token elsewhere (a log, a compromised desktop). Bound: the token's lifetime and the session
bound (60 minutes). Mitigation: the desktop posts the token to every relay at once, so a replay
meets
409 token-usedwhere the person's session is already open, and raises an alarm and atoken-usedaudit record. Accepted for this release because one organisation runs all relays of a deployment; later: a key-bound token or one API registration per relay.
Leavers. Disabling the account in the provider stops renewal: access ends at the latest when
the current session ends, at most TEAM_SESSION_MAX_MINUTES (60 by default) later; a role removed
in the directory likewise takes effect at the next renewal. At once: the person's oid on the
document's deny list, effective on each relay as soon as it gets the document (remove the person's
key entry too, if there is one). A key entry removed from the document is locked out at once on
every relay that gets it; a relay that missed a publish still accepts the old entries and roles, so
publish to every relay (Tether Manage names relays that serve an older document). A stolen key
entry's key gives its holder that entry's rights until it is removed; a stolen desktop key alone
gives no rights once people's key entries are gone, but with a valid token it gives the person's
rights until the session ends.
What members can do. Read the health summary, reports and history (within their customers),
software lists and the software search with sbom, the session audit records of one device at a
time with audit (names, IPs and paths are personal data, so it is off by default), the device
list without IP addresses or policy serials and the shared tag document (fleet-wide). With write:
the shared tags (one JSON object, ≤ 512 KiB, replaced as a whole with optimistic concurrency on
rev; the relay does not interpret it and it must not be used for any security decision; tags are
not secrets, never put passwords or keys in them) and linking, unlinking and removing devices.
agent is checked by the viewer's app only (the host decides by its own policy). A member cannot
change policies, releases, the team document or anything else admin-signed; a member key is never
accepted as an admin key.
Tether Manage roles. A person signed in to Tether Manage with a Tether Manage role (Auditor,
Operator, PolicyEditor, Publisher, KeyHolder) reaches the relay's admin routes that only read or
operate (devices, status, session and team audit, policy history, releases; diagnostics tickets,
device removal and token revocation for an Operator) and stores proposals (unsigned, never
live). Everything that signs or publishes needs the admin key, which stays in the vault on a key
holder's PC under the passphrase; while someone without KeyHolder is signed in, Tether Manage's
vault does not sign. The same person may propose and sign (a key holder can publish alone anyway);
the record says so (same_person). A publish without a sign-in (break-glass) is recorded under the
admin key only, naming no person (docs/management.md).
The team audit log. Every member and admin request that reads or changes a device's data,
every sign-in (and refusal) and every admin change is one JSON line in
team-audit/<day>.jsonl on the relay that served it (0600): time, person (name, oid, user name,
key id), IP address, event, device, a short detail, result; never report or list contents, search
hits or tokens. Events the desktop reports about itself (exports, session starts, agent requests)
are marked self_reported. One writer thread with a bounded queue: a full queue or a write error
drops records, counted in the log, the metrics and the journal; the relay keeps serving (fails
open) and refuses to start without a writable audit folder. Tamper limits: each line carries
the SHA-256 of the line before (prev), so an edited, removed or inserted line shows as a break,
but only to someone who kept a later head: whoever controls the relay can rewrite the whole log
after the last head anyone kept, or stop logging. Tether Manage's Team activity stores each
relay's last checked head and warns when the log no longer continues from it; forwarding the
journal (each line and the head every 10 minutes) to a separate SIEM is the only copy a relay
cannot change afterwards (journald drops lines above its rate limit unless
LogRateLimitIntervalSec=0). No route lets a member change the log. Retention: 90 days and 2 GB
(TEAM_AUDIT_RETENTION_DAYS, TEAM_AUDIT_MAX_MB). Readable with the admin key or a Tether Manage
role, not by team members with audit (it is staff personal data). Details:
docs/api.md.
Limits: 120 requests/min per member key, 60 failed signatures/min per IP (IPv6 per /64), 20
refused tokens a minute per key; requests without kid (desktops before 0.7.0) are checked against
every key entry outside the state lock, at most two at a time (429 busy beyond); at most 2 000
entries and 256 KiB per document (a plain roster 500 and 64 KiB), 5 000 sessions; body limit 512 KiB
(tags); team/team.json, team/sessions.json and team/tags.json are 0600.
A monitoring agent on a machine can report its health to the relay (docs/health.md, docs/api.md). It adds two kinds of caller to the relay: devices that sign with their own key, and members that read what the devices posted. The relay side runs nothing on a device and opens no port on it. On Windows, Tether on the device can install, update and remove the agent itself when its signed policy or a technician in a session asks for it (Installing the agent through Tether below); that runs only the organisation's signed agent and opens no port either.
- Device keys are pinned. A device generates an Ed25519 key and enrols with an admin-signed
token, the request signed with that key: enrolling needs a valid token and the private key of
the key being pinned (without the signature:
401 enrolment needs the device's signature). The relay pins the key to the device's uuid instatus/keys.jsonl. Every enrolment, report and removal is signed (Tether-Sig: device-v1, message prefixtether-device-v1) over the relay's host name, the method, the path, the time, a nonce and the body hash, so a captured request is worth nothing at another relay and cannot be replayed (±300 s, nonces kept 601 s in memory,seqmust increase on every post). A device key never passes as an admin or member key, and an admin or member signature never passes on a device route (separate prefix and header version, tested both ways). A second key for a pinned uuid or Tether ID is refused (409). Only an admin-signedDELETE /api/admin/status/<uuid>, a member-signedDELETE /api/team/status/<uuid>from a member withwrite, or the device's own signedDELETE /api/statusreleases a pin; the journal names who did it. - Tether IDs are verified, not claimed. A device's Tether ID, the only thing that puts its
health on a host row in the technician app, is set in three ways only: a Tether proof with a
grant (next point), or the admin issued the token
for that Tether ID (
tether_idin the signed token; it enrols one device per relay, a second uuid gets409 token already usedthere, and a request naming another ID409 token is issued for another id; only its first use links, so it cannot undo a member's Unlink), or a roster member withwriteconfirmed the device's claim (POST /api/team/status/<uuid>/link, after one explicit confirmation in the app; the pin records the member's name and the time). A Tether ID the device names with any other token is kept asclaimed_id, shown as a claim on a row of its own, and never joins a host row by itself. A report can neither set nor change a Tether ID. A member's Unlink also dismisses the claim (no_claim) until a member allows a new one; the same key under another uuid, with the dismissed pin still there or after the device dropped it itself, comes back withno_claimand claims nothing (the relay remembers dismissed keys). The boundary: a holder of a valid enrolment token not issued for an ID can always enrol a new device (new key) that claims any Tether ID. A claim joins nothing and is fixed for that device until a technician acts; to stop claim rows from an unwanted source, revoke the token and remove its devices (monitor-publish devices --token <id>,remove). The app refuses to link a claim to a host that already has a linked health agent, so a confirmed impostor cannot hide that host's health behind a link conflict. Pin records from before verified IDs are read with their Tether ID as a claim. Single use is per relay: each relay records a token's use itself, so a copy of a token issued for one ID can link a second device on a relay the first device has not enrolled on; the technician app then shows a link conflict and joins neither device to the host. Give such tokens only to that machine and keep them short-lived. What this does not prove: a bound token and a member's confirmation are the word of a trusted person (the admin who issued the token, the technician who confirmed), not a cryptographic proof by Tether on that machine. A technician who confirms the claim of the wrong agent shows that agent's reports on the wrong host until someone unlinks it. - The Tether proof replaces that word for agents Tether installs. Tether on the machine signs
"tether-agent-link-v1\n<tether_id>\n<uuid>\n<pubkey>"(the agent's uuid and key) with its own identity key, the key hbbs holds for that Tether ID; the agent sends it with a grant in its enrolment, which it signs with its own key as every enrolment. Each relay asks its hbbs for the ID's key (GET /peer-pk/<id>, outside the state lock, answered only to loopback andPEER_LOOKUP_FROM) and verifies the proof strictly (verify_agent_link; weak keys and non-canonical signatures refused); only then is the pin linked, withlinked_proof. A proof for another uuid, agent key or ID does not verify, and it is usable only with a request the named agent key signed, so a copied proof gives nothing to another agent. It does not move an existing link: another uuid holding the ID gets409 tether_id is enrolled with another key, and a member's Unlink (no_claim, a dismissed key) holds against it. When no hbbs answers,503 tether proof unavailable: never linked without the proof. Wrong proofs and unknown IDs count against the IP's enrolment limit. What the proof rests on: hbbs's record of the ID's key. Whoever can replace that key at hbbs (W8: a registration with the ID's machine uuid from the same IP, the uuid is not secret) can produce a valid proof for that ID on a relay where no agent is linked to it yet, and so show a rogue agent's reports on that host's row, until the real host registers its key again; no code runs anywhere through it. A compromised hbbs or tether-api, or whoever controls the path ofHBBS_PEER_URL(plain HTTP), can make any proof pass on that relay with the same result. - The grant is public by design. A grant is an enrolment token with
tether_proof(never with atether_id), made by Tether Manage for one policy layer (365 days, optional customer) and carried in the signed policy, whichGET /api/policyserves to anyone. Alone it is worth nothing: without a valid proof the relay answers400 tether proof requiredor401 tether proof does not match. With it, a holder can enrol agents only for Tether IDs whose identity key it controls; since hbbs accepts new IDs freely, someone who registers many IDs can enrol many agents for them, up to 30 new pins a minute per IP andSTATUS_MAX_DEVICES, the same exposure as a leaked unbound token. Remedy: Revoke in Tether Manage (ormonitor-publish revoke), remove the devices (monitor-publish devices --token <grant id>,remove), renew. A relay without the relay update of release 0.7.0 refuses grants (fails closed). - What a token holder can do. Enrol devices until the token expires or is revoked: any uuid
that is not pinned yet, up to 30 new pins per minute per IP and
STATUS_MAX_DEVICESin total; with a token issued for a Tether ID, one device with that ID. A token is valid 1 to 30 days and can be revoked before that (POST /api/admin/status/revoke,monitor-publish revoke): the relay then answers401 token revoked. Revoking does not remove the devices that enrolled with it already;monitor-publish devices --token <id>lists them andremoveremoves them. Issue tokens for as short as the rollout takes and treat them like a password. A holder can fill the device cap, which makes507for devices that enrol later, and can make devices that claim any Tether ID; a claim shows only as a claim until a member confirms it. With a token that names a customer, every device it enrols is under that token's customer. - The customer reference is a grouping, not a boundary. An admin-signed token may name a
customer (
customer, 1 to 32 characters[A-Za-z0-9._-]); the relay sets it on the pin of the device that enrols with it. A device cannot name or change it: neither the enrolment request nor a report has the field, and a request with it is refused (400). A token holder can enrol new devices, with new keys of their own, under the token's customer. Every enrolment is signed with the private key of the key it pins (Tether-Sig: device-v1, as for a status post), so an existing device's pin, link and customer cannot be taken or changed without that device's key: the same device enrolling again with a token that names another customer (or any customer, when it had none) gets it (journal:status: customer of <uuid> set to <customer> by token <id>; the pin keeps the token it first enrolled with), and knowing a device's uuid and public key is not enough to create a pin for it either, also where a relay has none (removed, dropped after 180 days without a report, or never enrolled there). With a plain roster every member sees every device whatever its customer; with a signed team document the relay limits each member to itscustomers(Team access). The customer limits what staff see, not who can enrol: organisations that must not share relays, operators or admin keys need separate deployments (docs/several-organisations.md). - What a token holder cannot do. Read any report, summary or history (those routes need a roster member's key). Replace or change an existing pin (its customer included, above), post as another device, remove a pin, link a Tether ID, set or change the Tether ID of a pinned device (a report cannot), sign an admin or member request, or reach anything outside the status routes. A device key holder can post, and remove the pin of, that device only. A device's reports can therefore be forged by whoever controls that machine (as for any agent); they are shown as what the device said, never as a fact the relay checked.
- Report content is untrusted. The relay never parses the report's
body: it checks that it is a JSON object in valid UTF-8, stores it byte for byte (64 KiB at most) and returns it as it is. The technician app shows every text from a report as plain text, shortened to fit. Nothing a report says changes a device, a policy or an access decision. - Who can read reports. The relay operator, who can read
status/, and the team members: with a signed team document those whosecustomerscover the device, with a plain roster every member (nowriteorauditflag needed; linking, unlinking and removing a device needwrite, refused with403otherwise). Every read is recorded in the team audit log. Reports are readable on the relay, not end-to-end encrypted: machine name, installed product names and versions, check titles, values and hints (PRIVACY.md). An unauthenticated caller can tell whether a uuid is enrolled (401 unknown deviceagainst401 signature does not match); uuids are not secrets. - Limits (all before the signature check and the parser, so the cheap path stays cheap):
64 KiB per post, one accepted post per uuid per 60 s, 10 correctly signed but refused posts per
uuid per minute, 60 failed signatures or unknown uuids per minute per IP (IPv6: per /64), 30 new
enrolments, refused tokens or unsigned enrolments per minute per IP. A forged post that names a device's uuid is not
counted against that device. The relay paces devices with
next(STATUS_TARGET_RPS) andSTATUS=offturns every status route into503at once, before any body is read. - Fail closed. When
status/keys.jsonlorstatus/revoked.jsoncannot be read (anything but a last line ofkeys.jsonlcut short by a crash), the status routes answer503 status store unavailableand nothing understatus/is written: an empty pin list would hand every uuid to the next token holder, an empty revocation list would make revoked tokens valid again. Sessions, policy and updates are not affected. Recovery: restore or repair the file and restart tether-api (docs/health.md). - The monitor release index is signed like the Tether one and refused in the other direction:
monitor.jsontakes only the appsmonitorandmonitor-packs,releases.jsononly Tether's, so the agent's files can never be offered as a Tether update. The agent verifies the index, the size, the SHA-256 and the minisign signature of each artifact before installing, and so does Tether when it installs the agent (below).
From 0.7.0, on Windows, the policy features health.agent and health.enrol-grant
(docs/health.md) let Tether install, upgrade
and remove the monitoring agent. Code: apps/desktop/src-tauri/src/agent.rs (the service's
manager), agent_elevated.rs (the path through the elevation prompt, shared with TetherQS), the
session message in vendor/rustdesk/src/tauri_ui/agent.rs. None of it has been run on a real
machine yet; the statements below are from the code and its tests.
-
What Tether will run, and from where. Only the bytes of the
monitor/windows-x86_64entry of an admin-signed, unexpired, not haltedmonitor.jsonat or above the machine's serial floor for that channel, whose file is namedtether-monitor-<version>.exeand verifies for size, SHA-256, minisign signature with the compiled-in updater key (TETHER_UPDATER_PUB_KEY) and the signed trusted comment (file and version). Tether's service downloads it into%ProgramData%\Tether\health-agent\(only SYSTEM and Administrators can write; a folder a user created first, one with another owner or a junction is refused), always under the fixed namehealth-agent.exe, opens it with a handle that denies writing and deleting, verifies it again through that handle and runs it while holding the handle, so the bytes verified are the bytes executed. The only other program it runs is the installed agent in%ProgramFiles%\Tether Monitor(found through the known-folder API, not the environment). Every argument list is a constant (identity,install --from-tether -,enrol --from-tether -,upgrade,uninstall --by-tether,uninstall,--version); the grant and the proof go only over standard input and are never stored or logged. Nothing from the network or the session reaches a command line. -
Who can cause an install on which machine, and what each needs.
Who Can Needs Holder of the admin key (Tether Manage) Install or remove by policy Every machine whose resolved policy says installorremove(profile or group; a group reaches Tether's service only after a user opened Tether there) and that has Tether's service. No prompt is ever started by policy aloneTechnician in a session Install or remove on that machine An approved remote-control session with control on (the viewer's app disables the menu without the agentpermission; the remote computer checks control and its own policyon-requestorinstall;removeallows only removal). Without Tether's service also the person at the computer's yes and an approved Windows promptThe person at the computer Install through the card (Tether without its service, policy install), remove in Settings › Apps, refuse for good by machine policyAdministrator rights, or an administrator's name and password, for the Windows prompt The computer's own administrator {"health.agent":{"state":"locked","value":"manual"}}inHKLM\SOFTWARE\Policies\TetherPolicyJson(GPO)Blocks policy installs and every session request on that machine, also on the prompt path and in TetherQS Anyone else, a team member without a session Nothing on the machine — A removal on the computer (Settings › Apps, the agent's uninstall) or by a technician sticks: Tether never installs the agent again by policy; only a technician's install in a session, after a warning that names the date, does. Agents installed by hand are touched only by
removeand a technician's removal. -
The session message (
Misc1001 request, 1002 answer) carries onlystatus,installorremove, and the answer only state, version, who, a cleaned detail line and a time. The host takes it only on a logged-in remote-control connection whose keyboard control is on, one request at a time, an install or remove at most every 10 s per connection, and runs one action at a time. Each install or remove it acted on goes to the session audit log (alarm, type 30, action and result only); the connection window shows the person at the computer a line about it. On the service path the session needs no administrator: the organisation's signed agent becomes a LocalSystem service and reports system data and, where collected, the software list to the organisation's relays. That is the new power a session gets, bounded by policy and visible. -
Without Tether's service (an installed Tether without unattended access, TetherQS) nothing runs elevated except the agent itself, started with the Windows elevation prompt (
runas) ashealth-agent.exe install --from-tether pipe:<name>from the user's%LOCALAPPDATA%\<app>\health-agent\after the same verification, or the installedtether-monitor.exe uninstall --by-tether(only when the agent's service runs exactly that file and its version is 0.2.0 or later). The elevated agent copies itself into%ProgramFiles%\Tether Monitor, receives the raw signedmonitor.jsonover a named pipe (128 random bits in the name, access for this user and Administrators, one instance, the client's process must be the one started), and verifies its own copy against it before it creates the service. The boundary is the Windows elevation prompt on the secure desktop, which a session cannot see or operate. The question Tether shows first ("Install the health monitoring program?", the name the technician gave marked as not verified, what it sends and to which relays) is not a boundary: a remote session cannot click it directly (own_ui_guard), but whoever controls the desktop can operate it through the On-Screen Keyboard or a program run as the user (W18). Therefore, where Windows would not ask (Tether running elevated, UAC off, administrators elevated without a prompt, TetherQS running elevated or with its elevated service), a session-triggered install or removal is refused before anything is shown; only the person at the computer can start it there. A no holds the session off for 10 minutes. TetherQS also refuses whencustomer.elevateis off. -
A compromised relay (tether-api, Caddy, a CDN) can: withhold the policy, the index or the files (no installs, no upgrades); serve an older signed policy or index that is still unexpired and not below the machine's serial floor, within its validity (an index expires 30 days after its last signing; an expired one is refused for installs and upgrades); refuse or accept enrolments falsely, link or unlink devices in its own store and show false health; with control of its hbbs lookup, link an attacker's agent to any host row on that relay that has no agent yet. It cannot: make Tether install or remove anything where the signed policy does not say so; get any bytes run that are not an entry of an admin-signed index signed with the updater key; swap the artifact; start an elevation prompt (only a person or a session does); forge or replay the session message (end to end in the session); learn the agent's key. No code runs anywhere through a false link.
-
A process running as the same user can: read that user's or TetherQS's identity key and sign proofs for that ID (nothing new: it holds that ID's key); replace the staged file before Tether locks it (the check through the lock then fails and nothing starts) or, by renaming the folder, put another program where the prompt starts it (Tether then sees a different image and sends it nothing; that program gets administrator rights only if the person approves a prompt that shows its other or missing publisher, the same exposure as any program that asks for elevation); connect to the pipe first or hand the agent a wrong proof (the install fails); lower its own per-user index cache and floor (the elevated agent checks its own floor; on a first install, or after an uninstall, it has no floor yet, so then an older admin-signed index that has not expired is accepted); show an elevation prompt of its own at any time, which this path adds nothing to. It cannot change the protected copy or the service, get administrator rights without someone approving the prompt, or link an agent to another machine's ID. With Tether's service, a local process that can write core options over the service's IPC can choose which signed policy group applies to the service (Known limits), and so, where a group says
installorremove, cause the signed agent's install or removal. -
Tether's own files (state
health-agent.json, the download folder, the floor) are SYSTEM and Administrators only; files a user planted there are ignored and replaced. A local administrator can change them, which is their right on their own machine anyway. A standard user who created%ProgramData%\Tetherbefore the service did blocks the feature on that machine. -
Residual risks, plainly. Nothing of this has been run on a real Windows machine yet. A session on a machine with Tether's service can install a LocalSystem service (the signed agent) without the signed-in user being an administrator. The link rests on hbbs's key record (W8). The grant is public, so registered-but-fake IDs can fill the device cap until it is revoked. The pre-dialog can be operated by whoever controls the desktop; the Windows prompt is what protects. The prompt path's 10-minute hold after a no lives in memory and resets when Tether restarts.
With STATUS_SBOM=on a device can also upload a list of its installed software
(docs/health.md, docs/api.md).
It is off by default; while off, its three routes answer 404. STATUS=off wins over it.
- Who can read it. The relay operator, who can read
status/, and team members with thesbompermission of the signed team document within their customers (with a plain roster every member). It is not end-to-end encrypted. It names the installed programs with their versions and publishers and the machine's hardware identity, which is more than a report holds (PRIVACY.md). A device key and a member key do not pass on each other's routes, as for reports. - What an enrolled device can do. Store one document of its own choosing: a JSON object of at
most
STATUS_SBOM_MAX_KB(512 KiB), one accepted upload per hour, in place of its earlier one. The relay checks only that it is a JSON object and stores it byte for byte, so junk, a document that is not CycloneDX, and one nested very deeply are all stored (with the software search on it also reads three fields of it, below). Whatever reads a list (the technician app, scripts, the bridge) must treat it as untrusted text and survive that. Nothing in a list is run or changes a policy or an access decision. A device can be made to look like it has software it has not, as with a report. - What a hostile enrolled device can not do. Store more than that one document, or touch
another device's list: the key is pinned per uuid, and a signature for another uuid, an unsigned
request or a replayed one is refused with
401. - Limits, in the order of work.
STATUS=off, the switch,Content-Lengthrequired (411) and at mostSTATUS_SBOM_MAX_KB(413), a locked store, all before the body is read; the header, the per-IP limit of 60 failed requests a minute and the key lookup (a uuid that is not enrolled here is401and counts as a failure for the IP); one accepted upload per uuid per hour; a global budgetSTATUS_SBOM_RPS(default 2 per second, all devices); only then the body, read for exactly the declared bytes; then the signature and the JSON-object check. The hash, the signature check and the write happen outside the state lock. No file is written for a refused request. - Who can use up the global budget. A request takes a slot only after it passed the header,
the IP's limit, the key lookup and the device's hour, and a head without a body no longer holds
one: a body that does not arrive or a signature that is refused gives the slot back and counts
as a failure for the sender's IP. A device with a valid key can use its one upload per hour,
and one that is refused after a valid signature (
400 not a JSON object,507 sbom store full) uses that hour too, so one device key cannot keep the budget used up with refused uploads. Someone who only knows the uuid of an enrolled device (uuids are not secrets) can take a slot for as long as their request takes to be refused, 60 times a minute from one IP, after which that IP gets429 too many failed requestsbefore it reaches the budget. What remains: many source addresses, each sending 60 heads a minute for enrolled uuids, together could delay real uploads with429 busy(the device retries with backoff); and a holder of an enrolment token can enrol many devices and use the budget with real uploads of their own (revoke the token and remove its devices). Nothing else on the relay is affected. - The per-IP counter is shared. The 60 failed requests a minute per address (IPv6: per /64) are the same counter that every device-signed status route uses, so an address that trips it (failed signatures, unknown uuids, bodies that do not arrive) is refused for every status post, removal and upload for the rest of the minute. A site behind one address needs sixty failed requests in a minute to be affected; a source that can forge such requests can silence the health reports of a site behind a shared address for as long as it keeps sending them.
- Disk.
STATUS_SBOM_MAX_TOTAL_MB(2 048 MiB) limits the sum of all stored lists. A holder of an enrolment token can enrol devices (up toSTATUS_MAX_DEVICES) and fill that sum with junk lists of 512 KiB; uploads that would exceed it then get507, while devices that already have a list can still replace it with one that is not larger. Revoking the token and removing its devices (monitor-publish devices --token <id>,remove) gives the room back. - Lifetime. The file is removed with the pin: the device's own removal, an administrator's or a member's, and the 180 days without a report. Unlinking and dismissing a claim keep it.
Software search (STATUS_SOFTWARE_SEARCH=on, off by default;
docs/health.md,
docs/api.md). With it
on, the relay reads part of each list:
- Extraction, bounded. When a list is stored (and by the start-up and hourly scan for lists
stored before), the relay parses it once from the uploaded bytes, outside the state lock, and
writes a sidecar
status/<uuid>.swas it parses: only the top-levelcomponents, and of each onlyname,versionandpublisheras text; every other value is skipped without being kept (nestedcomponents,metadata, hardware properties, hashes,purlare never read). serde_json's nesting limit (128) applies; fields are cut to 128, 64 and 128 bytes on a character boundary with control, direction and zero-width characters removed; at most 5 000 programs. A document that cannot be read this way, or one cut at 5 000, gets a marker line, and a search counts such a host aspending, never as "does not have it". Measured: a realistic 511 KiB list added no peak memory; a 511 KiB document of one escaped string added about 508 KiB for the moment of parsing. - What a hostile enrolled device can do. Make its own host match any search, as it can make
its list show anything today. It cannot change another device's sidecar, and nothing in a
sidecar is run. The device uuid
softwareis refused at enrolment, since the search route has that path. - Who can search. Members with the
sbompermission of the signed team document, only over the devices of their customers: a device outside them is not read and counts nowhere in the answer (not in the hosts,moreorpending), and the cache is kept per scope, so members of different customers never share an answer. The switch needs a signed team document in force when tether-api starts, and each search checks again that one is in force (else it answers as switched off); with a plain roster there is no search. - Audit. Every search that passed the member signature, refused ones included, is one
searchrecord in the team audit log with the term and version as asked; an answered one also with the number of hosts found, never which ones. - Load (DoS) limits. One search at a time for the whole relay (another gets
429 busy,Retry-After: 5; it does not count against the member), 6 searches a minute per member key (429 too many searches), answers cached 60 s per scope, term and version (at most 2 MiB of answers), at most 2 000 hosts per answer, a time budget of 10 s (then"partial": true, not cached). The search holds no lock: it copies the devices out 1 000 at a time and reads the sidecars one at a time. A member key can therefore keep at most the one search thread busy, but that is enough to keep other members' searches waiting (429 busy; the desktop retries 3 times, then says so). Measured at 20 000 lists of 200 programs underMemoryMax=64Mwith one search every 10 s: a search takes 2.1 to 4.3 s, and heartbeat p99 rose from 1.2 to 3.3 ms, which FAILED the load tool's own latency criteria for heartbeats and policy (docs/scaling.md). Not tested with real technicians on a real relay.
Settings below are forced for every Tether process (UI, server, service and connection manager)
in both apps. Neither the user nor a remote peer can change them (security.rs and netpolicy.rs
in apps/desktop/src-tauri/src and apps/quick/src-tauri/src):
allow-remote-config-modification = N: set as a precaution. No code in this build reads the option, and the build has no remote path that changes a host's settings.enable-camera = N,enable-terminal = N: no camera view and no remote terminal on any Tether host.enable-lan-discovery = N: the device is not discoverable on the local network.enable-check-update = N,allow-auto-update = N: no requests to third-party update servers.allow-insecure-tls-fallback = N: HTTPS never downgrades.direct-server: the direct listener (TCP 21118, LAN lookup answer on UDP 21119) runs only with policynetwork.direct = autoand where it raises no firewall prompt (Windows inbound ruleTetherfrom the installer, limited to the local subnet;Tether QScreated by an admin; macOS application firewall off). It accepts only the same end-to-end key exchange as the relay (the host proves the key the rendezvous server signed for its ID; an unencrypted handshake is refused) and the same password / Accept / permission checks. The LAN lookup answer carries the ID and port only (no host or user names).enable-remote-printer = N: no virtual printer driver.allow-auto-record-incoming/outgoing = N: nothing is written to disk without an explicit action. The outgoing one is forced in the local settings map, where the core reads it (security.rs::ENFORCED_LOCAL).
Permissions a rendezvous server sends (control_permissions) take precedence over the local
enable-* options in the core (connection.rs::permission). Tether's hbbs sends none.
A technician controls the host's mouse and keyboard, so without a guard they could click in the
host's own Tether windows: grant themselves permissions on the session card, approve a consent
prompt (recording, admin access), or change settings. The host therefore filters every remote
event right before it is injected (vendor/rustdesk/src/server/own_ui_guard.rs, called from
input_service.rs, so it also covers the elevated portable service of TetherQS). Always on, no
setting, for every host (installed Tether with the service, TetherQS elevated or not). Local,
physical input never passes through it.
- Mouse: a button press or wheel over a window of a Tether process is dropped, together with
the matching release (so no drag starts there). Windows:
WindowFromPoint→GetAncestor (GA_ROOTOWNER)→ owning process (WebView2 popups: themsedgewebview2.exestarted by a Tether process). macOS: the frontmost on-screen window under the pointer (CGWindowListCopyWindowInfo), skipping the Dock's window: it covers the whole screen above all normal windows. So a click on the Dock itself where a Tether window lies underneath is dropped too. Pointer moves pass, so the pointer can still travel across. - Keyboard: while a Tether window is in the foreground, keys are dropped except what is needed
to leave it: modifier keys on their own, Alt+Tab, Win+Tab / Cmd+Tab, Ctrl+Alt+Del, lock screen.
Enter, Space, Esc, letters, typed text (
seq, paste as keystrokes), Alt+F4 and Cmd+Q never reach a Tether window. The foreground is checked per event. Windows: a lone Alt press (Alt pressed and released with nothing passed in between, e.g. Alt+F4 with F4 dropped) would put the window into keyboard menu mode and stall its page, so right before that Alt release the host injects the unassigned key VK 0xE8 (AutoHotkey's "menu mask"); the window sees a key between Alt down and up and stays out of menu mode. Alt+Tab, a lone Alt on other windows and Ctrl+Alt+Del behave as before. - Tether process = the same executable as the host process, or any executable whose name
starts with
tether(TetherQS next to an installed Tether, Tether Manage). Looked up per PID, cached for 2 seconds. - Touch zoom (Ctrl+wheel) over a Tether window is dropped.
- File transfer refuses to list, read, write, rename or delete Tether's configuration (this
process's real config folder, every user's
AppData\Roaming\Tether*, the copy underServiceProfiles\LocalService; macOSLibrary/Preferences/app.tether.*) and its installation (the install folder, the.appbundle, or a portable TetherQS exe itself). A folder above the configuration (AppData, a user profile, the drive) can be browsed, but not downloaded as a whole, renamed or removed; a folder above the installation cannot be renamed or removed. Paths are resolved (.., links, short names) before the check (is_protected_path,holds_protected). This computer's own administrative shares (\\localhost\C$\…, by its name or any of its addresses) are checked as the drive they are; any other path that reaches this computer through one of its own shares or a device path cannot be checked and is refused for every file action (by_drive). - The technician sees "The Tether window on the remote computer can only be used by the person at that computer." (at most every 5 s; older viewers ignore it).
What this does not stop (the technician still controls the computer as its user):
- Starting programs (Start menu, Win+R) and using them: a command prompt can run
tether.exe --password …/--config/--optiononly as an administrator of an installed Tether (core_mainchecks it); a technician who already has admin rights (UAC approved, or the user is an admin) can change Tether like any other software. Programs running as the user can also talk to Tether's local IPC the way its own windows do. - A junction inside an allowed folder that points into Tether's configuration is followed by a recursive download of that folder.
- File transfer outside the protected folders is full access by design. (The remote terminal is
off on every Tether host:
enable-terminal = Nis forced.) - Windows Mouse Keys: with it on, a key press becomes a click at the pointer, also while another window is in front, so it can click a Tether window the pointer rests on (W18).
- The Windows On-Screen Keyboard: clicks on its window type into a Tether window that has the focus (W18).
- A drag started outside a Tether window may be released over one (the release is not dropped, so no button gets stuck); Tether's windows do not act on drops.
- Windows that are not Tether's but change Tether (e.g. the Windows Services console, uninstall in Settings) are ordinary programs.
Tests: unit tests in own_ui_guard.rs (cargo test --lib --no-default-features --features tauri,hwcodec,use_dasp own_ui_guard in vendor/rustdesk), VM end-to-end
apps/desktop/e2e/vm-noremote-e2e.mjs (remote clicks on every TetherQS permission switch,
Disconnect, Close and the recording consent's Allow; keys while TetherQS is in front; Notepad still
works; Alt+Tab leaves; a lone Alt and Alt+F4 on TetherQS do not stall it).
- Strict CSP:
default-src 'self', no remote scripts,connect-srclimited to Tauri IPC (tauri.conf.json). - No shell, filesystem or HTTP plugins. The updater, dialog, deep-link and single-instance plugins
are registered (
app.rs) and used from Rust only: the capability file (capabilities/default.json) grants the webview no plugin command, so it can only call Tether's own commands. - Commands that change the machine's security posture are accepted from the main window only
(
commands::main_only): permanent password, 2FA (begin, confirm, disable),set_option, installing the service, saving the hosts store and the team tags. A session or connection window cannot call them. - What the IPC boundary validates (
commands.rs):- peer IDs match
[A-Za-z0-9_.@:-]{1,64}; - session keys are 32 hex characters;
- options must be on an allow-list (
security::UI_OPTIONS), so a compromised webview cannot change other core options or 2FA throughset_option; option values are at most 512 bytes; - passwords are at most 128 bytes, chat messages and typed text at most 4096;
- connection types:
session_startaccepts the same types (default,file-transfer) and runs the same checks asopen_session, the outgoing-policy check included; cm_permissionaccepts known permission names only and cannot switch on what policy keeps off (switching off is always allowed).
- peer IDs match
- DevTools are not compiled into release builds.
- Keyboard hook (Windows technician app, docs/keyboard.md): a low-level keyboard hook exists only
while a session window has the focus with "Send system keys" on and no text field active; it is
removed on focus loss, minimize, close and Ctrl+Alt+Home. Keys are only forwarded to that
session (as typing in the window would), never stored or logged. Ctrl+Alt+Del cannot be
captured.
TETHER_DEV_KEYLOG(host logs received keys instead of typing them) and the otherTETHER_DEV_*test switches exist in debug builds only. - Session video arrives on a per-window binary channel. One window cannot read another session's frames.
hbbsandhbbrrun as an unprivilegedtetheruser with systemd sandboxing (ProtectSystem=strict,ProtectHome,NoNewPrivileges,PrivateTmp, a single writable path).- Tether clients need only TCP 443 (TLS on port 80 as a fallback route): WebSocket over TLS through
Caddy (
docs/corporate-networks.md), which forwards/ws/idand/ws/relayto hbbs/hbbr's WebSocket ports 21118/21119 on 127.0.0.1. tether-api listens on 127.0.0.1 only, and so do the WebSocket ports 21118/21119 of hbbs and hbbr (WS_BIND, default127.0.0.1; the Helm chart sets0.0.0.0for its separate proxy pod). hbbs and hbbr bind 21115-21117 and their health endpoints (hbbr 21121, hbbs 21122:/healthz,/readyz, on hbbs/pubkey) on all interfaces. The host firewall rules frominstall.shopen 443/tcp, 80/tcp, 21115-21117/tcp and 21116/udp (stock RustDesk clients; UDP 21116 is also STUN/TURN for WebRTC), not 21118/21119 and not the health ports. Port 80:install.shonly opens it, on every firewall type; the front end answers it with a redirect to https (nginx:return 301).install.shadds no forward of 80 to 443. TLS on port 80, the clients' fallback route, therefore works only where such a forward was added by hand, as docs/deployment.md records for the production relays. - Client IPs behind Caddy: hbbs takes the last
X-Forwarded-Forhop, which Caddy sets to the peer it saw; Caddy overwritesX-Real-IP(read by hbbr) the same way. A client that goes through Caddy/nginx cannot choose the IP the brute-force and IP-change checks see. Since 21118/21119 listen on loopback, a client can no longer reach them directly and send its own IP headers (W5); whereWS_BINDis set to another address, a firewall or network policy must keep clients off these ports. - The front end can be nginx instead of Caddy (
PROXY=nginx, docs/proxy-benchmark.md): same routes and header rules (X-Forwarded-ForandX-Real-IPoverwritten with the peer), TLS 1.2/1.3 AEAD only, session tickets off,/qcache/reachable only throughX-Accel-Redirect, no access log. nginx and its ACME module come from nginx.org's signed repository and are patched by the OS's automatic updates; under SELinux nginx runs confined (httpd_t, read-only on tether-api's data). Wrong IPs on/_metrics/*get 403 instead of a closed connection. Basic-auth hashes are bcrypt cost 5 (the passwords are 24 random bytes; nginx checks the hash in the worker that also carries the WebSockets). - A host's signalling path (the connection hbbs sends its punch-hole, relay and ICE messages
over) is only a connection whose registration hbbs accepted:
RegisterPeerfrom the host's IP with its key known, orRegisterPkpassing upstream's UUID/key checks. Naming an ID is not enough, and only the current path's heartbeats keep it alive. RegisterPk(rendezvous_server.rs::register_pk): over UDP, where the sender chooses the source address, a registered key is never replaced; over TCP/WebSocket the upstream rule stands (same uuid from the same IP may change the key, W8). A UDPRegisterPkorRegisterPeernever moves the signalling path or stored address of a host whose TCP/WebSocket connection is open (all Tether hosts); for a host registered over UDP it still can (W17). The per-IP limiter table is pruned every 3 s and holds at most 50 000 source IPs; when it is full a new IP is refused, and a host re-sending its registered key still passes.- TURN on hbbs's UDP port takes only datagrams from the exact address an allocation sent to in
the last 5 minutes, never a rendezvous message. Requests that are not authenticated (no valid
MESSAGE-INTEGRITY, or an expired credential from an address other than its own session's) share
a budget of 50/s. Send indications and ChannelData are accepted only from client addresses that
authenticated (the 10 000 most recent ones: at the limit the address heard of longest ago goes,
so a new authenticated client always gets in). At most
TURN_MAX_ALLOCATIONS_PER_IP(default 16) allocations per client IP, besides the globalTURN_MAX_ALLOCATIONS. The nonce table is bounded at 200 000 (patchedturn0.10.0 crate inserver/patched/turn; upstream never removed unused nonces) (docs/stun-turn.md). - tether-api serves up to 32 requests at once with 30 s read/write timeouts and a whole-body
deadline, reading bodies outside its state lock, so a slow or stalled client holds only its own
request. A body that averages under 16 KiB/s after 30 s is cut off (
408). The large uploads it streams to disk have separate slots, 4 for releases and 4 for diagnostics (more:503+Retry-After), so heartbeats always keep 24 of the 32 workers, and are refused before their body is read when they cannot succeed: no admin keys, noTether-Sigheader or its timestamp outside ±300 s, an invalid path, no open diagnostics ticket. A release slot is granted on the header alone; the signature covers the body and is verified only after it arrived, against the time the upload started, so made-up uploads can occupy the 4 release slots, not the diagnostics ones (W16). A request that is not POST/PUT and announces a body, and any upgrade request, gets400 unexpected request bodybefore anything is read; the503 busyanswer and/metricsread no body. A refused body is not read on: the socket's read side is shut and the connection closed withConnection: close(tiny_http, patched inserver/api/patched/tiny_http, used to read the rest, and allocated the whole declaredContent-Lengthto do so, so one request with a huge one ended the process). The patch also gives each accepted connection a 30 s read timeout (stalled request heads, small bodies and idle keep-alive connections are dropped) and serves a burst of connections at once. Reached directly (not through the proxies), 32 stalled POST bodies can still hold all workers for up to 30 s; Caddy buffers request bodies up to 600 KiB on/api/*,/q/*and the release-index route, and nginx buffers them except on the two upload routes. tether-api closes an idle connection after 30 s, and Caddy and nginx keep idle connections to it for 20 s only, so the new proxy configuration goes out together with the new tether-api. The nonce of a release upload is remembered for about 70 minutes (other requests: 601 s), so a captured upload cannot be replayed as a slow upload that ends after the nonce was forgotten. Per-IP limits count an IPv6 client by its /64 and an IPv4 client reported in the mapped form (::ffff:a.b.c.d) as that IPv4 address.PUT /api/admin/policyvalidates the bundle strictly. The release signature (over up to 200 MiB), audit log queries and preparing a/q/copy run outside the state lock. Device lists anddevices.jsonare written from the device map without copying it, the lists through a temp file (MemoryMax 64M at 50 000 devices, docs/scaling.md); custom-app profiles are read from disk when needed. - hbbs: messages for a host on its WebSocket/TCP signalling path go through a queue of 64 per
connection (more are dropped), and a write that does not complete within 5 s closes that
connection, so a host that stops reading costs neither unbounded memory nor a stuck task.
Every rendezvous write gives up after 5 s. A controller's punch socket is written by its own
task from a queue of 64, so the main loop never waits for it. Rendezvous messages are limited
to 512 KiB (TCP and WebSocket), SDP fields to 64 KiB and
relay_serverto 1024 bytes. - hbbs stores its key pair and a registry of ID, machine uuid, device public key and IP
(
vendor/rustdesk-server/src/database.rs); tether-api stores heartbeats, policies, releases, the team roster and the audit log (docs/api.md). No relay process sees session content; hbbs with the server key could impersonate hosts (threat model). - Monitoring (docs/monitoring.md): every metrics endpoint (hbbs 21123, hbbr
21124, tether-api
/metricson 21120, Caddy 21125, node_exporter 9100, blackbox_exporter 9115, Prometheus 9090, Alertmanager 9093 with clustering off, Grafana 3000) listens on 127.0.0.1; tether-api answers/metricsto loopback peers only and Caddy never forwards that path. Metrics carry no peer IDs, IPs, keys or tokens, only fixed label sets (plus the relay names from hbbs's-rlist). Exposed through Caddy on 443: on a scraped node/_metrics/*, which closes the connection for every IP except the monitoring node's and then needs the scrape password (bcrypt in the Caddy snippet); on the monitoring node/grafana/, behind Caddy basic auth and then Grafana's own login (no anonymous access, no sign-up, basic auth to Grafana off). Whoever has the scrape password and the monitoring node's IP can also make the other node's blackbox_exporter probe targets of their choice (/_metrics/probe); the password never leaves the monitoring node. No firewall port is opened. The passwords (/etc/tether-monitoring/*.pass) are generated on the node and never committed. - Keep
/var/lib/tether/id_ed25519secret and back it up: with it, whoever controls a rendezvous path can impersonate any host. hbbs (or hbbr, if it starts first on a fresh node) creates it0600inside the0750directory;rotate-key.shinstalls keys0600, andinstall.shcorrects owner and mode of existing key files.rotate-key.sh rollbackrefuses a second run. Losing it, or a suspected leak, means a server key rotation (docs/key-rotation.md); clients without key-list support (before this version) must be updated before that.
Details and code references: docs/encryption.md §11. Update the status here and there together.
| ID | Weakness | Status |
|---|---|---|
| W1 | Key exchange version 0 (one key, same nonces both ways) is accepted from and used with non-Tether peers; the shield still shows | fixed in the next release |
| W2 | Legacy (non-multiplexed) TCP tunnels switch to raw mode: no inner encryption (needs permission.tunnel, default N) |
fixed in the next release |
| W3 | The trusted server key and custom server are local options (UI only with settings.server; a machine admin always) |
fixed in the next release |
| W4 | Rendezvous/relay endpoints given as IP addresses use plain ws:// |
fixed in the next release |
| W5 | hbbs/hbbr WebSocket ports 21118/21119 bound all interfaces; reached directly (no host firewall) they took client-sent IP headers and had no TLS | fixed, deployed 2026-11-07 |
| W6 | Host authenticity rests on hbbs and the server key (no pinning, no own-fingerprint display, no viewer key) | open — by design today |
| W7 | Connecting by IP address skips the handshake and the refusal (plaintext against a stock host) | fixed in the next release |
| W8 | RegisterPk with an ID's uuid from the same IP replaces its key (upstream rule). Over UDP the source IP could be forged. Once the attacker re-registers the new key from its own IP, the real host gets UUID_MISMATCH and takes a new ID; the attacker keeps the old one. Side effect of the UDP fix: a stock RustDesk client that registers over UDP again with a new key but the same machine uuid (config wiped, reinstall) gets UUID_MISMATCH and takes a new ID; Tether clients register over WebSocket and are not affected. With the replaced key a Tether proof for that ID passes, so a rogue agent's reports can show on that host's row where no agent is linked yet (Device status) |
UDP path fixed in the next release (a registered key is never changed over UDP); TCP/WebSocket from the same IP (same NAT or proxy): open |
| W9 | Update manifest unsigned (rollback to an older signed build, blocking via minimum_version); neither app checked the signed trusted comment, so an older signed build could be offered under a higher version |
fixed in the next release (trusted-comment check, signed release index with serial floor) |
| W10 | macOS direct listener is not limited to the local subnet | open |
| W11 | Traffic analysis: frame sizes and keystroke timing visible to relay and proxy | open |
| W12 | A captured challenge response allows offline password guessing | open |
| W13 | Audit records are unauthenticated and can be forged | open — by design today |
| W14 | A v1 Tether-Sig names no relay: a captured admin or team request can be replayed at another relay within ±300 s (the replayer needs a view inside TLS: a relay that received it, or an inspecting proxy) |
relays accept v2 (host-bound) since 2026-11-10, apps sign it from the next release; open while relays accept v1: set TETHER_SIG_V1=off once every app signs v2 |
| W15 | The recording upload token travels in the public policy bundle (GET /api/policy needs no authentication): anyone who reaches the relay can read it |
open — by design today: the token must be write-only (PUT/create; no list, read or overwrite) |
| W16 | A release upload slot is granted on an unverified Tether-Sig header (the signature covers the body): made-up uploads can hold the 4 release slots, about 55 min each, and block release uploads; nothing else |
open |
| W17 | A forged UDP RegisterPk (an ID's uuid and its unchanged key) or RegisterPeer (from the host's IP) moves the address hbbs stores for a host registered over UDP until it registers again. Hosts registered over TCP/WebSocket (all Tether hosts) are not affected while their connection is open |
fixed for TCP/WebSocket hosts, deployed 2026-11-10; open for UDP hosts (stock clients) |
| W18 | Own-window guard: Windows Mouse Keys (a key press becomes a click at the pointer while another window is in front) and the On-Screen Keyboard (clicks on its window type into a focused Tether window) get past it | open |
Report vulnerabilities privately to the maintainers. Do not open a public issue.
- An attacker with code execution on the endpoint can read whatever that endpoint displays. Endpoint security is out of scope.
- The ID ↔ IP registry on the relay is metadata visible to the relay operator. Self-host the relay to keep it in-house.
- Host authenticity rests on hbbs and the server key: no host-key pinning, no viewer identity key (docs/encryption.md).
- hbbs lets a registration over TCP/WebSocket with an ID's uuid from the same IP replace that ID's key (upstream rule; over UDP no longer); the uuid is not secret (docs/encryption.md).
- The recording upload token is public: it is delivered in the policy bundle, which every device and anyone else who reaches the relay can read. Use a token that can only create objects (no list, read or overwrite) (docs/recording.md).
- While a relay accepts v1 request signatures, a captured admin or team request can be replayed at
another relay within ±300 s. Remedy: update the relays first (with
RELAY_HOST), then the apps, then setTETHER_SIG_V1=off(W14). - Staff sign-in: a valid access token is accepted once by every relay of the deployment, so whoever obtains one (a relay that received it, a log, a compromised desktop) can open a session as that person at a relay that has not seen it, for at most the token's lifetime and the session bound; disabling an account or removing a role takes effect at the next renewal (at most 60 minutes by default), the deny list at once. The Entra ID set-up was tested against a mock provider only (docs/sign-in.md).
- The team audit log shows changes only against a chain head kept elsewhere: whoever controls a relay can rewrite or stop its log (Team access).
- A device's Tether ID in the health view rests on a Tether proof (which rests on hbbs's record of the ID's key, W8), or on a token issued for that ID or a technician's confirmation, both the word of a trusted person (Device status). On a machine with Tether's service a remote session, where the policy allows it, can have the organisation's signed agent installed as a LocalSystem service without the signed-in user being an administrator (Installing the agent through Tether). Reports are readable by the relay operator and the team members their permissions allow, not end-to-end encrypted. The same holds for the software list (The software list), which also holds the hardware identity.
- A custom app's settings apply above the policy profile, except for features the profile locks: it can add restrictions and defaults, and its branding (title, accent, welcome text) applies, but it cannot unlock what the policy locks.
- The background service takes its device identity for group policy from a core option
(
tether-install-uuid) that the signed-in user's app sets. Any local process that can write core options over the service's IPC can set it and so choose which signed policy group applies to the service. It cannot create or change a policy, machine policy (GPO/MDM) still wins, and the webview cannot write this option. - File transfer: a junction inside an allowed folder that points into Tether's configuration is followed by a recursive download.
- Uninstalling with "Delete the application data" removes
%APPDATA%\Tetherof the signed-in user and of the elevating administrator and the service's copy; other users' profiles on the PC keep theirs. - macOS builds must be signed and notarized, and Windows builds code-signed, before distribution. Unsigned binaries cannot be authenticated by users. Signing keys go into CI secrets, never into the repo.