40 points · by shawndumas · 15y ago · 20 comments
With an SMD AVR microcontroller, you could power it direct from the USB port, and the device would be not much bigger than a USB stick. In fact, you could embed it in a USB flash drive case (I suppose that bonus points would be awarded for also operating as a USB flash drive).
Example: http://www.obdev.at/products/vusb/hidkeys.html
[Edit]
Some quick googling shows that this is not a new idea:
http://www.taranfx.com/pc-mac-usb-hid-hack
$18 for a 1.2" by 0.7" USB-enabled ATMEGA32U4 -- and the only reason it's so 'large' is that they break out the atmega's pins to support prototyping, incude a SPST (switch), etc.
A toolkit for making your own USB human interface devices. Supports a variety of chipsets, including the AVR variants in the parent comment. Comes with its own crazy visual drag and drop programming language.
Get involved!
EDIT: Aha! found the link I was looking for: "Program Your Own Mayhem-Causing USB Dongle" http://hackaday.com/2010/04/05/program-your-own-mayhem-causi...
It's a video presentation BTW. And it is seriously devious: "There’s also a light sensor that can be used to activate a command once an unknowing victim has shut off the lights in the office and left for the day."
EDIT2: For bonus evil-points, solder it into a USB hub, run a real HID into the same hub, and hide the whole thing inside the HID, with the hub's host port wired up to the cable of the HID. Read the link below to see what I mean.
http://www.thice.nl/hide-your-data-in-plain-sight-usb-hardwa...
Also, there are USB keyboard replay devices out already that are much smaller than an android phone, if the goal was to automate the process.
I really fail to see why this is noteworthy other than the fact that someone developed a USB keyboard driver for android which is cool. It doesn't open any new attack vectors. I mean really how many computers are out there that don't have a keyboard and mouse but have accessible USB ports AND that it would look suspicious to have brought your own keyboard and mouse, but it wouldn't look suspicious to plug your phone into it.
I suppose the one thing it would enable is a social engineering trick where you convince the persons secretary to go plug your phone into the computer you don't have access to. Maybe something along the lines of "<insert boss' name here>, needs you to plug his phone it's running low on battery, can you plug it in?" and then come back a few minutes later to get the phone.
Refusing to charge someone's dying phone with your computer comes across as kind of a dick move, since it's perceived as costing you nothing and really helping out the other person.
Especially now that POS systems and what not have USB ports, it's not too farfetched that someone would ask a non-techy waitperson to please charge their phone for them, meanwhile it downloads the last thousand customers' credit card numbers.
Better yet, the device could act as an attacker's remote shell by downloading commands using curl and uploading redirected stdout and stderr.
This idea is terrifying.
I don't know why they didn't just use that one - Presumably because their Android phone uses an ancient kernel version.
Law #1: If a bad guy can persuade you to run his program on your computer, it's not your computer anymore.
Law #3: If a bad guy has unrestricted physical access to your computer, it's not your computer anymore.
---
Law #1 should be expanded nowadays: "If a bad guy can persuade you to plug his widget into your computer, it's not your computer anymore. In the USB case, the widget (phone) contains the bad guy's program.
It is possible to build a configurable (dynamic?) keyboard on the Android, like the keyboard in http://www.alltechnologynews.com/razer-switchblade-laptop-fo... . (I saw an article about it here a few months ago, but I can't find it.)
And perhaps it can be useful for non game activities too.