Researchers Turn USB Cable Into Attack Tool

HardOCP News

[H] News
Joined
Dec 31, 1969
Messages
0
For some reason, I was expecting a whip or nunchucks make from USB cables instead of this story. Damn, now I'm bummed. :(

Angelos Stavrou, an assistant professor of computer science at George Mason University, and student Zhaohui Wang wrote software that changes the functionality of the USB driver so that they could launch a surreptitious attack while someone is charging a smartphone or syncing data between a smartphone and a computer.
 
meh, so the "hack" makes an android phone masquerade as an HMI USB device.
It's just like plugging in a USB keboard and mouse onto the computer... no huge new security breach here. It's not bypassing any security features in the OS that would protect against someone with access to its keyboard and mouse.

It's like saying that since Smartphones can show up as Mass Storage Devices when plugged into a computer, it's *revolutionary* that one can exploit the autorun feature in OSes to run arbitrary code on a computer by just plugging in a smartphone.

meh
 
This article is a huge fail... it should have said "turns a phone into a keyboard." Ooh... scary.
 
revolutionary is definitely not the word to use xD but its still a neat trick underlining inherent OS weakness lol
 
I thought this was going to be a modified USB cable that was actually a mini-hub that had a board on it that would launch a mouse/keyboard HID attack.
 
It's still potentially a bit scary.

I've been disabling autorun system wide ( which includes USB devices) using policy for many years (since Win98 days) because that was an easy hack to get into a locked pc by simply inserting a CD. I go to big lan parties so it was quite possible. (Also searched for ways to over-ride the cd eject button but never found a way to do that).

As long as you keep your pc locked at home, even when there is no apparent threat, this particular hack is less likely to succeed.
 
It's not just a trivial thing... Instead of turning the phone into a keyboard, it's an entirely NEW vector for attacks.

Write Custom ROM for Android that has this attack in it - You could then get your (insert nefarious code here) to be installed on numerous machines and there is NOTHING that will prevent it. AV won't see it because it appears to be coming from the keyboard.

Goodboy I'm not even sure disabling autorun would disable it, because it's attacking thru the USB driver interface. Basically it's saying to the computer "I'm and Human Interface Device, don't mind me" and the computer says "Ok, I know how to talk to Human Interface Devices, so here's your connection". I don't think autorun even factors into it. Autorun only comes up when you attach a storage device and the OS says, "Ok, I know how to talk to storage devices, but what do you want me to run from this device?". Point is you don't get an autorun message when connecting an hid. This is all happening during the driver install phase. To test this, Plug a mouse into your system with autorun turned off. Is there anyway to stop it from installing the device? I tried it here, and there was a message about the mouse being installed, but no way to STOP it. Once it's installed, your open to attack because the computer thinks it's just getting inputs from the computer.

Think about it, and this is SCARY. The HID connections don't get VALIDATED at all.
 
Grrr No edit.

Should be "Once it's installed your open to attack because the computer thinks it's just getting inputs from a keyboard"
 
It's not just a trivial thing... Instead of turning the phone into a keyboard, it's an entirely NEW vector for attacks.

It's not new. I've had a driver that turned my Windows Mobile phone into an HID keyboard for over a year. What's new is that it's for an Android phone.

Scary, maybe, New?, not at all. Pretty much if you want a secure computer and you allow strangers to connect ANY devices to your computer's ports, you've failed at securing it.

They've had automated KB/Mouse sniffing/remote hacking interfaces for as long as keyboards have been around... there are devices that use the PS/2 analog ports and most probably the old AT keyboard ports as well. It's definitely NOT a new attack vector for anybody who knew anything about security.
 
It's not new. I've had a driver that turned my Windows Mobile phone into an HID keyboard for over a year. What's new is that it's for an Android phone.

Scary, maybe, New?, not at all. Pretty much if you want a secure computer and you allow strangers to connect ANY devices to your computer's ports, you've failed at securing it.

They've had automated KB/Mouse sniffing/remote hacking interfaces for as long as keyboards have been around... there are devices that use the PS/2 analog ports and most probably the old AT keyboard ports as well. It's definitely NOT a new attack vector for anybody who knew anything about security.

It's new in that someone realized, hey, we have this unsecured access point to the system that really doesn't get validated. Did you think to try to use your mobile phone as a keyboard to run stuff on your desktop?

Don't downplay this. Yes I know they've had keyboard sniffers, etc for ages. It's also much more difficult to get someone to plug an infected keyboard into their machine... "Hey buddy, here's a keyboard, give it a try".... Yea, RIGHT.

This attack doesn't require strangers to connect a device to your ports, it expects you to do it...... Download an app for your smart phone that has this attack vector in it. Attach your phone to your pc to charge it, move files around to it, etc, and bam your nailed. How many people are running virus scanners on their smart phone? Not many. And yes I know the marketplace people are supposed to be "vetting" these apps but how closely do they look? I bet it wouldn't be difficult to get this past the vetting process. Do you run AV on your smartphone? How many supposedly knowledgeable IT people run AV on their smartphone? NOT many. How many smart IT people run custom ROM's on their phones? Point is, there's nothing to stop this.
 
This attack doesn't require strangers to connect a device to your ports, it expects you to do it...... Download an app for your smart phone that has this attack vector in it. Attach your phone to your pc to charge it, move files around to it, etc, and bam your nailed. How many people are running virus scanners on their smart phone? Not many. And yes I know the marketplace people are supposed to be "vetting" these apps but how closely do they look? I bet it wouldn't be difficult to get this past the vetting process. Do you run AV on your smartphone? How many supposedly knowledgeable IT people run AV on their smartphone? NOT many. How many smart IT people run custom ROM's on their phones? Point is, there's nothing to stop this.

You do realize that a phone won't sync when it's connected in HID mode. The USB port in a smartphone with unmodified hardware (with just a rogue app) cannot be a HID device at the same time it's a serial USB device, or mass storage USB device. Also with my windows mobile phone, once the USB cable is connected, it's requires a phyisical disconnection of the cable before the type of USB device my phone masquerades can be switched. If hardware is modified then all bets are off, it's still not as bad as a keyboard sniffer.

You're just trying defend your lack of security knowledge with the "Who's going to walk up to you with a keyboard and ask to let you plug it into your computer" argument.
Nobody who wants to con somebody into giving access through the PS2 port is going to do that. They'd have a special device created and they insert the thing between your keyboard's cable and the computer when you weren't looking. Some have been found INSIDE the original keyboard spliced in. The in-line keypress sniffers are even more of a risk since they can capture the passwords as they're typed in... the smartphone vector only institutes remote brute force keyboard/mouse attacks and won't sniff keypresses from a real keyboard since they don't have access to the keyboard connected to the computer.
 
You do realize that a phone won't sync when it's connected in HID mode. The USB port in a smartphone with unmodified hardware (with just a rogue app) cannot be a HID device at the same time it's a serial USB device, or mass storage USB device. Also with my windows mobile phone, once the USB cable is connected, it's requires a phyisical disconnection of the cable before the type of USB device my phone masquerades can be switched. If hardware is modified then all bets are off, it's still not as bad as a keyboard sniffer.

You're just trying defend your lack of security knowledge with the "Who's going to walk up to you with a keyboard and ask to let you plug it into your computer" argument.
Nobody who wants to con somebody into giving access through the PS2 port is going to do that. They'd have a special device created and they insert the thing between your keyboard's cable and the computer when you weren't looking. Some have been found INSIDE the original keyboard spliced in. The in-line keypress sniffers are even more of a risk since they can capture the passwords as they're typed in... the smartphone vector only institutes remote brute force keyboard/mouse attacks and won't sniff keypresses from a real keyboard since they don't have access to the keyboard connected to the computer.

Really? You think I have a lack of security knowledge?

This isn't about a connning someone.My point still stands - getting a physical device onto a machine you don't own is much more difficult than this is.

Here, let me paint the scenario: Create App with malicious code in it. Get app on marketplace. This code is downloaded by user into their smartphone over the cell network, App silently modifies USB stack of phone so now it looks like an usb hub. Virtualize the Mass storage and HID at the same time. User now takes phone and plugs it in to computer. Code on phone sees this connection and says, ok, I've got a USB connection to a computer. Since the connection to the computer looks like a USB hub, you will get two devices on it Mass Storage and HID. Since nothing on the usb is validated, the code could silently open a window off screeen and begin sending keystrokes to the system using the HID interface. First thing it would do is disable various security features. The system can't tell the difference because to the system, it appears as if the user is entering keystrokes at a keyboard. After the security features are down, it then does WHATEVER it wants to do. Now, I will grant you that the code would be restricted to whatever rights the currently logged in user has (since the user is already authenticated), but it's still in the sand box and would probably be able to get around most security using other exploits that depend on the user doing something stupid, because the code that's running is pretending to be the user. At that point the system is pretty much compromised.

But you can't have two devices on the USB port I hear you say? Why not? All the USB hardware does is control the signalling accross the wire, the software is where the real work happens. Since the smart phone USB port can act as either an HID device OR a Mass storage device, whats preventing it from acting as a USB hub? The softare tells tells the USB how to respond, so now it's a hub. The computer on the other end doesn't know.

Is this easy? Well it would require some technical knowledge, script kiddies aren't going to be able to do it. But is it doable? Hell yes, and right now, there is not much of a defense against it. Biggest question is: Is a rogue app able to get to into the system on the smartphone in such a way as to modify the usb stack? Certainly a custom ROM could (because it IS the OS).
 
Back
Top