Live data from Hacker News

Thought it was a flash drive [video]

reddit.com

21–30 of 42 posts

Re: Thought it was a flash drive [video]

#21
post #18
post #16

Earlier quoted context omitted.

I used to do the other way around, and disable all my ports until I knew I needed to use one. Of course, there's always the possibility that I unlock my port and plug in some infected USB of my own volition and it's much more likely than some random person plugging something in. But, anyway, this thing presents as a keyboard, not a storage device.

I thought about disabling ports, and on some machines I do, but for the most part there would be mutiny if people couldn't charge their phones or use USB sticks for legitimate purposes. I try instead to make sure everyone is skeptical and weary of everything technology related+the corporate network. I'm in the process of creating a USB drop-test script for employee training purposes. Awareness and preparedness traini…

For phone and device charging, go purchase a bunch of reputable 2 - 4 port chargers and cables and set a policy that phones at other devices should never be plugged into computers. If you want to really dissuade people, add to the policy that the full contents of any phone plugged into a company computer may be silently downloaded and examined by IT.

If the corporate network you're talking about is Windows Active Directory based then I believe that there are Group Policy settings to only allow connection of encrypted external drives. I'm not sure when this was introduced, and it might only be on Windows 10, but hopefully at this point most businesses are either already there or moving in that direction.

Re: Thought it was a flash drive [video]

#22
post #7

As has been pointed out, you couldn't block this kind of thing without blocking USB keyboards altogether. I wonder what it would look like to have a background program that would detect and intercept any newly connected device by default, give it a fake (VM?) environment, and log everything it tried to do to the screen while prompting to ask if you want to let it into the "real" system. Obviously this is what securit…

A simple system like android fine grained permissions? is asking to send keyboard input. Allow/Deny?

This strikes me as the right solution, with two caveats:

• It should allow the keyboard through—or have a timeout that defaults to "yes"—if a mouse or keyboard is not already connected.

• I should have the option to disable it.

Re: Thought it was a flash drive [video]

#23

Earlier quoted context omitted.

A simple system like android fine grained permissions? is asking to send keyboard input. Allow/Deny?

This strikes me as the right solution, with two caveats: • It should allow the keyboard through—or have a timeout that defaults to "yes"—if a mouse or keyboard is not already connected. • I should have the option to disable it.

desktops and servers could have special "root ports" physically colored red and hidden at the back of the case that don't require permissions.

Re: Thought it was a flash drive [video]

#24
At Defcon, a buddy of mine screwed around with a bluetooth HID device, that when connected to, would automatically attempt to open a webpage and send them to an innocuous site (Which obviously could have been a less innocuous site).

Couldn't believe we got multiple people to connect to it under the guise the device would do a cool thing.

Re: Thought it was a flash drive [video]

#25

At Defcon, a buddy of mine screwed around with a bluetooth HID device, that when connected to, would automatically attempt to open a webpage and send them to an innocuous site (Which obviously could have been a less innocuous site). Couldn't believe we got multiple people to connect to it under the guise the device would do a cool thing.

Well it is a cool thing. It’s different and that makes it interesting.

Sometimes I feel like all this worrying about computer security makes it harder for people to share new things.

Re: Thought it was a flash drive [video]

#26
post #6
post #2

Jeez, I thought these auto opening usb things were isolated to Windows and only old versions. What’s the story with this on macOS?

On all new and old versions of all major operative systems out there you'll be able to plug in any standard USB keyboard, and it'll start working automatically. That's exactly what's happening there, but the "keyboard" is pre-programmed to enter keys presses automatically in a way that makes a website pop up.

Of course. That makes total sense.

Re: Thought it was a flash drive [video]

#27
post #9

Earlier quoted context omitted.

It's a USB keyboard that opens types some commands to open a hard-coded website. You can't really prevent that.

You could require confirmation before accepting a new input device. This could be done with out of band signaling (such as a button on the computer itself that you push to say “yes, I want to use this keyboard”) or you could do it by requiring the user to type in a secret (such as their login password, or even just a PIN displayed on the screen) to enable it for other uses. I don’t know that people would accept this…

> or you could do it by requiring the user to type in a secret

how would you accomplish this given that the normal situation is that you're plugging in a keyboard?

Re: Thought it was a flash drive [video]

#28
post #27
post #9

Earlier quoted context omitted.

You could require confirmation before accepting a new input device. This could be done with out of band signaling (such as a button on the computer itself that you push to say “yes, I want to use this keyboard”) or you could do it by requiring the user to type in a secret (such as their login password, or even just a PIN displayed on the screen) to enable it for other uses. I don’t know that people would accept this…

> or you could do it by requiring the user to type in a secret how would you accomplish this given that the normal situation is that you're plugging in a keyboard?

I think the implication is you can type on the plugged in keyboard, but the OS won't pass the input through unless the first thing typed is a secret.

This is somewhat similar to how bluetooth keyboards are enabled on macOS (or were the last time I connected one).

Re: Thought it was a flash drive [video]

#29
post #11
post #7

As has been pointed out, you couldn't block this kind of thing without blocking USB keyboards altogether. I wonder what it would look like to have a background program that would detect and intercept any newly connected device by default, give it a fake (VM?) environment, and log everything it tried to do to the screen while prompting to ask if you want to let it into the "real" system. Obviously this is what securit…

I once worked at a place where the keyboard and mouse were chained to the tower and glued in place, and the spare USB ports were glued over.

What happens when you spill coffee on your keyboard?

Re: Thought it was a flash drive [video]

#30
post #27

Earlier quoted context omitted.

> or you could do it by requiring the user to type in a secret how would you accomplish this given that the normal situation is that you're plugging in a keyboard?

I think the implication is you can type on the plugged in keyboard, but the OS won't pass the input through unless the first thing typed is a secret. This is somewhat similar to how bluetooth keyboards are enabled on macOS (or were the last time I connected one).

Precisely. You get some authorization box and your input only goes to that box. If you authorize, it then acts like a normal keyboard.
Post reply on HN