Defending Against Malicious USB Firmware with GoodUSB

Dave Tian, Adam Bates, Kevin Butler

2015 · 74 citations · 22 references

Concepts

TL;DR

USB attacks are evolving from host‑side exploits to firmware‑based threats, such as BadUSB, where malicious firmware enables hidden device functions like covert keyboard input. The authors aim to develop GoodUSB, a mediation architecture that protects the Linux USB stack from firmware‑based attacks. GoodUSB enforces permissions derived from expected device functionality, incorporates a security image for ease of use, and deploys a honeypot to detect suspicious activity. Evaluation shows GoodUSB adds only 5.2 % overhead to the Linux USB subsystem and represents a significant advance toward secure USB deployment in enterprises.

Abstract

USB attacks are becoming more sophisticated. Rather than using USB devices solely as a delivery mechanism for host-side exploits, attackers are targeting the USB stack itself, embedding malicious code in device firmware to covertly request additional USB interfaces, providing unacknowledged and malicious functionality that lies outside the apparent purpose of the device. This allows for attacks such as BadUSB, where a USB storage device with malicious firmware is capable of covertly acting as a keyboard as well, allowing it to inject malicious scripts into the host machine. We observe that the root cause of such attacks is that the USB Stack exposes a set of unrestricted device privileges and note that the most reliable information about a device's capabilities comes from the end user's expectation of the device's functionality. We design and implement GoodUSB, a mediation architecture for the Linux USB Stack. We defend against BadUSB attacks by enforcing permissions based on user expectations of device functionality. GoodUSB includes a security image component to simplify use, and a honeypot mechanism for observing suspicious USB activities. GoodUSB introduces only 5.2% performance overhead compared to the unmodified Linux USB subsystem. It is an important step forward in defending against USB attacks and towards allowing the safe deployment of USB devices in the enterprise.

References

22