This Linux driver looks to catch malicious USB devices before they do any damage.

https://itsfoss.com/news/linux-driver-proposal-malicious-hid-devices/

#linux

A New Linux Kernel Driver Wants to Catch Malicious USB Devices in the Act

If adopted, this kernel module would detect when a plugged-in USB device is acting suspiciously.

It's FOSS