Introduction
Modern IoT devices, such as routers and smart cameras, typically employ a "multi-binary" architecture. Rather than a single monolithic program, these devices rely on a suite of interacting binaries—including web servers, configuration managers, and backend scripts—to perform their functions. Traditional security analysis tools often examine these binaries in isolation, which leads to two significant shortcomings: high false-positive rates due to missing context (e.g., a backend script receiving pre-validated input) and false negatives where vulnerabilities emerge only through inter-binary interactions.
Karonte is a static analysis framework designed to address these challenges by tracking data flow across multiple interacting binaries, effectively modeling Inter-Process Communication (IPC) to identify complex vulnerabilities while drastically reducing manual auditing effort.
System Architecture
Karonte implements a multi-stage pipeline to bridge the gap between isolated binary analysis and full-system security auditing.
The process begins with the Unpacker, which extracts the filesystem from the firmware image. The Border Binaries Discovery module then identifies "front-facing" programs (e.g., those handling network traffic) by analyzing features like socket-reading code and network-related strings.
The core of the system is the Binary Dependency Graph (BDG) recovery. Karonte uses specialized Communication Paradigm Finders (CPFs) to identify how binaries share data via environment variables, files, sockets, or shared memory. This allows the tool to link "setter" binaries (which provide data) with "getter" binaries (which consume it).
Following graph recovery, the Multi-binary Data-flow Analysis engine performs taint analysis. It propagates constraints across binary boundaries; for instance, if a web server limits an input string to a specific length, Karonte tracks this constraint into the subsequent backend binary. This context-aware approach allows the Insecure Interactions Detection module to filter out unreachable vulnerabilities, focusing only on truly exploitable paths.
Evaluation and Results
The effectiveness of Karonte was evaluated using two distinct datasets: a collection of 53 current firmware samples from major vendors (NETGEAR, TP-Link, D-Link, Tenda) and a large-scale dataset of 899 samples from Firmadyne.
Key Findings
- Vulnerability Discovery: Karonte identified 46 previously unknown (zero-day) vulnerabilities in production firmware. These findings were validated by independent researchers and led to patches from vendors like D-Link.
- Reduction in Alert Fatigue: While single-binary analysis produced an average of 722 alerts per sample, Karonte’s multi-binary approach reduced this to just 2 alerts per sample. This represents a two-order-of-magnitude improvement in signal-to-noise ratio.
- Operational Efficiency: For a representative NETGEAR sample, manual verification of alerts dropped from an estimated 138 hours (using traditional tools) to just 14 minutes with Karonte.
- Scalability: The tool successfully processed 80% of the 899-sample dataset within 24 hours, demonstrating its viability for large-scale automated auditing.
Discussion and Limitations
While Karonte significantly advances firmware security analysis, it inherits some limitations from its underlying components. It relies on the angr symbolic execution engine; failures in angr to resolve indirect jumps or handle specific architectures (like MIPS) can lead to incomplete analysis. Additionally, like all symbolic analysis tools, Karonte must manage "path explosion" through timeouts and prioritization.
Future work aims to expand Karonte’s detection capabilities to include other vulnerability classes, such as Use-After-Free (UAF) bugs, by extending the existing data-flow engine. Despite these challenges, Karonte demonstrates that accounting for inter-binary interactions is essential for practical and effective IoT security research.
Summary updated