Firmware security

Secrets exposed through firmware storage and packaging

Firmware analysis: chip, layers, terminal arranged to illustrate secrets exposed through firmware storage and packaging.

Image packaging and storage locations may expose secrets before the device boots. Understanding secrets exposed through firmware storage and packaging helps establish which security property the feature needs and where that property is actually enforced.

What does this involve?

Firmware security depends on the relationship between the distributed image, installed configuration and code that actually executes. Offline analysis, emulation and real-device testing provide different kinds of evidence and should be connected before a strong impact claim is made.

Generally, there are multiple kinds of storage spaces within a file system, some of which are publicly available and some that can only be accessed with a certain level of privileges. If sensitive data or secrets are stored in publicly accessible storage spaces, users who should not have access to this data but who have access to the file system could read or modify it. In case of a successful attack, it is very likely that secrets, stored in public storage, are disclosed.

Access to secrets should only be granted to the accounts or processes with proper privileges. Thus, secrets should be stored in protected storage areas or designated key stores that are only available to certain entities.

Why it matters

Consider a realistic failure: a public firmware archive contains a private key used for an authenticated service.

A firmware weakness may expose device credentials, permit privileged actions or affect availability. The practical consequence depends on reachable services, execution privileges and the trust placed in the device by other components.

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

Trace confidential material through distribution, installation and persistent storage.

  • Files and databases within public storage spaces must be checked for the presence of secrets, such as passwords, symmetric or private keys and tokens.
  • By searching public and restricted storage spaces, it must be determined whether the firmware includes secrets in plaintext form.
  • Review privileges and externally influenced inputs.
  • Preserve reproducible evidence and representative recovery conditions.

How to fix it

Remove reusable privileged secrets and keep required device credentials appropriately protected.

  • Remove unnecessary code, accounts and capabilities.
  • Use safe input handling and narrow privileged interfaces.
  • Protect secrets and authenticate relevant executable content.
  • Verify fixes in the actual production and recovery artefacts.

A suspicious string or an emulation result is not enough to establish a working compromise. Validate the path and explain any environmental assumptions that affect the conclusion.

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