<?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>nRF52840 Cannot Sniff Encrypted Connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95369/nrf52840-cannot-sniff-encrypted-connection</link><description>I am trying to sniff the connection between my Garmin fitness watch and the Garmin app on my Android phone. I can see the advertisements, and when I initiate pairing I can see the pairing happening. But once the encrypted connection is established, Wireshark</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Jan 2023 21:00:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95369/nrf52840-cannot-sniff-encrypted-connection" /><item><title>RE: nRF52840 Cannot Sniff Encrypted Connection</title><link>https://devzone.nordicsemi.com/thread/403487?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 21:00:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32e0200d-642b-46ca-9abd-040972bf9709</guid><dc:creator>sroyinct</dc:creator><description>&lt;p&gt;Thanks for the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Cannot Sniff Encrypted Connection</title><link>https://devzone.nordicsemi.com/thread/403479?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 19:42:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba7811d9-5059-4beb-9a34-b0c21a832620</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, LESC pairing should be used if &lt;span style="text-decoration:underline;"&gt;both&lt;/span&gt; devices include the &lt;span&gt;&amp;quot;Secure Connection Flag&amp;quot; in their pairing request/response. You can also tell that LESC is used by the&amp;nbsp;SMP packets sent after the pairing response. Legacy pairing will not include the public key exchange or the DHKey check at the end.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With regards to the nRF Connect issue, try to press the Reset button on the dongle to make it enter DFU mode (The red LED indicates DFU mode). Then select the &amp;quot;open bootloader&amp;quot; device from the dropdown menu and click yes when prompted to program it. This&amp;nbsp;will allow the app to replace the sniffer FW with the connectivity FW which is needed for BLE connectivity.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Cannot Sniff Encrypted Connection</title><link>https://devzone.nordicsemi.com/thread/403475?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 18:39:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5c58bf9-d869-4cee-ac59-c7517f05bcbf</guid><dc:creator>sroyinct</dc:creator><description>&lt;p&gt;Thanks, Vidar.&amp;nbsp; A couple of followup questions:&lt;/p&gt;
&lt;p&gt;1. I wasn&amp;#39;t aware that the watch is using LESC.&amp;nbsp; How can you tell?&amp;nbsp; Is it from the &amp;quot;Secure Connection Flag&amp;quot; in the pairing request (packet 3053)?&lt;/p&gt;
&lt;p&gt;2. I don&amp;#39;t have a spare dongle, but I thought I would at least try the nRF Connect Bluetooth Low Energy app as you suggested.&amp;nbsp; But I am getting a error as shown in the attached screenshot and log file.&amp;nbsp; Does this indicate a problem with the dongle?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/nRF-Connect-for-Desktop-Bluetooth-Low-Energy-Standalone-Error.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2023_2D00_01_2D00_05T18_5F00_28_5F00_06.366Z_2D00_log.txt"&gt;devzone.nordicsemi.com/.../2023_2D00_01_2D00_05T18_5F00_28_5F00_06.366Z_2D00_log.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Cannot Sniff Encrypted Connection</title><link>https://devzone.nordicsemi.com/thread/403325?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 09:10:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cb89924-3ad6-4118-8114-dc236de76ad4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Unfortunately, a BT sniffer will not be able&amp;nbsp;to pick up the encryption key when the devices use&amp;nbsp;&lt;span&gt;LE secure connections pairing (LESC) to establish the bond like in your&amp;nbsp;case.&amp;nbsp;&amp;nbsp;LESC uses a Diffie-Hellman key exchange&amp;nbsp;that protects against passive eavesdropping.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;For comparison, with&amp;nbsp;LE Legacy pairing, the encryption key would be sent in cleartext on air. Thus, making it easy for a passive sniffer to retreive the key.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; If&lt;/span&gt;&amp;nbsp;you have a spare DK/Dongle, you may try to use the&amp;nbsp;&lt;a title="nRF Connect Bluetooth Low Energy" href="https://infocenter.nordicsemi.com/topic/ug_nrfconnect_ble/UG/nRF_Connect_BLE/nRF_Connect_intro.html?cp=10_3_0"&gt;nRF Connect Bluetooth Low Energy&lt;/a&gt;&amp;nbsp;app in&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-connect-for-desktop"&gt;nRF Connect for Desktop&lt;/a&gt;. This allows you to configure the security capabilities for pairing so you can force LE legacy pairing mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Initiate Pairing in&amp;nbsp;nRF Connect Bluetooth Low Energy app&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1672909717537v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1672909694228v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>