The Human Interface Device Firewall (HID-F) will make the BadUSB attack far more challenging to succeed while avoiding privacy intrusion by using machine learning models paired with homomorphic encryption. Exploring the flaws of current BadUSB defenses will develop a series of design principles...