News for hackers. Stuff that matters.
Re:Windows Hello bypassed using infrared image by gregmac on Monday July 19, 2021 @11:37PM (#27889814)
My point was if the class, VID or PID changes then treat it like a "new" device. If it presents subdevices or is suddenly a hub, those are new devices.

You'd have to also detect PID/VID brute force attacks. Short of a cryptographic key (as gruez talked about), a device being able to guess a valid class+PID+VID combo would be bad, so this would have to be treated similar to a password brute-force attack: too many "new" devices in a short time (especially unplugged without clicking the authorization UI) would cause the system to stop accepting new devices for a time.

Ideally you can also detect something else -- eg: serial number -- but I think that starts getting into manufacturer/device-specific implementations. (If only there was a company with billions of dollars and huge facilities and relationships with USB vendors and the capability to test tons of devices..)

Re:Windows Hello bypassed using infrared image by tyingq on Monday July 19, 2021 @11:47PM (#27889855)
>My point was if the class, VID or PID changes then treat it like a "new" device

Yes, I understood that. What I'm saying that USB wouldn't give you any context for that. A device changing would be indistinguishable from one being removed and a new one going in. Or future "rubby duckies" could emulate a hub, and add multiple devices, all operating simultaneuously.

Re:Windows Hello bypassed using infrared image by gregmac on Tuesday July 20, 2021 @12:33AM (#27890111)
I don't see why you need context?

> A device changing would be indistinguishable from one being removed and a new one going in. Or future "rubby duckies" could emulate a hub, and add multiple devices, all operating simultaneuously.

In all of these cases, the system should show a prompt asking the user for authorization. Hopefully in a way that makes it clear if they didn't just physically attach a new keyboard, they should be extremely suspicious about what's currently connected to their USB ports.

Re:Windows Hello bypassed using infrared image by tyingq on Tuesday July 20, 2021 @12:46AM (#27890177)
Yes, you could prompt for every USB device detection. You would have to do that on boot too, though, which would probably give users security notice fatigue. There's basically no persistence, serial numbers, etc.
Re:Windows Hello bypassed using infrared image by gregmac on Wednesday July 21, 2021 @08:50PM (#27914079)
Only initially. I guess maybe I wasn't clear in my original post, but my idea was always that the system would remember any authorized device (presumably by VID+PID+capabilities, but maybe also serial or other identifying info if the device+OS supports it). You'd only get the UI prompt the very first time you plug in a new keyboard -- after that, you can plug it in at will and it continues to work. This is also why I mentioned about VID/PID brute force attacks.

It would be rare to see multiple devices at once -- eg: the very first boot, or plugging in a new complex device like a dock -- but the experience of this hinges on having the right UI. Having a series of pop-ups like "Do you accept Generic USB Hub 06 (connected to Root USB Hub 2)?" is going to cause them all to be ignored, but, for example, showing a tree of devices and making it easy to accept all at once would probably be ok. And hubs in particular may be a special case, where you don't bother to prompt, but I don't know if that opens an attack vector.

Re:Windows Hello bypassed using infrared image by mavhc on Tuesday July 20, 2021 @06:05AM (#27891838)
What input device do you use to accept the prompt?
Re:Windows Hello bypassed using infrared image by colejohnson66 on Tuesday July 20, 2021 @09:24AM (#27893365)
A PS/2 mouse would work, but who has those anymore?
Re:Windows Hello bypassed using infrared image by mavhc on Tuesday July 20, 2021 @05:01PM (#27899281)
Plus you'd have to teach people to turn off their computers before plugging them in, which would be hard with Windows these days, when Shutdown is actually Hibernate