# US 2022/0019926 A1 · Apparatus and method for fuzzing firmware

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0019926 A1
- Document ID: US20220019926A1
- Status: Published application
- Kind: A1
- Application number: 17/308,316
- Filed: 2021-05-05
- Published: 2022-01-20
- Earliest claimed: 2020-07-20
- Assignees: Industry Academy Cooperation Foundation of Sejong University
- Applicants: Industry Academy Cooperation Foundation of Sejong University
- Inventors: Joo Beom YUN; Hyun Wook KIM; Ju Hwan KIM
- Web page: https://patentgrep.com/patent/US20220019926A1

## CPC

- G06N 7/023: {Learning or tuning the parameters of a fuzzy system}
- G06F 9/4411: {Configuring for operating with peripheral devices; Loading of device drivers}
- G06F 9/455: Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F 9/45504: {Abstract machines for program code execution, e.g. Java virtual machine [JVM], interpreters or emulators}
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06N 7/026: {Development tools for entering the parameters of a fuzzy system}
- G06N 7/06: Simulation on general purpose computers
- G06F 8/654: using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An apparatus for fuzzing firmware according to an embodiment includes an emulator that provides a user mode emulation environment for firmware installed in any Internet of Things (IoT) device, a generator that generates one or more test cases in which at least some of a plurality of pre-set mutation operators are applied to at least one of a plurality of seed files, and an executor that executes mutation-based fuzzing on the firmware in the user mode emulation environment based on the one or more test cases.

## Claims

### Claim 1

An apparatus for fuzzing firmware, the apparatus comprising:
an emulator that provides a user mode emulation environment for firmware installed in any Internet of Things (IoT) device;
a generator that generates one or more test cases in which at least some of a plurality of pre-set mutation operators are applied to at least one of a plurality of seed files; and
an executor that executes mutation-based fuzzing on the firmware in the user mode emulation environment based on the one or more test cases.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the emulator comprises:
a system mode emulator that emulates an entire system related to the firmware in a system mode emulation environment; and
a user mode emulator that emulates a part of process of the firmware in the user mode emulation environment based on a memory file corresponding to the part of the process of the firmware.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the generator applies at least some of the plurality of mutation operators to at least one of the plurality of seed files based on a particle swarm optimization (PSO) algorithm.

### Claim 4 (depends on 1)

The apparatus of claim 1, further comprising:
a controller that controls the mutation-based fuzzing based on at least one of whether or not a system call occurs, whether or not a new path is detected, and whether or not a crash occurs.

### Claim 5 (depends on 4)

The apparatus of claim 4, wherein the emulator further provides a system mode emulation environment for the firmware; and
the controller temporarily pauses the mutation-based fuzzing and resume the mutation-based fuzzing after processing the system call in the system mode emulation environment when the system call occurs during execution of the mutation-based fuzzing.

### Claim 6 (depends on 4)

The apparatus of claim 4, wherein the controller stores a test case used to execute the mutation-based fuzzing and report information related to the mutation-based fuzzing when the new path is detected or the crash occurs due to the mutation-based fuzzing.

### Claim 7

A method for fuzzing firmware, the method comprising:
providing a user mode emulation environment for firmware installed in any Internet of Things (IoT) device;
generating one or more test cases in which at least some of a plurality of pre-set mutation operators are applied to at least one of a plurality of seed files; and
executing mutation-based fuzzing on the firmware in the user mode emulation environment based on the one or more test cases.

### Claim 8 (depends on 7)

The method of claim 7, wherein the providing comprises:
emulating an entire system related to the firmware in a system mode emulation environment; and
emulating a part of process of the firmware in the user mode emulation environment based on a memory file corresponding to the part of the process of the firmware.

### Claim 9 (depends on 7)

The method of claim 7, wherein, in the generating, at least some of the plurality of mutation operators is applied to at least one of the plurality of seed files based on a particle swarm optimization (PSO) algorithm.

### Claim 10 (depends on 7)

The method of claim 7, further comprising:
controlling the mutation-based fuzzing based on at least one of whether or not a system call occurs, whether or not a new path is detected, and whether or not a crash occurs.

### Claim 11 (depends on 10)

The method of claim 10, wherein, in the providing, a system mode emulation environment is provided for the firmware; and
the controlling further comprises:
temporarily pausing the mutation-based fuzzing when the system call occurs during execution of the mutation-based fuzzing;
processing the system call in the system mode emulation environment; and
resuming the mutation-based fuzzing after the system call is processed.

### Claim 12 (depends on 10)

The method of claim 10, wherein, in the controlling, a test case used to execute the mutation-based fuzzing and report information related to the mutation-based fuzzing are stored when the new path is detected or the crash occurs due to the mutation-based fuzzing.
