Abstract
Modern IoT and embedded device firmware are increasingly complex, consisting of numerous interacting binaries. Traditional security analysis often evaluates these components in isolation, failing to account for multi-stage attacks where a vulnerability in one service facilitates the compromise of another. This paper presents MIRAGE, a framework that employs Attack Graphs (AGs) to model inter-binary interactions and quantify systemic risk. By analyzing 703 firmware images, we demonstrate that 92% contain valid attack paths, highlighting the necessity of holistic risk assessment in embedded systems.
Introduction
The security of IoT devices is often undermined by the modular nature of their firmware. Rather than a single monolithic block, modern firmware comprises dozens or hundreds of individual executables—such as web servers, packet parsers, and management utilities—that communicate via inter-process communication (IPC).
Current automated tools typically focus on identifying vulnerabilities within individual binaries. However, this approach overlooks the "blast radius" of a vulnerability: a low-privilege service might serve as an entry point for lateral movement toward high-privilege system components. MIRAGE addresses this gap by "connecting the dots" between isolated vulnerabilities to visualize and prioritize complex, multi-stage risks.
Methodology
The MIRAGE framework is structured into three primary functional modules designed to automate the transition from raw firmware images to actionable attack graphs.
1. Binary Graph Handler
This module unpacks the firmware image and identifies all executable binaries. It utilizes components from the Karonte tool to distinguish "border binaries" (those exposed to external networks) and maps the interactions between all binaries. These interactions are identified through environment variables, sockets, files, and system calls such as execv.
2. Vulnerability Handler
To identify known weaknesses, MIRAGE employs a hybrid version-detection strategy. It uses dynamic analysis by executing binaries within a QEMU emulator to capture version strings and static analysis via Intel’s CVE Binary Tool. These versions are then cross-referenced against the NIST National Vulnerability Database (NVD) to identify applicable Common Vulnerabilities and Exposures (CVEs).
3. Attack Graph Generator
The core of MIRAGE is the Attack Graph Generator, which utilizes MulVAL, a logic-based reasoning engine. By combining the binary interaction map with identified CVEs and a set of custom "Interaction Rules" (IRs), the system generates a comprehensive model of potential exploit chains.
Risk Quantification
MIRAGE introduces a quantitative Risk Model to help security teams prioritize remediation efforts. The risk of a specific binary is defined as: $$\text{Risk} = \text{Impact (number of interactions)} \times \text{Likelihood (exploitability score)}$$ This metric ensures that a binary with a moderate vulnerability but high connectivity is prioritized over a highly vulnerable but isolated component.
Evaluation and Key Results
The researchers evaluated MIRAGE using a large-scale dataset of 703 firmware images from major vendors, including Netgear, D-Link, Cisco, and TP-Link, across ARM, AArch64, and PowerPC architectures.
The analysis revealed several critical insights:
- Widespread Vulnerability: 92% of the analyzed firmware images contained at least one valid multi-stage attack path.
- Lateral Movement Potential: On average, each image contained 1.7 external entry points and 2.5 vulnerable binaries reachable through internal lateral movement.
- High-Risk Binaries: The study identified a "Most Wanted" list of Open Source Software (OSS) binaries frequently appearing in attack paths, notably
cups,lighttpd,openssl, andphp. - Complexity of Modern Systems: Some images exhibited extreme complexity, with up to 13 entry points and 24 vulnerable binaries, underscoring the difficulty of manual security audits.
Conclusion
MIRAGE provides a scalable, automated approach to assessing the systemic risk of multi-binary firmware. By shifting the focus from individual vulnerabilities to interconnected attack paths, it enables security professionals to perform "what-if" analysis and maximize the return on investment for patching efforts. Future work will focus on extending this framework to containerized environments and improving versioning accuracy for stripped binaries.
Summary updated