Firmware security

Firmware update signatures and rejection of modified images

Verified boot: package, signature, chip arranged to illustrate firmware update signatures and rejection of modified images.

A signed update is trustworthy only when the device verifies the signature before installing or executing protected content. Understanding firmware update signatures and rejection of modified images helps establish which security property the feature needs and where that property is actually enforced.

What does this involve?

An update mechanism grants the ability to change trusted software or configuration. It needs deliberate control over who may initiate the operation, which content is accepted and what happens after failure, interruption or an attempted downgrade.

One way to manipulate a device would be to install a manipulated firmware package. In order to enable the detection of modifications, the firmware update package needs to be digitally signed. This way, the validity of the package can be verified during the installation or update process.

A valid digital signature must be available for the firmware update package. Furthermore, it must be possible to verify the validity of the digital signature.

Why it matters

Consider a realistic failure: a modified package is accepted after a verification error is ignored.

An unauthorised or unsafe update can alter device behaviour for a long period and may affect many installations. Recovery paths can be as important as the normal updater because they often operate under exceptional conditions.

Firmware evidence should identify the image, installed configuration and execution conditions. Static analysis, emulation and hardware testing answer different questions and should support a consistent conclusion.

How penetration testers check for it

Change controlled image components and inspect rejection and recovery behaviour.

  • It must be determined if a digital signature for the firmware update package is available.
  • If a digital signature is available, it must be checked whether the validity of the signature can be verified.
  • Based on ISTG-FW-CRYPT-001, the cryptographic algorithm, used for generating the digital signature, has to be assessed in order to determine whether a weak our outdated algorithm was used.
  • OWASP IoT Security Verification Standard (ISVS) — Related requirements: V2.4.2 (proper use of strong, standard cryptographic algorithms with adequate key sizes); V3.4.13 (post-quantum or hybrid update signatures for devices operating beyond 2030).
  • Assess modified, invalid and old packages under controlled conditions.
  • Review interruption, fallback and recovery behaviour.

How to fix it

Verify complete intended content with trusted keys and fail safely on invalid or unsupported signatures.

  • Authenticate the content before installation and use.
  • Protect update authority and signing keys.
  • Apply a justified version and rollback policy.
  • Maintain verified recovery that preserves the intended trust boundary.

Transport encryption and package signatures protect different properties. A safe design should explain its complete authenticity and recovery model instead of relying on one visible protection.

Recheck the changed behaviour against the original failure conditions and the legitimate user journey. Keep enough evidence to show which release and configuration were verified, and include related entry points that depend on the same security decision.

Read about our methodology or contact pentested.com to discuss your firmware and embedded systems.

See your first test report this week.

Book a 30 minute demo. We will verify one of your targets with you and run a test against it, so you can judge the results on your own systems.

Book a demo