Vulnerabilities

“USBdriveby” Emulates Mouse and Keyboard to Hijack Computers

A $20 USB microcontroller that someone can wear around their neck can be used to weaponize mouse clicks and keyboard actions in an effort to install backdoors, evade firewalls and modify DNS settings in a matter of seconds, a researcher has demonstrated.

<p><span><span style="font-family: trebuchet ms,geneva;"><strong>A $20 USB microcontroller that someone can wear around their neck can be used to weaponize mouse clicks and keyboard actions in an effort to install backdoors, evade firewalls and modify DNS settings in a matter of seconds, a researcher has demonstrated.</strong></span></span></p>

A $20 USB microcontroller that someone can wear around their neck can be used to weaponize mouse clicks and keyboard actions in an effort to install backdoors, evade firewalls and modify DNS settings in a matter of seconds, a researcher has demonstrated.

Security researcher Samy Kamkar has taken a Teensy 3.1 USB-based microcontroller and fitted it with software that can emulate a mouse and a keyboard when connected to a computer. The gadget, dubbed USBdriveby, leverages the fact that many systems blindly trust USB devices connected to them.

Once it’s plugged in to a machine, USBdriveby immediately starts performing mouse and keyboard actions, which allows it to carry out a wide range of tasks, such as opening a backdoor, disabling the firewall, and controlling traffic flow by changing DNS settings. After the device is disconnected, the attacker has full access to the targeted computer.

“When you normally plug in a mouse or keyboard into a machine, no authorization is required to begin using them,” the researcher explained. “The devices can simply begin typing and clicking. We exploit this fact by sending arbitrary keystrokes meant to launch specific applications (via Spotlight / Alfred / Quicksilver), permanently evade a local firewall (Little Snitch), install a reverse shell in crontab, and even modify DNS settings without any additional permissions.”

Kamkar’s example targets an OS X device, but the expert says the attack works just as well on machines running Windows and Unix-like operating systems. The source code for the microcontroller and the various operations performed by USBdriveby has been made available.

These types of attacks are not new, and there is reason to believe that the NSA has already been using such devices in its operations.

Earlier this year, at the Black Hat security conference, researchers at Germany-based SRLabs demonstrated that a USB device’s firmware can be reprogrammed for malicious purposes. They called the attack “BadUSB.” The methods developed by SRLabs are more sophisticated than the ones used for USBdriveby, but the German researchers had not released the source code for their modified USB controller firmware.

In September, researchers Adam Caudill and Brandon Wilson released BadUSB source code after a presentation at the DerbyCon security conference. They argued that the code had to be made public so that people can learn how to protect themselves against such attacks.

Advertisement. Scroll to continue reading.

However, USBdriveby is different from BadUSB and other similar devices, such as USB Rubber Ducky, because it also emulates a mouse, not just a keyboard. The USBdriveby code is available for both Teensy and Arduino microcontrollers. However, Kamkar has pointed out that some Arduino controllers, such as Arduino Nano, are not capable of emulating a USB keyboard or mouse.

USBdriveby is not Kamkar’s first interesting project. One year ago, he developed a drone that could autonomously seek out, hack and take over nearby drones.

Related Content

Copyright © 2024 SecurityWeek ®, a Wired Business Media Publication. All Rights Reserved.

Exit mobile version