Firmware security

Unnecessary daemons and hidden functionality in firmware

Firmware analysis: chip, layers, terminal arranged to illustrate unnecessary daemons and hidden functionality in firmware.

Unnecessary services add reachable code and administrative functions to the device. Understanding unnecessary daemons and hidden functionality in firmware 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.

Every piece of software, which is included in the firmware, broadens the attack surface since it might be used to perform attacks against the device. Even if the installed software is up-to-date, it might still be affected by unpublished vulnerabilities. It is also possible that a software program facilitates an attack without being vulnerable, e.g., by providing access to specific files or processes.

Especially in case of general-purpose operating systems, such as Windows and Linux systems, it must be ensured that any unnecessary operating system features are disabled.

Why it matters

Consider a realistic failure: a manufacturing daemon remains enabled in a customer release.

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

Enumerate installed and running services and confirm their purpose and access conditions.

  • A list of software packages, that are included in the firmware, should be assembled.
  • Based on the device documentation, its behaviour and the intended use cases, it must be determined whether any of the installed software packages are not mandatory for the device operation.
  • Review privileges and externally influenced inputs.
  • Preserve reproducible evidence and representative recovery conditions.

How to fix it

Remove redundant components and disable unused capabilities in the release configuration.

  • 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