BadUSB
termKept in this browser · My desk
An attack, named by Security Research Labs in 2014, in which the firmware of an ordinary USB peripheral's controller is reprogrammed so that the device behaves as something else, such as a keyboard or a network card.
SRLabs published the finding on 31 July 2014 and Karsten Nohl and Jakob Lell presented it at Black Hat USA on 7 August 2014; a later survey judged that up to half of USB controller chips were vulnerable and found firmware signing in none. Adam Caudill and Brandon Wilson released code for a Phison controller at DerbyCon that autumn. The word is now also used for purpose-built keystroke injectors.
Mechanism. A thumb drive contains a microcontroller running firmware the user never sees; once reprogrammed, the device can register again as a different device, emulate a keyboard to infect the host, spoof a network card to redirect DNS, or show a hidden image to the BIOS at boot. Why defences struggle. SRLabs found allow lists weak because serial numbers are not unique, firmware scanning unreliable because malicious firmware can spoof the original, signing hard on small chips, and only hardware-disabled updates simple and effective; reinstalling the operating system does not remove an infection in a peripheral. Later work. GoodUSB (2015) enforced the user's expectation of what a device is; USBGuard on Linux blocks unexpected interface combinations; USB Type-C Authentication (2019) was found in a 2018 formal analysis not to prevent BadUSB because firmware can sign false descriptors. Usage note. Hak5, the FBI and USBGuard use the term for purpose-built devices too; in SRLabs' sense it means a reprogrammed ordinary peripheral.
Also known as: Bad USB, malicious USB firmware
Sources
- SRLabs, USB peripherals can turn against their users, 31 July 2014 (read 2026-11-16): controller chips in thumb drives have no protection from reprogramming; keyboard emulation, network-card spoofing to change DNS, pre-boot virus; no effective defences known; Android proof of concept only
- InfoconDB, Black Hat USA 2014, Nohl and Lell, BadUSB - On Accessories that Turn Evil, 7 August 2014 (read 2026-11-16): malware operating from controller chips; full system compromise and a self-replicating USB virus
- SRLabs, BadUSB PacSec 2014 slides (read 2026-11-16): 52 chip families from the top 8 vendors and 33 devices; up to half of USB chips BadUSB-vulnerable; one chip family with fuse bits, none with firmware signing; no vendor patches
- Adam Caudill, Making BadUSB Work For You: DerbyCon, 2 October 2014 (read 2026-11-16): code for the Phison 2251-03 released with Brandon Wilson, including HID custom firmware and a hidden partition patch, to push for signed firmware updates
- Tian, Bates and Butler, GoodUSB, ACSAC 2015 (read 2026-11-16): BadUSB's root cause is the lack of access control in USB enumeration; permissions enforced from the user's expectation of the device