# US 2018/0324179 A1 · Method for preventing badusb attack

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

- Number: US 2018/0324179 A1
- Document ID: US20180324179A1
- Status: Published application
- Kind: A1
- Application number: 15/585,149
- Filed: 2017-05-02
- Published: 2018-11-08
- Earliest claimed: 2017-05-02
- Inventors: Hao-Hsun Hou
- Web page: https://patentgrep.com/patent/US20180324179A1

## CPC

- G06F 21/85: interconnection devices, e.g. bus-connected or in-line devices
- G06F 13/105: {where the program performs an input/output emulation function}
- G06F 21/51: at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
- H04L 63/0227: {Filtering policies (mail message filtering H04L51/212)}
- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- G06F 13/10: Program control for peripheral devices (G06F13/14 - G06F13/42 take precedence)
- G06F 21/73: by creating or determining hardware identification, e.g. serial numbers
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method for preventing BadUSB attack from an external USB device to a host computer is disclosed. The method includes the steps of: a) obtaining a device description from a USB (universal serial bus) device; b) judging if the device description is reasonable; c) loading a driver for the USB device when yes in step b); d) filtering a command from the USB device after step c); and e) disabling the USB device when no in step b) or the command filtered in step d) is malicious.

## Claims

### Claim 1

A method for preventing BadUSB attack, comprising:
a) obtaining a device description from a USB (universal serial bus) device;
b) judging if the device description is reasonable;
c) loading a driver for the USB device when yes in step b);
d) filtering a command from the USB device after step c); and
e) disabling the USB device when no in step b) or the command filtered in step d) is malicious.

### Claim 2 (depends on 1)

The method of claim 1, wherein the step b) is performed by comparing the device description with a black list database.

### Claim 3 (depends on 1)

The method of claim 1, wherein the step d is performed by a USB layer firewall.

### Claim 4 (depends on 3)

The method of claim 3, wherein the USB layer firewall is implemented by using a Filter driver.

### Claim 5 (depends on 1)

The method of claim 1, wherein the step d) is performed by comparing the command with a malicious command database.
