Earlier quoted context omitted.
Somebody, somewhere had to install a driver. And, because you could never count on it, you can't design to it. Now, since most things use a Prolific chip, you only have to install the driver for one device and you pick up a ton of them. But it has to be installed by somebody, and that means all of the silliness that goes along with Windows driver installation.
FTDI chips have their driver deployed by default on most Windows, Mac and Linux installs. It's nice being able to buy a USB/serial cable and it just work, without needing to deploy any drivers at all. Check it out!
No one, not even the Secret Service, should randomly plug in a strange USB stick
211–220 of 231 posts
Re: No one, not even the Secret Service, should randomly plug in a strange USB stick
#212Earlier quoted context omitted.
Most car crashes are extremely preventable. Do some people not drive more dangerously because they believe themselves to be safe because of things like seat belts?
You are so right. I never understood the prevalent idea that traffic accidents are somehow random rolls of the dice. Seemingly the vast majority of them are not. Adjust your speed, not too fast, not too slow; stay focused on road, mirrors, and other traffic; keep your distance; don't be drunk; don't fall asleep; know and follow the rules, and you will hugely reduce your risk of harm.
It's pushed by the auto manufacturers and insurance companies to normalize driving and make you pay for more expensive safety features. If people drive irresponsibly enough to wreck their cars, but not enough to kill themselves (modulo the safety level of their car), they buy more cars and spend more money on car insurance.
Re: No one, not even the Secret Service, should randomly plug in a strange USB stick
#213Earlier quoted context omitted.
great, now I've typed my password into what turned out to be a malicious device ...
You misunderstand. Malicious USB devices often present themselves to computers as keyboards, which type malicious commands. But they don't look like keyboards, or have keys on them; they usually look like USB storage devices.
Re: No one, not even the Secret Service, should randomly plug in a strange USB stick
#214Earlier quoted context omitted.
As far as I remember that's roughly how that exploit against an ATM worked: https://xlab.tencent.com/badbarcode/ Also, perhaps folks working in data centers can and confirm/deny, but from what I know it's usually strictly forbidden to bring any USB devices into a data center area.
We use USB drives as installers and, in some cases, as boot volumes. (And of course keyboards and mice on crash carts and USB serial ports for laptops.) We’re not a cloud provider, but I’ve been in lots of DCs and seen plenty of USB devices.
Re: No one, not even the Secret Service, should randomly plug in a strange USB stick
#215The thing that no one seems to point out is that just about any normal person carrying around a windows USB stick is likely to have malware on it. Just possessing a bad USB stick doesn't seem to be particularly incriminating by itself.
True, but there's a lot more going on here than "had a USB stick". > She was caught by the Secret Service with four cellphones, a laptop, cash, an external hard drive, a signals detector to spot hidden cameras, and a thumb drive.
Re: No one, not even the Secret Service, should randomly plug in a strange USB stick
#216Earlier quoted context omitted.
It's not that hard to pick some standard class, like CDC and have a userspace app that uses it just like a serial device. You can get info on which serial device to use via sysfs on Linux. The rest is just making up a serial protocol. No need for a special driver.
Would this work for every operating system without requiring the user to do anything?
:D Obviously you have to consider needs of your users as an engineer, when chosing any technology, for their particular problem.
Re: No one, not even the Secret Service, should randomly plug in a strange USB stick
#217Plot twist: she was a legitimate member with a personal malware ridden usb stick she wasn't aware was infected. /joke
Re: No one, not even the Secret Service, should randomly plug in a strange USB stick
#218Earlier quoted context omitted.
Sure, you can fix it so devices don't appear as unauthorized keyboards... you still leave yourself open to a near infinite number of other attacks. What stops me from creating a USB device that appears as a storage medium, yet contains a transmitter which slowly exfiltrates any data written? What about a USB-powered microphone or camera posing as a flash drive? Hell, it would be of great value to just have an softwar…
> USB device that appears as a storage medium, yet contains a transmitter which slowly exfiltrates any data written I won't copy my data on unknown device. Mics and cameras trigger prompts in MacOS. The keyboard device on the other hand, can be used for 5 seconds walk by attack, running install scripts (Bad USB) attack.
That's assuming it presents itself as a mic or camera. What's to say it can't have the hardware embedded in the device but not present it to the host machine? Then any exfiltration technique can get a direct look into audio/video of the area.
Re: No one, not even the Secret Service, should randomly plug in a strange USB stick
#219Earlier quoted context omitted.
Recently I tried out some USB temperature sensors. They present as both a proprietary temperature sensor and also as a USB keyboard. In the event you don't have a driver for the sensor, you can still get your readings by toggling the caps lock which sends a "turn on caps lock lamp" signal to the "keyboard", which responds by "typing" the temperature data. I'd rather this device presented itself as a drive containing…
funny thing: my UPS also presents as a keyboard. and made my computer kept waking up from sleep at random intervals. Very hard to troubleshoot.
Re: No one, not even the Secret Service, should randomly plug in a strange USB stick
#220Earlier quoted context omitted.
It's not that hard to pick some standard class, like CDC and have a userspace app that uses it just like a serial device. You can get info on which serial device to use via sysfs on Linux. The rest is just making up a serial protocol. No need for a special driver.
Would this work for every operating system without requiring the user to do anything?
The free (money-wise) approach we ended up doing was to use WinUSB and marking the device as “vendor specific”, and using libusb to talk directly to it. That was a bit awkward, but covered Windows, Linux, and OSX for us.
This was 5 years ago though. Windows 10 might directly support generic CDC devices, but Win 8.1 didn’t.
Edit: sibling mentions HID. HID does work like this, but we needed more bandwidth than HID provided. CDC was perfect for what we were doing but it didn’t auto install. Mass storage auto-installs but didn’t fit what we were doing.