<?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>INVALID PARAMS when migrating to security mode 1 level 4</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69201/invalid-params-when-migrating-to-security-mode-1-level-4</link><description>I am attempting to migrate my BLE project to a higher security level with bonding. Was mode 1 level 2 and am upgrading to mode 1 level 4. When I change the configuration to the following: 
 
 I get [NRF ERROR INVALID PARAM] errors when adding my second</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Dec 2020 10:17:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69201/invalid-params-when-migrating-to-security-mode-1-level-4" /><item><title>RE: INVALID PARAMS when migrating to security mode 1 level 4</title><link>https://devzone.nordicsemi.com/thread/284471?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 10:17:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6a7c205-1ddc-4ad0-ba3d-ee798fe4a391</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Bloq,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Good question. It is certainly not how it should be used. I do not see how this would be better than just works. If only the iOS has input or output device, then this does not give you any benefit. There is no way to know if you have connected to the device you intend to or an attacker.&lt;/p&gt;
&lt;p&gt;So this just gives an illusion of security, but that is all. It is better to use just works then in my opinion.&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INVALID PARAMS when migrating to security mode 1 level 4</title><link>https://devzone.nordicsemi.com/thread/284348?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 14:03:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c98c5b1f-b259-4058-af66-78b653e6c503</guid><dc:creator>Bloq</dc:creator><description>&lt;p&gt;Thank you both for the helpful responses.&amp;nbsp; I have proceeded with two implementations.&amp;nbsp; They are as follows, both WITH BONDING:&lt;/p&gt;
&lt;p&gt;1:&amp;nbsp; LESC With MITM Using Numeric Comparison (mode 1 level 4) : The only adjustment that I made was automatically accepting the numeric comparison on the peripheral side because of a lack of buttons or display.&amp;nbsp; I know this is sort of cheating but we are still accepting the pairing on the IOS side.&amp;nbsp; So only half cheating.&amp;nbsp; How does this effect the level of security and allow for MITM attacks?&amp;nbsp; Is this any safer than implementation 2?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2: LESC with JUST WORKS (mode 1 level 2) : This is basically what we will use if your answers to my questions above are level 2 security.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Lastly, with bonding, MITM attacks can only occur if the attacker is present during pairing.&amp;nbsp; How would this attack work if we use implementation 1 with the half numeric comparison authentication.&lt;br /&gt;&lt;br /&gt;Thanks in advanced,&lt;/p&gt;
&lt;p&gt;Bloq&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INVALID PARAMS when migrating to security mode 1 level 4</title><link>https://devzone.nordicsemi.com/thread/283982?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 09:31:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ee5e605-fec6-47de-b6ad-a457c25f6753</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;as Amanda has pointed out, your link is considered as SM1 level 2 - if you would like to keep these settings, you shouldn&amp;#39;t pass a secutity mode parameter (&lt;span&gt;ble_gap_conn_sec_mode_t) higher than sm=1,lv=2 to any softdevice function.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INVALID PARAMS when migrating to security mode 1 level 4</title><link>https://devzone.nordicsemi.com/thread/283956?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 07:44:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7939b309-6485-4cc4-b59d-2355a54522cf</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Bloq,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If it&amp;#39;s done using just work mode, the level of security is considered level 2. You should use MITM to get to level 4 and that is when the lesc bit can be 1.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Also, check out some links put in this thread:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/49674/le-secure-connections-when-there-is-no-io-capability/198279#198279"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/49674/le-secure-connections-when-there-is-no-io-capability/198279#198279&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INVALID PARAMS when migrating to security mode 1 level 4</title><link>https://devzone.nordicsemi.com/thread/283858?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 14:44:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab8c66e9-4bdd-4942-a0a1-258639f668c3</guid><dc:creator>Bloq</dc:creator><description>&lt;p&gt;Thank you very much for your response Amanda,&lt;/p&gt;
&lt;p&gt;I would like to clarify that I am working with the nRF52840-DK.&amp;nbsp; We would like to use ECDH and bonding under security level mode 1 level 4 with &amp;quot;Just Works&amp;quot;.&amp;nbsp; Can you please clarify if this is possible to achieve.&lt;/p&gt;
&lt;p&gt;Thank you for your help,&lt;/p&gt;
&lt;p&gt;-Bloq&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INVALID PARAMS when migrating to security mode 1 level 4</title><link>https://devzone.nordicsemi.com/thread/283796?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 12:35:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d300b49c-c048-45ef-9df4-f3add8d9f173</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Bloq,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;No, the setting is t&lt;span&gt;he LESC with Just Work, the security level will be considered Mode 1 level 2. See this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/49673/authentication-operation-of-le-secure-connections-le-security-mode-1-level-4"&gt;post&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you use MITM to get to level 4 and that is when the lesc bit can be 1. See &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_gls.html"&gt;Glucose Application&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I get [NRF ERROR INVALID PARAM] errors when adding my second service and even when trying to sd_ble_gap_device_name_set.[/quote]
&lt;p&gt;You have to debug and find out which function returns the error. Are you able to provide the debug log?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which SDK and DK are you using?&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>