Phone → Headset key Headset → Phone key Attacker-relayed traffic
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Smart Headphone BLE Pairing Security

Smart headphones pair with a phone over Bluetooth Low Energy using LE Secure Connections: an elliptic-curve Diffie-Hellman exchange that keeps the audio and microphone link private from anyone just listening. This simulator runs the same key-exchange algebra (with a small toy modulus so every step is visible) between a 3D phone and a 3D headset, then lets you flip on an active man-in-the-middle attacker sitting between them. Switch between the three real BLE association models — Just Works, Numeric Comparison and Passkey Entry — to see exactly why an unauthenticated Just Works pairing lets the attacker relay and decrypt everything undetected, while the two authenticated models generate mismatched confirmation codes that expose the attack before either device trusts it.