59
Jun 16 '19
I wonder how this would work on a PC? Because the commands to open programs are different. Like when using a Rubber Ducky you need to make OS specific attacks.
70
u/Ultravicster Jun 16 '19
With most iterations of ārubber duckiesā you can detect the OS and run payloads accordingly.
13
Jun 16 '19
Does this work on the OG rubber ducky? Thatās the only one Iāve worked with and havenāt found a way to do this?
11
u/Ultravicster Jun 16 '19
Iām not sure, i have a couple of different duckies and Iāll try to get one working later today, Iāll keep you posted.
6
13
u/RawbGun Jun 16 '19
It actually detects the OS and runs different key combination depending on the OS (according to the OP of the vid)
3
u/astnbomb Jun 17 '19
Any idea how it detects the OS?
11
2
1
u/winsucker Jun 17 '19
For Usb 2.0 devices and above the windows (xp sp3 to win 8.1) issued an OS specific string descriptor at offset 0xEE, i.e (wvalue = 0x03EE). Hence during the enumeration process, we needed to lookout for this descriptor and set appropriate Boolean flag.Ā
70
u/Revoot Jun 16 '19
Wow, scary ! But is this real ? I did not know there was a USB interface allowing that. Or is this emulating a hacked keyboard?
158
Jun 16 '19
Itās just emulating a keyboard device. Very easy to do, and unfortunately, a very viable attack.
151
u/SocialDoki Jun 16 '19
And this is why we don't plug in unknown USB devices kids.
235
Jun 17 '19
everybody gangsta till the centrifuges explode
43
u/Hellowilliam5000 Jun 17 '19
If I had money I would give you gold but this comment will have to do
15
10
Jun 17 '19
broke boy gold
8
3
u/floridabot_ Jun 17 '19
There's no way they can hack us we arnt connected to the outside world!
2
Jun 17 '19
the next day on r/tifu: TIFU by plugging in a USB and destroying millions of dollars worth of equipment
4
u/123_qwerty Jun 17 '19
Unless you have Penteract Disguised-Keyboard Detector.
1
u/beetard Jun 17 '19
Why is Microsoft selling this instead of patching their is ffs?
4
u/SocialDoki Jun 17 '19
Because a default security model where the computer immediately locks after detecting a keyboard would be a tough sell.
5
u/AnotherEuroWanker Jun 17 '19
Seems to me like a reasonable option to have in an OS's security panel nowadays.
4
u/rjSampaio Jun 17 '19
its not Microsoft, like millions of people around the world, some guy had this idea, but spend the time to atualy make it and is getting profit from it.
3
u/robotorigami Jun 17 '19
Why would Microsoft make it so the OS doesn't allow HID keyboard devices to work? This is kind of the opposite thing you'd want in an OS.
2
u/mkosmo Jun 17 '19
Because, like Google and Apple, Microsoft allows anybody to sell apps on their marketplace.
1
28
u/I-Downloaded-a-Car Jun 17 '19 edited Jun 17 '19
It simply happens because keyboards don't get checked when they're plugged in. Your operating system just assumes that any input coming from a "keyboard" is your own input. And these things are dangerous because they can really do anything. Move files, download files, give root privileges, whatever they want to. If you can do it yourself a rubber ducky can also do it.
This is one reason you don't plug random usb devices into your computer. Another reason is because of killer usbs. Killer usbs usually look like flash drives (but they can be anything) and when you plug it in the power from your usb port charges capacitors inside the device, and once those caps are full it'll fry your usb port at best, other things at worst.
I don't actually know why people build killer usbs, seeing as they don't stand to gain anything by doing it, but hey, it happens so don't plug in random things.
If you want to be even more scared either of these things can be built into a keyboard or mouse, which you may purchase from a thrift store. A rubber ducky in a real keyboard could even try to predict when you're not currently present in front of the computer (because it could tell when the keyboard is being typed on) so it can try to run commands without you noticing at all.
8
u/Deoxal Jun 17 '19
I don't actually know why people build killer usbs, seeing as they don't stand to gain anything by doing it, but hey, it happens so don't plug in random things.
The only legitimate use for one is to test that a device you are building can handle having one plugged into it. It's kind of ironic that the only legitimate use for a USB killer exists because USB killers exist.
7
u/Firewolf420 Jun 17 '19
You know modern OSes should really make you type a few randomly-generated letters into your keyboard to verify it's a keyboard device you actually wish to use, when you first plug it in.
It'd be trivial to implement this. It can be like one of those challenge response keys they use when pairing Bluetooth devices
13
u/I-Downloaded-a-Car Jun 17 '19 edited Jun 17 '19
One would think. Even a popup that asks if you wish to enable a secondary keyboard when more than one are plugged in would be better than nothing.
At the end of the day this is a ridiculous fucking vulnerability. It has been an issue as long as USB has existed and yet no one has ever thought to do anything about it.
And before anyone says something retarded like "yOU nEeD phYSIcAL AccEsS" look around next time you're at the store, a bank, an office building, there are open USB ports all over the place. It makes for a stupidly simple attack vector. Also I'm pretty sure this is how Stuxnet got onto the centrifuges, so there's that.
1
3
u/Sandsturm_DE Jun 17 '19 edited Jun 17 '19
Very true. Are there any best practices to plug-in unknown devices, counter-measures against rubber duck etc.? I am a Linux user.
1
u/geo-desik Jun 17 '19
Yeah it would be nice to know if there's a way to check if something like this has already made it into your computer? I just did a fresh install but I do have a maybe sketchy mechanical keyboard I bought at a liquidation store.. haha can't say I've noticed anything out of the ordinary though.
1
u/I-Downloaded-a-Car Jun 17 '19
There are a few ways to tell. For one thing, while they perform actions very quickly they don't really do it instantly, so if you plug in a mystery USB just pay attention. Make sure a bunch of windows aren't flashing on screen.
You can use a keylogger. You'll be able to check if anything strange happens. You could also write a script that checks how fast keyboard input is, ideally blocking any very fast input.
I could also imagine it being possible to tell Linux to only let one keyboard work at a time. No idea how you'd do that though.
Regardless of anything though, always run these things in a VM, and be careful about plugging unknown devices into your computer.
Also for USB killers you can just take the device apart to check for a large number of capacitors.
0
Jun 17 '19
[deleted]
1
u/Sandsturm_DE Jun 17 '19
When I plug-in an evil device, is there any chance to analyze it before disabling the security mechanisms? Or does disabling mean I always have to trust the device?
14
u/MildlyTriflin Jun 17 '19
So, anyone figure out how to obtain one of these John Deere Duckies yet? I'm tempted to just call and ask for one as attending trade shows sounds a bit hit or miss
9
25
u/Kamwind Jun 16 '19
Take a look at https://shop.hak5.org/products/usb-rubber-ducky-deluxe
29
u/Nopparuj Jun 17 '19
Too expensive, take a look at attiny usb module, it got small storage but cost $1 a piece.
6
6
u/pvtryan123 Jun 16 '19
Self executing?
4
u/AnotherEuroWanker Jun 17 '19
Nothing gets executed on the computer, the USB device executes what little code there is.
1
u/D0CT0RB00M Jun 17 '19
Seems like it to me. I wonder if it just waits a certain amount of time after being powered on, or if it somehow detects that the OS has properly installed the device...
6
u/bradgillap social engineering Jun 17 '19
I was just at a conference where they showed this tech miniaturized to a usb and lightning charge cable. Installed a trojan dropper.
5
u/MapReduceAlgorithm Jun 17 '19
Its an USB Device which emulates an HID-Keyboard and types potencially bad stuff. Dont plug-in random USB Devices you found.
5
u/blarg_dunsen Jun 17 '19
I was gonna make a quip about how you have now lost your right to repair your notebook, but I see you already have a Mac.
8
9
u/davidcisco Jun 16 '19
dudeee no way there giving out free rubber duckys
10
u/O0ddity Jun 17 '19 edited Jun 17 '19
Why not? In bulk a micro controller like this that only need a tiny bit of ram and flash can sell for under a dollar each. e.g.:
I bought a box of 5 (on board with a USB plug) for $2 a piece: i.e. DigiSpark Attiny85.
4
9
3
3
3
u/tangohuynh Jun 17 '19
..and this is why you don't plug random USB sticks into your machine...lol.
I usually use a lab machine to reverse malware usually if I'm curious enough.
1
1
1
u/BeneficialBear Jun 17 '19
I recently made one of this rubbery ducks for presentation on my University. It is for attacking windows. First it closes all other windows, then it opens the run command, then it opens tcp socket and downloads through it malcius code(from pastebin).
1
Jun 17 '19
I had this same thing and asked about it on this sub awhile ago , except mine was for some health website. wanted to know if I could reprogram it. ended up deleting for some reason
1
1
u/Thickcutrobb Jun 17 '19
Didnāt someone make a rubber ducky like this once to subscribe people to pewds?
1
1
-4
u/SQLoverride Jun 17 '19
And you would plug in an unknown usb why?
5
u/VSCG Jun 17 '19
Because John Deere gave it to you at a tradeshow as swag. Most would assume it's a useful tool like a FD
1
u/SQLoverride Jun 17 '19
Vendors have shipped and given away infected usbs.
2
u/AnotherEuroWanker Jun 17 '19
Even when buying legit ones, I always have a moment of anxiety when plugging them in for the first time nowadays...
-13
u/MrArchibaldMeatpants Jun 17 '19
How can I make something like this to purposely mess up someone's pc
2
u/Deoxal Jun 17 '19
I didn't tell you this, but you can find these at https://maltronics.com
Also https://www.reddit.com/r/hacking/comments/c1f7fr/interesting/erdfuv0
Don't be an asshole with it though.
248
u/_m242_ Jun 16 '19
Free Rubber Ducky !