This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Data encrypted but also listened by sniffer

Hi, I'm developing an BLE application using nrf51822.

I have a BLE security issue to discuss. (Actually I don't have much network security background...)

In our application, we use pca10001 to transmit data. I modify ble_hrs sample code, and remove the bond manager and pstorage modules. This is because reducing the RAM (ZI-data) usage...

As my understanding, bond manager can save the "service discovery" information and other security information to flash with pstorage module.

[b]Our application want to send data packets with "encryption", and the sniffer (using pca10000) cannot recognize these data packet.[/b]

Before pca10001 starting advertising, the sniffer is on. When pca10001 start advertising, I select pca10001 and listen it.

When I try to use master control panel (another pca10000), I found the data will encrypted when I press the bond button (BLE_GAP_EVT_SEC_PARAMS_REQUEST event happen)

But the sniffer also can listen the data packet even the encryption flag is "Yes" in the wireshark. Is this normal? In my imagination, when the bond button is pressed, the sniffer cannot listen (recognize) this link anymore.

Any suggestion about this problem? Thanks!!

Related