Explore our new Cybersecurity Terms Glossary, explained by our experts.

View the Glossary View the Glossary
PRIVIA

Cybersecurity Terms Glossary

What Is BadUSB?

BadUSB describes attacks where a USB device reprogrammes its own controller firmware to impersonate a keyboard, network adapter, or storage device and run commands the moment it is plugged in.

Illustration for the cybersecurity term BadUSB
Home / Blog / Cybersecurity Terms / What Is BadUSB?
17 November 2026

What Is BadUSB?

What Is BadUSB?

Plug a USB stick into a workstation and the operating system asks it what it is. BadUSB is the family of attacks that answer that question dishonestly. By reprogramming the microcontroller inside the device, an attacker turns what looks like ordinary storage into a keyboard that types commands, a network adapter that redirects traffic, or a composite device that does both while still presenting a working filesystem to the user.

The Research That Named It

Karsten Nohl and Jakob Lell presented BadUSB at Black Hat in August 2014. Their point was structural rather than incidental: USB controller firmware on many commodity devices could be rewritten over the bus itself, the USB specification contains no requirement for firmware signing, and the host has no way to verify that a device is what it claims. Within two months, proof-of-concept code was public, and the technique moved from conference talk to commodity tooling.

The economics changed again when purpose-built hardware appeared. A Rubber Ducky or a Digispark board costs a few pounds and needs no firmware reverse engineering at all; it is simply a keyboard with a script. The O.MG cable hides the same capability inside a charging lead with a wireless control channel, and the device is externally indistinguishable from the genuine article.

What the Device Does Once Connected

Human interface device emulation is the dominant pattern. The device enumerates as a keyboard, waits a second or two for driver installation, then types faster than any human: open a run dialogue, launch PowerShell with an encoded command, fetch a payload, exit. The whole sequence completes in under five seconds and leaves a process creation event rather than any removable media artefact.

Other variants matter too. A device that claims to be a USB Ethernet adapter can win the route for DNS or DHCP on many systems and silently intercept traffic, a technique used by tools such as the Bash Bunny. USB Killer devices discharge stored voltage back into the port and physically destroy the host, which is sabotage rather than intrusion but arrives through the same socket. And plain old infection by file still works: Stuxnet spread through USB media into air-gapped Iranian facilities, and the Raspberry Robin worm has used malicious LNK files on USB drives since 2021 as an initial access vector for ransomware crews.

Delivery in Real Campaigns

The FBI issued a flash alert in January 2022 describing FIN7 posting BadUSB devices to organisations in defence, transport, and insurance. The packages imitated the US Department of Health and Human Services or Amazon, included a decoy gift card or a COVID-19 guidance letter, and contained a LilyGO-style board that emulated a keyboard and ultimately delivered ransomware tooling. Earlier campaigns from the same group used Best Buy branding.

That is the detail defenders tend to miss: the attack does not require physical access by the attacker. It requires an envelope, a plausible brand, and one employee who plugs the device in to find out what it is.

Controls That Work

For segregated or operational technology networks, add a data diode or a scanning kiosk so that files arriving on removable media are transferred without the original device ever touching a production host. Our Hardware Penetration Test Services include drop tests with implanted cables and devices to show how far one of these reaches inside your estate.

FAQ – Frequently Asked Questions

Can Antivirus Detect a BadUSB Device?

Not at the hardware level. There is no file to scan, because the device presents itself as a legitimate keyboard or network adapter and the malicious behaviour is in its firmware. Detection depends on what happens next: the commands typed, the process that is launched, or the payload downloaded. Endpoint detection products catch the second stage, not the device itself.

Does Disabling Autorun Protect Against BadUSB?

No. Autorun protection stops files executing automatically from removable storage, which is a different attack. A BadUSB device never asks the operating system to run anything from a disk; it emulates a keyboard and types the commands itself, so the host sees ordinary user input. The controls that help are device installation restrictions and execution control.

Is a USB Charging Cable Safe?

A cable from a known supplier is fine. Malicious variants such as the O.MG cable hide a microcontroller and a wireless radio inside a standard connector, and look identical to a genuine lead. The practical advice for travelling staff is to carry their own cable and a data-blocking adapter, and never to use a lead or charging point found in a hotel, lounge, or conference room.

How Do I Block USB Without Breaking the Business?

Block mass storage by default and allow encrypted corporate devices by hardware ID, which covers the common data exfiltration case. For keyboards and other HID devices, use a policy that permits currently connected hardware and requires approval for anything new, so that staff keep working while an unexpected keyboard raises an alert for the security team to review.

Related Terms

You May Be Interested In These

What Are Code Signing Certificates?

Cybersecurity Terms

17 November 2026

What Are Code Signing Certificates?

Read More
What Is a Man-in-the-Browser Attack?

Cybersecurity Terms

17 November 2026

What Is a Man-in-the-Browser Attack?

Read More
What Is Renovate?

Cybersecurity Terms

17 November 2026

What Is Renovate?

Read More