How does LE Secure Connections differ from legacy pairing, and why can an eavesdropper present during legacy pairing recover its keys?
answer
- a flag in both devices decides
- legacy key derives from a tiny secret
- public-key agreement on a named curve
- the long-term key is no longer sent
- received public keys must be checked
basics
~20 sSecure Connections agrees the key with ECDH on P-256 and never sends it. Legacy pairing derives it from a Temporary Key of zero, six digits or OOB data, so a listener at pairing can recover it unless the OOB key is strong.
solid answer
~40 sBoth devices set the SC flag for Secure Connections to be used; otherwise pairing is legacy. Secure Connections runs an ECDH exchange on P-256, authenticates (Numeric Comparison, Passkey Entry or OOB, or none for Just Works), confirms with a DHKey check, and generates the LTK in phase 2 without sending it. Legacy pairing derives an STK from a Temporary Key that is zero (Just Works), a six-digit passkey of about 20 bits, or 128-bit OOB data, together with random values sent in the clear. Core 6.3 says none of the legacy methods protects against a passive eavesdropper during pairing, and NIST's guide treats legacy as broken except for OOB with a 128-bit key.
go deeper
Know that Secure Connections uses ECDH on P-256 and legacy pairing does not.
Explain the Temporary Key, the STK and why a listener at pairing can recover legacy keys, and how the SC flag selects the pairing type.
Cite the validation, reflection and legacy-passkey notices at the strength each states, and what a product must now check.
Decide when to drop legacy pairing across a product family and what peers that costs.
## Which pairing runs The authentication requirements in the Pairing Request and Pairing Response each carry an **SC** flag. If both devices set it, LE Secure Connections is used; if either clears it, the pair falls back to LE legacy pairing. A device that needs Secure Connections can therefore refuse a peer that clears the flag; Secure Connections Only mode (covered with the security modes) goes further and accepts only services at the level that requires it. ## How legacy pairing makes its key - Both sides derive a **Temporary Key (TK)** from the chosen method: **zero** for Just Works, a six-digit passkey for Passkey Entry (the Core text gives about 20 bits of entropy), or a 128-bit random value passed out of band. - They exchange random values and confirm values, and compute the **Short Term Key (STK)** from the TK and those values. - After encrypting with the STK, the Peripheral may distribute the LTK, EDIV and Rand and the IRK over the link. If the TK is zero or only a million values are possible, an observer of the pairing frames can recover the STK and, through it, the keys distributed afterwards. The Core Specification therefore states that none of the legacy methods protects against a passive eavesdropper during pairing, and NIST SP 800-121 says that except for OOB with a 128-bit TK, legacy pairing should be considered broken for the same reason. ## How Secure Connections makes its key 1. Each device generates a P-256 key pair and the two public keys are exchanged. 2. **Authentication stage 1** applies the association model: Numeric Comparison, Passkey Entry, OOB, or Just Works with no verification step. 3. **Authentication stage 2** computes the MacKey and the LTK from the ECDH result and the exchanged values, and each side checks the other's confirmation. A mismatch ends pairing with the reason DHKey Check Failed. 4. The LTK is never transmitted. Key distribution then carries at most the IRK and identity address. Other requirements a reviewer can check: a new key pair after every pairing, successful or not; waiting intervals that grow after repeated failures; and **validation of any received public key** (point on P-256). ## What changed after published weaknesses | Notice | Concern | Change | |---|---|---| | CVE-2018-5383 (2018 notice) | Public key not validated by some products | Validation moved from recommended to required | | CVE-2020-26558 | Passkey Entry, same public key presented back | Reject a peer key equal to the local one | | CVE-2022-25836 | Legacy Passkey on one side, Secure Connections Passkey on the other | SIG recommends Secure Connections Only mode | Core 6.2 also integrated security errata on insecure passkey generation and on reflection of pairing random and confirm values in legacy pairing. ## Reviewing a product's pairing code - **Debug mode.** The Security Manager defines a debug mode with a fixed, published key pair so that test equipment can follow an encrypted link; one side using it is enough to expose the LTK. Production firmware must not enable it, and a device that cannot accept the debug key may reject it with the reason Invalid Parameters. - **Fixed key pairs.** Core 6.2 integrated an erratum that a conforming implementation shall not retain a fixed public/private key pair if it supports generating one. - **Random numbers.** Another 6.2 erratum covers random numbers in security procedures that were not drawn from a sufficiently secure source. Passkeys, nonces and key pairs all depend on that source, so a reviewer asks where the product's randomness comes from. - **Pairing Failed reasons.** Confirm Value Failed, DHKey Check Failed (stage 2, or an invalid public key), Numeric Comparison Failed and Passkey Entry Failed are the visible stops; a log that shows repeated ones from one peer is a finding for the waiting-interval logic. ## Trade-offs - Core 4.0 and 4.1 devices lack the P-256 support Secure Connections needs, so it cannot be negotiated with them; NIST notes that Secure Connections Only mode is not backwards compatible with them. - A fleet that must still pair with legacy peers should record which products accept it, since those pairings carry the legacy weaknesses. - Secure Connections does not make Just Works authenticated; it removes the passive-listener exposure only.
- What did the 2018 notice on elliptic-curve parameters change in the specification?Researchers found that the specification only recommended validating a received public key, so some products skipped it. The SIG changed the specification to require validation of any public key received in public-key based procedures and added a qualification test. Core 6.3 states a device validates that a received key is on the P-256 curve and fails pairing if not.
- How would you stop a product from falling back to legacy pairing?Do not accept a peer whose SC flag is clear for services needing a protected key, ending pairing with Pairing Failed when the generated key lacks the required properties, or enable Secure Connections Only mode. The cost is that Core 4.0 and 4.1 peers can no longer pair. The setting belongs in the inventory of what each product accepts.
- Says Secure Connections is chosen by the MITM flag.
- Believes the six-digit passkey is the legacy encryption key.
- Thinks Secure Connections distributes the LTK to the peer afterwards.
- Claims legacy pairing is safe if bonding is enabled.
- Says Secure Connections removes the need to validate received public keys.
Assumes Core 6.3. LE Secure Connections was introduced in Core 4.2 and the public-key validation requirement followed the 2018 notice; Core 6.2 integrated further passkey and reflection errata.