There's usbguard:
> USB device authorization policy framework
>
> 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.
There's also a GUI available with usbguard-applet-qt:
> This package contains the qt-applet for controlling usbguard.
All this won't protect the computer from an USB Kill key, unless an electrical safety device is used between.