Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is iOS Bluetooth LE encryption mandatory?

My colleagues are developing on a TI CC2540, and they want to sniff the communication as much as possible.

Does the iOS core bluetooth framework support LE Security Mode level 1 (i.e., encryption and authorisation not required) for arbitrary peripherals and services? If it does, the data flow would seem much more transparent.

like image 383
ZhangChn Avatar asked Aug 03 '12 03:08

ZhangChn


People also ask

Does Bluetooth require encryption?

To deter hacking Bluetooth uses encryption based on security protocols called the SAFER+ block cipher. This technical term is complex to explain but essentially it's based on encrypting data using custom algorithms.

Is Bluetooth LE encrypted?

The encryption in Bluetooth LE is based on 128-bit Advanced Encryption Standard — Counter with CBC-MAC (AES-CCM). LTK is used with this algorithm to create the 128-bit “shared secret” key. Authentication is provided in Bluetooth (LE) by digitally signing the data using the connection Signature Resolving Key (CSRK).

Does Bluetooth 5.0 require encryption?

Data transmission over Bluetooth LE in version 5.0 of the specification uses AES-CCM encryption. This encryption is performed in the Bluetooth Controller.


1 Answers

I would think it would have to, since not all BLE devices use encryption. From Apple's Bluetooth Design Guidelines:

"The Bluetooth accessory should not require special permissions, such as pairing, authentication, or encryption to discover services and characteristics. It may require special permissions only for access to a characteristic value or a descriptor value. See the Bluetooth 4.0 specification, Volume 3, Part G, Section 8.1, fifth paragraph."

Also, from personal experience, no authentication was required to use the key fob included with the TI CC2450 Mini Development Kit. I'm currently using the key fob as a reference platform to add BLE support to techBASIC. I've been able to access all of the key fob features from my own app with no authentication. TI's demo does the same.

So, if any authentication is required to use the CC2540 (and based on the above quote, I don't think it is), it's entirely transparent at the software level.

Just for fun, here's a snapshot of a techBASIC app connecting to the the key fob from TI's CC2450 Mini Development Kit. Again, this was done with no authentication.

enter image description here

like image 176
Mike Avatar answered Nov 12 '22 00:11

Mike