Security

How MacDuo X keeps your Mac yours. Last updated November 29, 2026.

Remote control means everything on your screen and every key you type — including passwords — travels between your iPhone and your Mac. So we designed MacDuo X on one rule: only your own two devices can ever read it. Not us, not our relay server, not your internet provider, not anyone on the same Wi-Fi.

The short version

Pairing: you approve every iPhone

There are two ways to pair, and both need you at your Mac: scan the QR code shown on your Mac's screen, or tap your Mac in the app and click Allow on the Mac. Tap-to-pair works like Bluetooth's numeric comparison: both screens show the same six-digit number, derived from an X25519 key exchange that the Mac commits to before it sees the iPhone's contribution. An attacker in the middle ends up with different keys on each side, so the numbers wouldn't match — and the commitment stops them from trying keys until they do.

The iPhone's Secure Enclave identity key is part of what produces those six digits, so the Mac trusts exactly that iPhone — no one can swap in a different one. If an iPhone ever connects with your code but hasn't been allowed before (for example after scanning the QR code), your Mac asks you first and shows its security key.

The pairing secret lives only in your iPhone's Keychain (this device only, not synced) and on your Mac. Remove a single iPhone from the Mac's menu, or revoke them all at once by creating a new pairing code.

Every connection, step by step

  1. Outer layer — TLS 1.2 with ECDHE-PSK and ChaCha20-Poly1305. A key derived from your pairing secret authenticates the connection, and an ephemeral elliptic-curve exchange gives this layer its own forward secrecy.
  2. Inner layer — a post-quantum handshake. Your iPhone sends a fresh X-Wing public key and its identity key. The Mac encapsulates a shared secret to it and proves two things over the whole handshake: that it knows your pairing secret (HMAC-SHA256) and that it holds its own hardware identity key (an ML-DSA-65 signature). Your iPhone checks both — and checks that it's the same Mac key it saw before — then proves the same in return. Any check failing ends the connection.
  3. Trusted iPhones only. Even with every proof correct, the Mac only lets in an iPhone you've allowed.
  4. Traffic keys. HKDF-SHA256 mixes the X-Wing secret with your pairing secret and the handshake transcript, producing a separate 256-bit key for each direction.
  5. Every message is sealed with AES-256-GCM and a strict counter. A message that is changed, replayed, dropped or reordered fails to decrypt, and the connection closes immediately.

Your pairing code is stretched with PBKDF2-HMAC-SHA256 (600,000 rounds) before it's used, so a recorded handshake can't be used to guess it offline.

The relay: how it works away from home

On the same network, your iPhone connects to your Mac directly. Away from home, both connect out to our relay, which simply joins the two encrypted streams. The relay never has your pairing secret or any key, so it sees only ciphertext. Like any internet service, our hosting provider (Cloudflare) sees IP addresses and how much data flows, but not what's inside. We don't log the content we forward.

On your Mac

Sharing and alerts

On your iPhone

What we can't protect against

Honesty matters here. Encryption protects your data in transit; it can't help if one end is already compromised. If someone has your unlocked iPhone with MacDuo X open (turn on the Face ID lock), knows your Mac's password, or has malware running on your Mac, they could see what you see. Keep both devices updated and protected with a passcode.

Found a problem?

We take security reports seriously and will credit researchers who report responsibly. Please reach us through the Support page.