Skip to content

About

Openembedded add-on security layer for NXP i.MX platforms, covering secure boot, secure storage, integrity, encryption, runtime hardening and OTA updates🔒

Topics

Resources

Security policy

Stars

28 stars

Watchers

1 watching

Forks

Latest commit

 

History

353 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meta-imx-secure

BitBake parse License: MIT

A Yocto layer that extends the NXP i.MX BSP with secure boot, encrypted and verified storage, integrity checks and kernel and userspace hardening.

NOTE: Using this layer does not automatically perform irreversible provisioning. Secure boot requires OEM SRK hash fuse programming and device lifecycle closure. Storage rollback protection requires RPMB key provisioning and RPMB storage enabled. Signed images alone do not secure the device.

Features

Area Description
Secure boot AHAB signing with NXP SPSDK, signed Linux FIT images and a full PQC secure boot chain on supported silicon
Storage protection Encrypted read-only root filesystem and writable data, AVB-verified rootfs using dm-verity with forward error correction (FEC)
Key protection OP-TEE-backed kernel trusted and encrypted keys, EdgeLock Enclave cryptography and persistent key storage on supported SoCs
Runtime integrity IMA/EVM signature checks and enforced kernel module signatures
Access control Optional SELinux, nftables firewall, USBGuard, audit logging and OpenSSH CA authentication in production
Application cryptography OpenSSL PKCS#11 integration through OP-TEE or NXP Security Middleware (SMW), experimental OP-TEE PQC
TPM support OP-TEE fTPM
OTA updates A/B system updates with optional SWUpdate integration for signed and encrypted bundles
Build and hardening Development and production profiles, kernel and userspace hardening
Security scanning SPDX SBOM generation, CVE checks and optional Trowl scans with advanced CVE analysis, hardening checks and secret detection

These features support Cyber Resilience Act (CRA) readiness. Compliance depends on the finished product and its maintenance processes.

Supported hardware

The layer targets NXP i.MX8 and i.MX9 boards. AHAB signing supports these SoCs:

Family SoCs
i.MX8 i.MX8QM, i.MX8QXP, i.MX8DX, i.MX8DXL, i.MX8ULP
i.MX9 i.MX91, i.MX93, i.MX95, i.MX937, i.MX943, i.MX952

Feature support depends on the board and BSP. Boards outside the tested list may need further adaptation.

The layer supports PQC boot signing on i.MX943 A1, i.MX95 B0 and i.MX952 A0 using AHAB v2 containers. See the signing options.

HABv4 signing is planned but not yet supported.

Tested hardware

These boards are tested:

Board MACHINE Tested by
FRDM-IMX95 imx95-15x15-lpddr4x-frdm embetrix
FRDM-IMX93 imx93-11x11-lpddr4x-frdm embetrix
FRDM-IMX91 imx91-11x11-lpddr4-frdm embetrix

Open a pull request to add a tested board.

Documentation

Guide Description
Building images Host tools, signing keys, profiles, kas builds and build artifacts
HSM signing AHAB signing with PKCS#11 key references and HSM keys
Device setup SD card and eMMC flashing, development login and SSH certificates
Boot flow Boot authentication, A/B slot selection and initramfs
Partitioning Disk offsets, partition sizes and mount points
AHAB provisioning SRK fuse scripts, programming and verification
OTA update integration SWUpdate bundles, A/B slots and boot firmware selection
Layer integration Adding the layer to an existing Yocto build

Layer dependencies

The BSP is provided by meta-freescale. See kas-imx-secure.yml for repository URLs, branches and revisions.

Repository Branch Layers
openembedded-core wrynose meta
meta-openembedded wrynose meta-oe, meta-python, meta-networking and meta-multimedia
meta-avb wrynose meta-avb
meta-security wrynose meta-security, meta-integrity and meta-tpm (optional)
meta-selinux wrynose meta-selinux (optional)
meta-swupdate wrynose meta-swupdate (optional)
meta-trowl main meta-trowl (optional)
meta-arm wrynose meta-arm and meta-arm-toolchain
meta-freescale wrynose meta-freescale

Commercial support

Maintained by Embetrix Embedded Systems Solutions. Contact info@embetrix.com for custom development, board support, integration, provisioning, key management and maintenance.

Disclaimer

This layer is a starting point for product integration. The integrator is responsible for assessing threats, removing unused software and services and adapting firewall, USBGuard rules, SELinux policy, software updates and key management to the product's needs. The integrator must also check license compliance, track and address CVEs in all included software and test the full boot and recovery process. Incorrect OTP fuse programming can permanently disable a device. The maintainers accept no liability for damage caused by fuse programming, lost or leaked signing keys or misconfiguration. This layer is provided as is, without warranty. No security certification is implied. See the MIT License for the warranty and liability terms.

About

Openembedded add-on security layer for NXP i.MX platforms, covering secure boot, secure storage, integrity, encryption, runtime hardening and OTA updates🔒

Topics

Resources

Security policy

Stars

28 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages