3 ms·
How would you actually fix it? Ban HID devices from being plugged into a USB hub at all? Because outside of that I haven't heard of any proposals, and that is f
by Someone1234 12y ago
How would you actually fix it? Ban HID devices from being plugged into a USB hub at all? Because outside of that I haven't heard of any proposals, and that is frankly unworkable given the how many devices are designed with a single USB port under the assumption that you can HUB-in more.
- 13 12y agoMany devices have internal hubs as well. My notebook chains one external USB interface through two nested internal hubs (the deepest of which also controls the mouse and keyboard) before it even gets to the physical port, the other USB port goes through yet another hub. There's three total hubs in the system before even plugging in anything external. A rule like this would kill all of my existing HID devices except for my webcam, which is the only device on directly connected to the USB host.
- pritambaral 12y agoAn OS level policy is what I think would be best. Notify the user, "Did you just insert a USB keyboard?", and wait for their approval to enable the HID. This can be worked upon, e.g., automatically allowing the first keyboard and pointer devices, or allowing all devices if the user feels lucky etc. One large problem I see, that can be be rectified by perhaps only the USB standard-setters, is whitelisting. Currently, the best handle are the idVendor and idProduct properties, but a BadUSB can easily spoof those too. Cryptographic signatures for identification is what I'm thinking would be best.