Protocol Model Learning for Automated Firmware Analysis

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The complexity of IoT device firmware protocols, lacking formal specifications, necessitates significant manual effort for analysis, making it difficult to ensure safety and security, especially due to the lack of automated tools for checking protocol implementations.

Innovation Solution

A constraint-based protocol model is created through symbolic execution to analyze firmware, allowing for the extraction of protocol relevant constraints from known firmware and applying them to unknown firmware for automated analysis.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If manual analysis of firmware protocols is performed, then analysis accuracy can be maintained, but analysis time and effort increase significantly

Engineering Contradiction:
Improveanalysis accuracyVSAvoidanalysis time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent introduces an intermediate representation (IR) that serves as a mediator between the complex firmware code and the protocol specification. This IR captures protocol-relevant information in a structured format, enabling automated analysis tools to work with firmware without requiring manual interpretation, thus maintaining accuracy while reducing time investment

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent performs preliminary actions by automatically generating the intermediate representation and protocol compliance checks before the actual analysis task. This pre-processing step transforms unstructured firmware into a format ready for automated verification, eliminating the need for time-consuming manual analysis while preserving accuracy

Inventive Principle:
Principle #10Preliminary action

2Extent of automation

If formal protocol specifications are created for all IoT protocols, then automated analysis becomes possible, but the complexity and effort of creating specifications becomes prohibitive

Engineering Contradiction:
Improveautomated analysis capabilityVSAvoidspecification complexity
Core Design Contradiction:
Extent of automationVSDevice complexity

Solution Approach 1:

The patent segments the protocol specification into protocol-agnostic intermediate representation and protocol-specific validation rules. This separation allows the complex specification task to be divided into manageable components: a universal IR framework that handles common protocol elements and simpler protocol-specific rules that can be automatically generated or adapted

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent creates a universal intermediate representation that can represent multiple different communication protocols (USB, Bluetooth, etc.) in a unified format. This multi-functional IR system eliminates the need to create separate formal specifications for each protocol, reducing overall specification complexity while enabling automated analysis across diverse protocols

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Reliability

If comprehensive protocol checking is performed on firmware, then security and correctness are improved, but analysis speed decreases

Engineering Contradiction:
Improvefirmware correctnessVSAvoidanalysis speed
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent extracts only the protocol-relevant portions of firmware into the intermediate representation, separating critical protocol-compliance code from non-essential functionality. This extraction enables focused checking of only the necessary components, maintaining comprehensive protocol verification while improving analysis speed by ignoring irrelevant code sections

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS11640464B2Protocol model learning and guided firmware analysis
Publication Date: 2023.05.02 UNIV OF FLORIDA RESEARCH FOUNDATION INC
  • US11640464B2 patent drawing
  • US11640464B2 patent drawing
  • US11640464B2 patent drawing

AI summary

The present disclosure describes a firmware analysis system and method that can generate a collection of protocol constraints from known firmware and apply the collection of protocol constraints towards an unknown firm to recognize protocol relevant fields and detect functionality within the unknown firmware.