“The USBGuard software framework helps to protect your computer against rogue USB devices (a.k.a. [BadUSB]) by implementing basic whitelisting and blacklisting capabilities based on device attributes.” From their Github.
Maybe could help someone with a decent threat model?