by breakwaterlabs · 1w ago · 0 comments
USB ID is conceptually similar to network “sticky mac”, in that only approved (unauthenticated) device identifiers are allowed on the bus: others see their traffic bit-binned.
The problem is of course that the identifier is sent in plain text, and is not device-bound (an attacker can spoof it).
So the very simplest attack on such systems is to put an interposer between the trusted device and the bus, capture the “trusted” ID, and use it to impersonate.
This is relevant to OS security because rubber ducky attacks can send key streams that do all sorts of fun things.
The network analogue here— sticky mac—- can actually be made tenable; any errors in interposing will result in a loud alarm in the NOC (port gets ERR_SHUTDOWN), and you can use 802.1x. USB device ID has no equivalent: it’s just an ID, and should not be relied upon for (false) security.
So in an spherical cow like theoretical ideal world computers don't have USB controllers. But in the real world some people want to use USB devices in some of their workflows.
If you can lock the host USB controller into an empty disposable virtual machine, you are approaching the ideal. But it gives you the ability to lower your security as you wish and use the plugged in devices. Trusting USB IDs, port numbers etc. are only an optional convenience so real world people don't have to use even more insecure systems just because they want to use a mouse or a flash drive.
But it is even better: what if my USB mouse switches to be a keyboard 2 minutes after approval to be used in the host system? In Qubes OS nothing, because it is not the actual USB mouse that is passed back to the host, but only the mouse movements/click events through a very minimal, easy to audit "mouse event forwarder" system. The same is true for some other categories of USB devices, so linux kernel vulnerabilities in your "host OS" or in task specific virtual machines are not exploitable with USB devices. Only if you specifically choose to tunnel the whole USB device into a specific VM, USB-over-ethernet style, but then only that VM can be attacked.