FYI - pretty sure this badusb exploit only works on certain hardware. Blacklist vendor id.
Well, the current exploit is only crafted for a specific device, but the bug is in the USB specification that allows us to reprogram the devices. So it's just a matter of time in which companies will target common USB devices which are vulnerable.