← All tools

Zephyr CRA hardening config

The production Kconfig settings that matter for the Cyber Resilience Act, for Zephyr and nRF Connect SDK projects. Each option is mapped to the Annex I requirement it supports. Download the commented prj.conf overlay and drop it into your build with -DEXTRA_CONF_FILE.

KconfigWhyCRA Annex I
CONFIG_STACK_CANARIES=yDetects stack buffer overflowsPart I (2)(f), (2)(k)
CONFIG_HW_STACK_PROTECTION=yMPU guard regions on thread stacksPart I (2)(f), (2)(k)
CONFIG_USERSPACE=yApplication threads run unprivilegedPart I (2)(k)
CONFIG_SHELL=nNo interactive shell on production unitsPart I (2)(b), (2)(j)
CONFIG_DEBUG_OPTIMIZATIONS=nNo debug builds in the fieldPart I (2)(b)
CONFIG_BOOT_BANNER=nNo version banner on the UARTPart I (2)(j)
CONFIG_TEST_RANDOM_GENERATOR=nNever ship the test RNGPart I (2)(e)
CONFIG_MBEDTLS_PSA_CRYPTO_C=yState-of-the-art crypto via PSA APIPart I (2)(e)
CONFIG_BT_SMP_SC_ONLY=yBLE Secure Connections only (if BLE)Part I (2)(d)
SB_CONFIG_BOOTLOADER_MCUBOOT=yVerified boot and signed updates (sysbuild)Part I (2)(c), (2)(f)

Download the full hardening fragment

Commented prj.conf overlay with every option above, BLE and MCUmgr notes, and the sysbuild.conf lines for signed MCUboot images.

Instant download. Occasional CRA updates by email; unsubscribe anytime. Privacy

Option names change between Zephyr releases and some depend on your SoC (MPU, TRNG). Check each against your version; unknown symbols show up as Kconfig warnings. Debug-port lockout (APPROTECT, RDP) is set per SoC. For the full mapping read CRA compliance for Zephyr RTOS, and generate your SBOM with the firmware SBOM generator.
DONE FOR YOU · 5 WORKING DAYS

Get a CRA Firmware Gap Review

An embedded engineer reviews your product and build, and hands you four things: your CRA classification, an SBOM generated from your firmware, an Annex I gap report, and a 24/72-hour vulnerability reporting runbook.

See what's included → Book a free 20-min call €3,900€1,900founding-client price