<?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>Disable Bonding and allow only pairing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57979/disable-bonding-and-allow-only-pairing</link><description>Hi, 
 Is there a way to disable bonding? I am having issues when I delete the paired device from my phone. After I delete the pairing, nordic still has the stored keys for the same phone. 
 I want to disable bonding and let the user know bonding is not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Feb 2020 17:34:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57979/disable-bonding-and-allow-only-pairing" /><item><title>RE: Disable Bonding and allow only pairing</title><link>https://devzone.nordicsemi.com/thread/235275?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 17:34:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6c00c28-bdfe-474a-9744-361a0b345ab6</guid><dc:creator>Daniel</dc:creator><description>&lt;p&gt;Thanks, Kenneth.&lt;/p&gt;
&lt;p&gt;This would happen only if the attacker knows the passkey.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable Bonding and allow only pairing</title><link>https://devzone.nordicsemi.com/thread/235258?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 15:46:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ffcc0ec-198f-4371-b03f-3d72c5cec8f6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The security issue is that if you allow re-pairing without some user interaction, then an attacker could spoof the address of the already bonded central to connect and establish a new bond with the device.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable Bonding and allow only pairing</title><link>https://devzone.nordicsemi.com/thread/235253?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 15:32:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f18e5f21-cbd9-41e4-8bd6-dff3e9ebd779</guid><dc:creator>Daniel</dc:creator><description>&lt;p&gt;Sounds like there is some confusion here.&lt;/p&gt;
&lt;p&gt;I am not following what are you saying.&lt;/p&gt;
&lt;p&gt;Can you please explain in little more detail&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable Bonding and allow only pairing</title><link>https://devzone.nordicsemi.com/thread/235247?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 15:26:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d63b9340-c8c4-42a2-997b-8b3c49adc6e1</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;On a device without any buttons?&lt;/p&gt;
[quote userid="86855" url="~/f/nordic-q-a/57979/disable-bonding-and-allow-only-pairing/235228"]I don&amp;#39;t have any button on my ble peripheral.[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note: Buttonless devices do not allow MITM security. The only exception would use something like NFC for key exchange.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable Bonding and allow only pairing</title><link>https://devzone.nordicsemi.com/thread/235236?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 14:50:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ce1f408-3ab2-464c-8d6d-89515dc842a7</guid><dc:creator>Daniel</dc:creator><description>&lt;p&gt;What is the security issue here?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;User will have to enter passkey for pairing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable Bonding and allow only pairing</title><link>https://devzone.nordicsemi.com/thread/235228?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 14:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed78cb34-bc38-4601-8489-046a70e320bf</guid><dc:creator>Daniel</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have any button on my ble peripheral. When I used nrf-connect , it allows pairing without bonding.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1582122659002v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;How does it do this?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable Bonding and allow only pairing</title><link>https://devzone.nordicsemi.com/thread/235212?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 13:54:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b145e9b-1b48-44c1-8178-bb01a6249d34</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You can allow repairing, though typically this is not recommended to do by default, since it is considered a security issue to allow repairing without some user interaction:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// This event handler is in main.c

static void pm_evt_handler(pm_evt_t const * p_evt)
{
    pm_handler_on_pm_evt(p_evt);
    pm_handler_flash_clean(p_evt);

    switch (p_evt-&amp;gt;evt_id)
    {
...
...
...
        
        case PM_EVT_CONN_SEC_CONFIG_REQ:
        {
            // Allow pairing request from an already bonded peer.
            pm_conn_sec_config_t conn_sec_config = {.allow_repairing = true};
            pm_conn_sec_config_reply(p_evt-&amp;gt;conn_handle, &amp;amp;conn_sec_config);
        } break;

        default:
            break;
    }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable Bonding and allow only pairing</title><link>https://devzone.nordicsemi.com/thread/235085?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 08:56:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec1b9fc6-1839-41ba-8285-313fad3bfef9</guid><dc:creator>Turbo J</dc:creator><description>[quote userid="86855" url="~/f/nordic-q-a/57979/disable-bonding-and-allow-only-pairing"] I still want to have an authenticated secure link.[/quote]
&lt;p&gt;That &lt;strong&gt;REQUIRES&lt;/strong&gt; bonding. Sounds like a &amp;quot;wash me, but don&amp;#39;t make me wet&amp;quot; question.&lt;/p&gt;
&lt;p&gt;Note that there are other mthods to solve the &amp;quot;phone forgot the bt keys&amp;quot; aka man-in-the-middle attack problem, depending whether your device has buttons or how secure you want the connection to be.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>