Section 7.18

Bonding

Definition

Bonding is the Bluetooth procedure in which two devices that have paired store the keys that pairing §7.17 produced, so that later connections can be encrypted with those keys without pairing again. Pairing creates shared keys; bonding keeps them. Each device writes its own record, called a bond, to its own non-volatile storage (memory that keeps its content without power). A bond holds the peer’s identity, the long-term key §7.28 (LTK) that encrypts later connections, and the security properties the key was created with. The Bluetooth Core Specification defines bonding.

The idea

A phone and a door lock pair once. The lock shows six digits and the user types them on the phone. Without bonding, the two would repeat that step at every connection, for example each time the phone comes back into radio range. With bonding, each device stores the key that pairing produced. At the next connection the phone starts encryption with its stored key, the lock finds the same key in its own store, and no user action is needed.

The price is that a key now lives for months, on two devices, in two separate stores. Picture two people who agree on a password and each write it in their own notebook. Either notebook can be erased, copied or swapped for an old photocopy without the other changing, and neither notebook tells what the other still contains. A bond therefore brings the whole lifecycle of a stored credential (creation, use, replacement, deletion, restoration), and each step can leave the two records out of step or bring back a record that should be gone. The picture stops at one point: a bond also records how strongly the key was protected when it was made, for example whether the user compared a number, and that record decides what the key may later be trusted for.

How it works

In Bluetooth Low Energy (BLE) §7.1 the device that sets up the connection is the central and the other is the peripheral. The central always starts pairing and encryption; the peripheral can only ask it to, with a message called a Security Request. Bluetooth Low Energy is abbreviated LE in the names of its two pairing procedures, LE Secure Connections §7.21 and LE legacy pairing §7.20. A bond goes through these steps.

  1. Request. In the first two messages of pairing, the pairing feature exchange, each device states in two bits of a one-byte field named AuthReq (authentication §1.6 requirements) whether it wants to bond: 01 means bonding, 00 means no bonding. A device that accepts no bonds, which the specification calls non-bondable mode, sends 00. Keys are kept as a bond only if both devices send 01; otherwise they protect the current connection and are then discarded.

  2. Key creation and distribution. Pairing produces the LTK, a 128-bit key: under LE Secure Connections both devices compute it; under LE legacy pairing one device chooses it and sends it over the link that pairing has just encrypted. Over that link a device can also send its identity resolving key §7.29 (IRK), which lets the receiver recognize the sender’s changing private addresses; its identity address §7.30, the fixed address that names the device; and its connection signature resolving key (CSRK), which lets the receiver verify data the sender has signed.

  3. Storage. Each device writes a bond record to its own storage. The record holds:

  4. Reconnection. At a later connection the central asks its Link Layer §7.6, the part of the Bluetooth chip that sends and receives packets, to start encryption with the stored LTK. It sends EDIV and Rand (both zero after LE Secure Connections) and fresh random values. The peripheral’s software looks up the matching LTK in its own store and gives it to its own Link Layer. Both Link Layers compute a session key for this connection from the LTK and the fresh random values, then exchange messages encrypted under it. A device that does not hold the same LTK cannot produce or accept those messages, so a completed encryption setup shows that both sides still hold matching bonds.

  5. Missing key. If the peripheral finds no LTK for the request, it rejects the encryption request and may disconnect. The central’s software receives an error code, 0x06, that reports a missing key.

Worked example

A phone P (the central) and a door lock L (the peripheral) pair with LE Secure Connections and passkey entry §7.23: L displays six digits and the user types them on P. Both devices send AuthReq 0x0D, which is 13 in decimal and 0000 1101 in binary. Bits 1 and 0 read 01 (bonding), bit 2 is 1 (protection against a man-in-the-middle requested) and bit 3 is 1 (LE Secure Connections supported). Both asked to bond, so each stores a record: the peer’s identity address, a 16-byte LTK K1K_1, authenticated: yes, LE Secure Connections: yes, key size: 16 bytes.

Case 1, the lock deletes. L is reset to factory settings and erases its record. P reconnects and asks for encryption with K1K_1. L has no LTK for P and rejects the request, and P receives error 0x06. Because P and L were bonded, P reports a security failure to the user instead of pairing again on its own. The user deletes the old record on P, and the two pair afresh.

Case 2, the phone deletes. The user tells P to forget L; L keeps its record. P uses a fixed public address, which appears in the clear in its radio packets, so an attacker M can copy it. M connects to L and sends a Pairing Request with input and output capability NoInputNoOutput (code 0x03) and AuthReq 0x09, binary 0000 1001: bonding and LE Secure Connections, no request for protection against a man-in-the-middle. These values select Just Works §7.22, a method in which the user compares nothing, so the new key K2K_2 would be unauthenticated. If L accepts every re-pairing, it overwrites K1K_1 with K2K_2, and M now opens the lock as P. With the rule “never replace an authenticated bond with an unauthenticated one”, L compares the stored property (authenticated) with the offered one (unauthenticated) and refuses with a Pairing Failed message, reason 0x03 (authentication requirements). The genuine P has a keyboard, so it can re-pair with passkey entry and produce an authenticated key, which the rule accepts.

Case 3, rollback. L stores its bond records with a version number vv, and protects records and version together with a message authentication code §5.7: a tag that only a holder of L’s secret key can compute. L also keeps a monotonic counter §8.28 cc in hardware that cannot be set back to a smaller value. On day 1, P and a second phone Q are bonded, and v=c=4v = c = 4. On day 2, Q is lost; L deletes Q’s bond, writes the store with v=5v = 5 and raises cc to 5. On day 3, an attacker with access to L’s storage chip writes back the copy saved on day 1, which still contains Q’s bond. Its tag is valid, because L computed it. At start-up L compares the stored version with the counter: 4<54 < 5, so L rejects the store as rolled back and treats every bond as lost. Fresh pairing is now needed for P, but the lost phone Q is not readmitted. Without the counter check, L would have accepted the day-1 store and Q would work again.

Stated precisely

Three facts must be kept apart.

  1. A bond record exists: the store of device AA holds an LTK and its security properties for the identity address of peer BB. This is a fact about AA’s storage. It says nothing about BB’s storage.

  2. This connection is encrypted with the bonded key: on the current connection, encryption setup completed with the LTK from AA’s record for BB. Only this event shows that BB holds the same LTK.

  3. BB may perform this operation: a decision of the application, which the first two facts do not make.

The security properties of an encrypted link are those stored with the key that encrypted it: authenticated or unauthenticated, LE Secure Connections or LE legacy pairing, and the key size. A pairing that replaces the key replaces these properties as well.

A bond protects later connections under three assumptions.

A fourth condition comes from the device’s policy for re-pairing: a record may be replaced only by a pairing whose security properties are at least those of the record it replaces, or after a local user action such as a button press.

When the two records disagree

The two records are independent, so a change to one never reaches the other. If the peripheral deleted its bond and the central kept its own, the central’s encryption request fails with the missing-key error. For bonded devices, table 2.9 of the Security Manager part of the specification then requires the device to notify the user of a security failure, whatever the security properties of the key; automatic pairing is permitted only for devices that did not bond. If the central deleted its bond and the peripheral kept its own, the central starts a new pairing as a stranger would. The peripheral must either refuse, which forces the user to clear its record too, or accept and replace the old bond with the new keys. Replacing a bond in this way is called re-pairing.

An address is not a secret: any radio can send packets that carry a copied address. A peripheral that accepts every re-pairing therefore lets anyone in radio range replace a bond by claiming the bonded peer’s address, and the replacement may use a weaker method than the original. The specification opens a second route of its own: when a central receives a Security Request and its stored keys are missing or weaker than the properties requested, the central must start pairing and update its stored keys. A safer rule accepts a replacement only if its security properties are at least those of the stored bond, or only after a local user action.

Restoring an older copy of the bond store, from a backup or by an attacker who saved the storage contents and later writes them back, is a rollback. It undoes every change made since the copy was taken: a bond deleted to revoke a lost phone comes back and works; a bond replaced by re-pairing returns to an old key that the peer no longer holds, so encryption fails; and stored counters return to old values, such as the counter that data signing uses to reject a signed message sent a second time, so old signed messages can be accepted again. Detecting a rollback needs a monotonic counter, a number that can only increase, kept where the attacker cannot write back an old value, and a check of the store’s version against it.

Limits and common mistakes

A bond is not a connection and not an encrypted link. A device can hold a bond for its peer and still exchange unencrypted packets with it, before encryption starts or after an encryption request has failed.

Each device’s view is local. BlueZ §12.21, the Bluetooth software of Linux, shows four separate properties for a remote device: Paired (pairing completed), Bonded (the keys from pairing are stored and kept), Connected (a link exists now) and Trusted (a setting made on the computer; BlueZ then authorizes that device’s service connections without asking the user through the agent, the program that shows such prompts). All four describe the computer’s own records. “Paired: yes, Bonded: yes” does not show that the other device still holds its matching bond; only a successful encryption setup on a live connection shows that. Trusted is a local shortcut for authorization §1.7 and adds no cryptographic protection.

Re-pairing is a weakness of the specification itself, not only of careless implementations. Tommaso Sacchetti and Daniele Antonioli describe re-pairing attacks, which they name BLERP (BLE Re-Pairing), at the Network and Distributed System Security (NDSS) Symposium 2026 [277]. They report that the specification lets paired devices re-pair without proving that they hold the existing key, and lets the new pairing have a lower security level §7.33 than the old one. Their attacker is in radio range and knows no keys; their attacks impersonate a paired device, or put the attacker in the middle of two paired devices, with at most one click by the user, and they report success against 22 devices. They report that the Bluetooth SIG (Special Interest Group, the body that maintains the specification) acknowledged the issues but did not plan to change the specification; that Apple, Google and the Apache Software Foundation, which maintains the open-source Bluetooth software NimBLE, took steps to address them; and that Logitech and Microsoft declined to issue fixes. A device therefore cannot wait for the specification to close this route; its own re-pairing policy must.

A bond is not an authorization. A peer bonded through Just Works proved nothing about who it is, and even a peer with an authenticated bond may be refused a particular operation.

Deleting a bond also deletes the peer’s IRK. The deleting device can then no longer recognize the peer’s private addresses, and the peer appears as an unknown device.

A device whose bond store is full and that overwrites its oldest bond deletes that bond silently, with the effects of a one-sided deletion.

Questions answered

What happens when one side deletes or rolls back its bond state?

When one side deletes or rolls back its bond state, the two devices’ bond records stop agreeing, and the effect depends on which side lost or regained what. Each device stores its own bond (the keys from pairing, kept for later connections), so a change on one side never reaches the other.

In every case a device learns that both sides still share a bond only from a successful encryption setup on the current connection, never from its own record.

Related entries: Key provisioning (§5.28), Key rotation (§5.29), Long-term key (LTK) (§7.28), Security level (§7.33), Pairing (§7.17), Just Works (§7.22), Identity resolving key (IRK) (§7.29), Key revocation (§5.32), Rollback versus anti-rollback (§8.26), Monotonic counter (§8.28), BlueZ (§12.21). Further reading: [18, 277].