You may have heard about BadUSB which is an attack on ordinary USB thumbdrives. The attack exploits the fact that the firmware of ordinary USB devices may not be protected and can be reprogrammed (or “flashed") without any protection. This allows the attacker to infect a USB device by flashing malicious firmware.