Security Advisory

BLUFFS: Impersonating BR/EDR Devices Using Fixed Weak Session Encryption Key

Over the years, the security mechanism used in BR/EDR (Classic) have evolved from Legacy Pairing over Secure Simple Pairing to the current Secure Connections. While basically all Bluetooth devices support Secure Simple Pairing, only newer devices support Secure Connections. However, all Bluetooth devices are backwards compatible such that any two device can pair and connect with each other.

This backwards-compatibility also allows an attacker to trigger Legacy Pairing authentication when connecting to a device that supports Secure Connections. New research presented in the BLUFFS paper shows how attacker can impersonate a previously bonded device, trigger Legacy Pairing authentication, and enforce a fixed weak session encryption key. The fixed session key (7 bytes) can then be brute-forced offline (in weeks to months) and then used to decrypt man-in-the-middle sessions from the past or fully impersonate the bonded device in the future.

BLESA: GATT Client Vulnerabilities

For Bluetooth Low Energy (BLE) connections, most application make use of the Generic Attribute Profile (GATT) profile. Access to data on the GATT Server can require authentication on a fine-granular level. However, this security is only enforced by the GATT Server. If an attacker uses the Bluetooth address of a previously paired device, it can configure its GATT Server with no authentication requirements and interact with the fooled GATT Client. Similarly, if the attacker is present during the first connection, the GATT Client may interact with the attacker without any form of pairing. These issues were analyzed in the BLESA paper. The issues are not limited to a particular implementation, they are based on an incomplete Bluetooth specification.

BLURtooth: BLUR Attacks on CTKD

The Cross-transport Key Derivation (CTKD) between Bluetooth LE and Classic (BR/EDR) transports introduces various security issues depending on the actual configuration and use that have been recently brought forward by researchers of Purdue University.

CTKD allows to pair on one transport, and use derivation of this key for other transport, i.e., as a link key for classic, or long term key for LE transport.

The key idea for the BLURtooth attacks is to pair on the transport with lower authentication requirements, and then connect on the transport with the higher authentication requirements which may not check the authentication requirements, and so gain access to its services.

Method Confustion Attack on Bluetooth Pairing

LE Secure Connections uses the Passkey entry method to prevent MITM attacks. However, the new ‘Method Confusion Attack’ shows that a MITM attack is possible although the user perceives pairing using the Passkey-Entry method. In this attack, the MITM uses the number generated by Numeric Comparison with one device for Passkey entry with the other, hence providing the illusion that the connection is secure.

Quick summary of the attack:

BIAS: Bluetooth Impersonation AttackS

A new Bluetooth security paper Bluetooth Impersonation AttackS (BIAS) shows how flaws in the Bluetooth spec can be used to perform a variant of the existing KNOB attack even after pairing. In a nutshell, the paper suggests that Secure Connections (SC) can be downgraded to Legacy Secure Connections and that Legacy Secure Connections do not require mutual authentication.

The good news is that the encryption key size check, that we added to BTstack to prevent the KNOB attack by the same author, also prevents the BIAS if the default encryption size of 128 bit is used. With a lower encryption key size, the KNOB attack becomes easier to mount, but brute-forcing the lower encryption key size (>= 56 bit) still requires significant computing power.

KNOB: Key Negotiation of Bluetooth Attack

The new KNOB attack exploits a flaw in the key negotiation protocol for classic connections and lets an attacker reduce the effective key length to a single byte of Classic connections, which then can easily be broken by brute-force.

While Bluetooth Controller could be updated by the vendor to require at least a 56 bit key length, the recommended remedy by Bluetooth SIG Erratum 11838 is to validate the effective encryption key size by the Bluetooth stack.

Low Energy Legacy Pairing Re-evaluated

Re-evaluating LE Legacy Pairing, we realized that customers could miss to set two security keys (ER + IR) to persistent random values, which would lead to a security issue. In addition, a Central would have issues identifying different devices if private random addresses are used.

With this advisory, we would like to make sure that your design is not affected.

Action

You should check if you are providing unique/random persistent ER and IR values to the Security Manager via sm_set_er() and sm_set_ir during startup.