Outdated firmware components and embedded software inventories
An embedded component inventory connects shipped software to relevant vulnerability and maintenance decisions. Understanding outdated firmware components and embedded software inventories 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 is potentially vulnerable to attacks. For example, coding errors could lead to undefined program behaviour, which then can be exploited by an attacker to gain access to data, processed by the application, or to perform actions in the context of the runtime environment. Furthermore, vulnerabilities in the used frameworks, libraries and other technologies might also affect the security level of a given piece of software.
Usually, developers release an update once a vulnerability was detected in their software. These updates should be installed as soon as possible in order to reduce the probability of successful attacks. Otherwise, attackers could use known vulnerabilities to perform attacks against the device.
Why it matters
Consider a realistic failure: a network-facing library remains vulnerable despite the product's overall version increasing.
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
Identify actual component builds and assess reachable affected functionality.
- The version identifiers of installed software packages as well as libraries and frameworks in use must be determined.
- Based on the detected version identifiers, it must be determined if the software version in use is up-to-date, e.g., by consulting the website of the software developer or public repositories.
- By using vulnerability databases, such as the National Vulnerability Database of the NIST, it has to be checked whether any vulnerabilities are known for the detected software versions.
- Review privileges and externally influenced inputs.
- Preserve reproducible evidence and representative recovery conditions.
How to fix it
Update affected components and maintain inventories for production and recovery images.
- 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.
Related issues
- Extracting embedded filesystems from firmware images
- Identifying firmware architectures, operating systems and components
- Unnecessary daemons and hidden functionality in firmware
Read about our methodology or contact pentested.com to discuss your firmware and embedded systems.