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.
| Kconfig | Why | CRA Annex I |
|---|---|---|
| CONFIG_STACK_CANARIES=y | Detects stack buffer overflows | Part I (2)(f), (2)(k) |
| CONFIG_HW_STACK_PROTECTION=y | MPU guard regions on thread stacks | Part I (2)(f), (2)(k) |
| CONFIG_USERSPACE=y | Application threads run unprivileged | Part I (2)(k) |
| CONFIG_SHELL=n | No interactive shell on production units | Part I (2)(b), (2)(j) |
| CONFIG_DEBUG_OPTIMIZATIONS=n | No debug builds in the field | Part I (2)(b) |
| CONFIG_BOOT_BANNER=n | No version banner on the UART | Part I (2)(j) |
| CONFIG_TEST_RANDOM_GENERATOR=n | Never ship the test RNG | Part I (2)(e) |
| CONFIG_MBEDTLS_PSA_CRYPTO_C=y | State-of-the-art crypto via PSA API | Part I (2)(e) |
| CONFIG_BT_SMP_SC_ONLY=y | BLE Secure Connections only (if BLE) | Part I (2)(d) |
| SB_CONFIG_BOOTLOADER_MCUBOOT=y | Verified 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.