Install usbauth by entering the following commands in the terminal:
sudo apt update sudo apt install usbauth
Description:
USB firewall against BadUSB attacks
It is a firewall against BadUSB attacks. A config file describes in which way USB interfaces would be accepted or denied. To the kernel an interface authorization was developed with this firewall. The firewall sets the authorization mask according to the rules.
Homepage: https://github.com/kochstefan/usbauth-all/tree/master/usbauth
Version: 1.0~git20180214-1
Section: universe/utils