<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sniffing BLE LESC traffic in tshark.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/128594/sniffing-ble-lesc-traffic-in-tshark</link><description>Hi there, 
 1. I want to sniff BLE LESC bonding session in tshark/CLI not in Wireshark/GUI. And decrypt it in the same session using LTK. The idea is to increase the time interval between LTK generation and encryption start packet, then extract the LTK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Jul 2026 14:19:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/128594/sniffing-ble-lesc-traffic-in-tshark" /><item><title>RE: Sniffing BLE LESC traffic in tshark.</title><link>https://devzone.nordicsemi.com/thread/569471?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2026 14:19:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22696ced-339a-4368-9631-e69010195fd9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Umer,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;To be honest I haven&amp;#39;t used LESC debug keys with Wireshark and nRF sniffer. I usually just use the LTK printed out&amp;nbsp;by&amp;nbsp;&lt;span&gt;CONFIG_BT_LOG_SNIFFER_INFO=y. I&amp;#39;m not so sure our sniffer can auto detect debug key or not.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffing BLE LESC traffic in tshark.</title><link>https://devzone.nordicsemi.com/thread/569414?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2026 13:40:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9ad8ef7-8580-43f5-b3ec-3a1be2e50767</guid><dc:creator>Umer</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Initially it didn&amp;#39;t worked at all. it started decrypting after a few day I enabled it. At first, I didn&amp;#39;t even realized that it is due to debug keys, which is why I asked about vulnerability. &lt;br /&gt;Now there is no pattern sometimes it starts decrypting and continue to decrypt for several sessions but then suddenly it stops decrypting again.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you are asking about adding the LTK before recording, I have never face such issue while decrypting with LTK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffing BLE LESC traffic in tshark.</title><link>https://devzone.nordicsemi.com/thread/569410?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2026 13:33:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6d4586f-94bf-4762-8df2-31772cbc7a95</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Umer,&lt;/p&gt;
&lt;p&gt;How often do you see that wireshark can&amp;#39;t decrypt ?&amp;nbsp;If you add the key every time before recording do you see the problem ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffing BLE LESC traffic in tshark.</title><link>https://devzone.nordicsemi.com/thread/569327?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2026 08:22:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bec903b-e6a7-403a-bd34-800491c69e34</guid><dc:creator>Umer</dc:creator><description>&lt;p&gt;I understand debug keys are the most probable reason. However, the problem is debug keys should work for every session. Why is it not consistant?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffing BLE LESC traffic in tshark.</title><link>https://devzone.nordicsemi.com/thread/569326?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2026 08:11:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa5a5875-2fe9-40b7-b73d-10c4f1807e02</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Umer,&amp;nbsp;&lt;br /&gt;I suspect that Wireshark may have the debug key stored. And reuse it after reboot.&amp;nbsp;&lt;br /&gt;But I don&amp;#39;t see this as a big issue if it&amp;#39;s the debug key that you use. Why you think it&amp;#39;s a vulnerability in BT LESC if you use the debug key&amp;nbsp; ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffing BLE LESC traffic in tshark.</title><link>https://devzone.nordicsemi.com/thread/569281?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2026 12:52:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd730561-00a1-44d5-a027-08271f06a26a</guid><dc:creator>Umer</dc:creator><description>&lt;p&gt;1. It sniffed the session on Wireshark, Initially it was not decrypting at all, there were only packets with bad MIC after the ENC_START packets. now, it sometimes decrypt and other times it don&amp;#39;t. If you could tell me what exactly you want to check in the trace i will share it.&lt;br /&gt;&lt;br /&gt;2. I am using using debug keys when bonding.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;3. It is BT LESC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffing BLE LESC traffic in tshark.</title><link>https://devzone.nordicsemi.com/thread/569280?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2026 12:40:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:915fabd5-d353-4069-b463-0af181542ada</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Umer,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you send the trace where it decrypted the bonding ?&amp;nbsp;&lt;br /&gt;Do you use the debug key when bonding or it&amp;#39;s the normal default key generation ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Was it LESC or it&amp;#39;s Legacy pairing ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffing BLE LESC traffic in tshark.</title><link>https://devzone.nordicsemi.com/thread/569032?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2026 08:57:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b62b5e3a-1ab8-49e0-8882-3aa9a0fc55d0</guid><dc:creator>Umer</dc:creator><description>&lt;p&gt;Hi Hung,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfutil actually worked perfectly for this case. It is able to filter the traffic with the device address and decrypt it with LTK with particular commands.&amp;nbsp;&lt;br /&gt;However, I have another concern now. I tried the debug key method before, but it was not working. I kept that mode enabled anyway.&amp;nbsp; Recently, when I was testing again, Wireshark decrypted the whole bonding session without any key provided. I think this is because the debug mode is enabled, but the problem is it is not happening every time, so I can not certainly say it is due to debug keys.&amp;nbsp;&lt;br /&gt;1. What could be the reason that it is not happening every time?&lt;br /&gt;2. Would it make any difference if I enable the debug mode on both devices?&lt;br /&gt;3. Could there be any other possibilities why the scan was decrypted, such as any vulnerability in BT LESC? Because this happens only a few times, and I have tested so many times after enabling the debug keys.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffing BLE LESC traffic in tshark.</title><link>https://devzone.nordicsemi.com/thread/568718?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2026 13:21:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c0126cf-1174-4b5e-a34d-20ce0a296b8a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Umer,&amp;nbsp;&lt;br /&gt;I&amp;#39;m afraid that it&amp;#39;s not very well documented. The sniffer created as a tool to assist debugging not a development tool.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We haven&amp;#39;t got much development to the sniffer firmware in the last few years. So the situation remains the same.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I noticed another customer has managed to use tshark with the nrfsniffer. I haven&amp;#39;t looked deep into this but maybe you can check ?&amp;nbsp;&lt;a href="https://www.adam-thomas.co.uk/blog/nrfutil-bluetooth-sniffer-with-tshark/"&gt;https://www.adam-thomas.co.uk/blog/nrfutil-bluetooth-sniffer-with-tshark/&lt;/a&gt;&lt;/p&gt;
[quote user="Umer"] Also, I would like to know if I go with another appraoch like to use snifferAPI or nrfutil for automation purpose what would be the best appraoch?&amp;nbsp;[/quote]
&lt;p&gt;The functionality exposed to nrfutil is quite limited. It&amp;#39;s made to be used with wireshark so I don&amp;#39;t think you will be able to get much out of it. You will need to use the snifferAPI. But please check with the article above.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffing BLE LESC traffic in tshark.</title><link>https://devzone.nordicsemi.com/thread/568668?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2026 15:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ac354e3-021b-402a-a7b5-460ff5477874</guid><dc:creator>Umer</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Can you provide link to any document where I can find how exactly nRF use the LTK and if it can be used in middle of a session?&lt;br /&gt;&lt;br /&gt;Decrypting a bonded session is easier, but I want to decrypt a bonding session for a specific purpose.&lt;/p&gt;
&lt;p&gt;The problem with tshark is, it is not even filtering the traffic with device MAC address. I have read in some old Nordic cases that tshark is not supported with nRF sniffer. It seems like this still is the case here. can you confirm from any documentation? Also, I would like to know if I go with another appraoch like to use snifferAPI or nrfutil for automation purpose what would be the best appraoch?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffing BLE LESC traffic in tshark.</title><link>https://devzone.nordicsemi.com/thread/568650?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2026 11:46:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1f25f75-9da3-4d3c-b624-2a4659dff78d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Umer,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. The way I understood about how&amp;nbsp;the sniffer works with the keys is that they LTK has to be provided to the sniffer firmware running on the nRF5x chip. The chip decript the packets on the fly and send it to PC/wireshark. So it&amp;#39;s not wireshark or Tshark that decrypt the encrypted messages.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not so sure if you can feed the LTK right before the encryption start to enable the sniffer to start decrypting the message. But you can try.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;An easier way&amp;nbsp;in my opinion is to do bonding, then disconnect, provide the LTK to the sniffer and then connect again. This way the sniffer will be able to use the LTK to decrypt the connection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. I don&amp;#39;t have much experience with tshark. But as I mentioned the decrypting should be on the nRF52 not on the PC. So if you can capture unencrypted packet with tshark + nRF52 you should be able to do so with encrypted packets.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>