virtualabs / btlejack

Bluetooth Low Energy Swiss-army knife
MIT License
1.9k stars 196 forks source link

encryption information packets #84

Open aamert7 opened 1 year ago

aamert7 commented 1 year ago

hello, i am establishing a connection between my phone android and nrf5 DK using nrf connect app , and trying to capture LTK , using btlejack on a single micro-bit chip, many attempts i failed to capture all the packets and the connection always lost so fast, the best was attempt when i could capture the following packets together :

DeveloperMarius commented 2 months ago

Hey, the connection is encrypted with a key that is exchanged via a diffie hellman key exchange. Thus, you cannot decrypt the packets. crackle only works with LE Legacy Paring and not the mentioned LE Secure Connection Paring using ECDH.

To my knowledge, there is no way to decrypt these packets captured with btlejack. When you want to analyze the contents of packets in a LE Secure Connection I would recommend recording them using the Android Debugger: https://medium.com/@charlie.d.anderson/how-to-get-the-bluetooth-host-controller-interface-logs-from-a-modern-android-phone-d23bde00b9fa

~ Marius