Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
Embedded & IoT QASeniorSpecialistSecurity

How would you test secure boot and firmware-image validation?

Answer

Verify accepted algorithms, keys, image structure and valid signatures, then reject altered payloads, metadata, signatures, sizes and incompatible targets. Test revoked or wrong keys, corrupted primary and candidate slots, protected security counters and recovery images. Confirm failure is safe, observable and cannot fall through to executing unverified code.

Strong answer includes

  • tamper-tests both payload and metadata
  • covers key and target identity
  • verifies no path executes an unverified image

Practical example

A secure-boot test suite verifies that a signature-altered image is rejected, but never tests an image with a valid signature computed over the wrong metadata (like a swapped target-device field). The team finds during a security audit that the bootloader validates the signature over the payload only, not the header, so a correctly-signed image built for a different product variant boots successfully and bricks a device with incompatible hardware.

#embedded#secure-boot#firmware#security

Sources

MCUboot design documentationMCUboot · Firmware image validation, secure boot, update swaps, rollback and downgrade protectionNIST IR 8259A — IoT Device Cybersecurity Capability Core BaselineNIST · IoT device identity, configuration, data protection, interface access, software update and security-state capabilities