Special notice

Security Threat in Bluetooth® LESC Pairing

Elliptic curve public key validation is not required if the public key is trusted in the operation where it is used.

A public key can only be flagged as "trusted" by the creator of the public key if the creator knows how it was made and what it is going to be used for. The most common use case for a trusted public key is in an ECDSA verify procedure, i.e. a public key used to verify the signature of a firmware upgrade. This conserves code size and execution time, but negates the requirements of the Bluetooth® Core Specification if it is used in context of LE Secure Connections pairing procedures. Remote public keys are never to be trusted.

nRF5 SDK v15.0.0 has an sdk_config.h configuration to allow stating that a local public key is to be trusted, which can be used in Secure DFU/bootloader context. The sdk_config.h configuration is identified as NRF_CRYPTO_BACKEND_MICRO_ECC_PUBLIC_KEY_TRUSTED_ENABLED. Its default setting differs depending on the project.

Note: NRF_CRYPTO_BACKEND_MICRO_ECC_PUBLIC_KEY_TRUSTED_ENABLED must be set to '0' in any example that receives and handles untrusted public keys. This ensures that the public key is validated as part of the ECDH procedure. Setting this to '1' will negate the public key validation described in this document, making your applications vulnerable to the attack described in Vulnerability Note VU#304725.