From 'O.MG' to NSA, What Hardware Implants Mean for Security
A wireless device resembling an Apple USB-Lightning cable that can exploit any system via keyboard interface highlights risks associated with hardware Trojans and insecure supply chains.
February 14, 2019
During a month-long hiatus between jobs, Mike Grover challenged himself to advance a project he'd been working on for over a year: Creating a USB cable capable of compromising any computer into which it's inserted.
His latest iteration, the Offensive MG or O.MG cable, resembles an Apple-manufactured Mac USB-Lightning cable but incorporates a wireless access point into the USB connector, allowing remote access from at least 100-feet away, according to Grover. A video demonstration shows Grover taking control of a MacBook and opening up Web pages from his phone.
The cable takes advantage of a known weaknesses. To make keyboard, mice, and other input devices as easy to connect as possible, operating system makers have made computers accept the identification, through the Human Interface Device (HID) protocol, of any device plugged into a USB port. An attacker can use the weakness to create a device that acts like a keyboard to issue keystrokes, or a mouse to issue clicks.
"What the user sees, or doesn't see, depends a lot on their machine, how the cable is configured, and when the HID interface is initiated," Grover says. "A competent attacker can make this invisible to the victim."
The project is the latest demonstration of hardware Trojans — often called implants in the intelligence world — and the potential risk they pose to companies and their unwitting employees. In 2014, a team lead by Karsten Nohl created BadUSB, a set of USB peripherals that could abuse the HID protocol to compromise systems or pose as an external hard drive to control a computer's boot process.
Many of these attacks, including Grover's latest O.MG cable, aim to fool the user into inserting the compromised device into their own computers.
"The weakest point of any company's security are the people, so any chance you have to interact with people is a good opportunity to breach their security," says John Cartrett, the red team technical lead at security services firm Trustwave.
Such a hands-off approach is one reason why Grover pursued creating such a close twin to Apple's cable, including creating his own miniature custom circuit boards. In the past, many malicious USB devices, such as Teensy and Rubber Ducky, were carried in by a red-team member to quickly infect systems or capture data by inserting the drive into the target computer. In 2013, a group of researchers from the Georgia Institute of Technology showed off a power charger for MacBooks that could compromise the systems.
Grover designed his cable to connect to a Wi-Fi hotspot and connect back through the Internet for instructions.
"The malicious cable can be both victim-deployed [and] attacker-controlled and updated while in possession of the victim," he says. "Lots, but not all, of malicious hardware tends to be intended for the attacker to deploy. [With this], the attacker does not have to risk gaining physical access to a secure location if the victim will carry it in for you."
Some security experts see the projects as a good teaching moment, but unlikely to be used very often in practice. While Cartrett admired Grover's work on the cables, he thinks it's unlikely his team would use it in their own engagements.
"My guys go in with a small set of tools and they are initially tasked with getting a foothold," he says. "We usually don't use novelty cables like this or the chargers. We looked at some of them, but they are just too James Bond-ish."
'Cottonmouth'-Inspired
There is a connection to intelligence work. The original idea for the wireless USB cable came from the documents leaked by Edward Snowden. Project "Cottonmouth" — as listed in the leaked Tailored Access Operations (TAO) catalog — is a USB hardware implant that provides a wireless bridge.
Still, the decreasing costs of such custom hardware Trojans and implants, and public accessibility, could mean that they will proliferate. While Grover spent an estimated $4,000 to complete the cable, the actual cost in parts for each cable is about $30, he notes.
Companies can take steps to make sure they are harder targets of such hardware implants. Employee education can help foil some attacks, says Deral Heiland, IoT research lead at cybersecurity firm Rapid7. Workers, for example, should be taught to never insert any hardware into their computer not supplied by the company. In addition, whenever they step away from their system, they should lock it, he says.
"Lock your console, don't wait for the one minute, lock your console every time you walk away from your keyboard," Heiland advises.
In addition, firms should pay more attention to their supply chains, making sure they are procuring hardware from reliable sources. Unfortunately, there are no sure-fire ways of detecting a hardware Trojan.
"Supply chain security is hard," Heiland says. "If you are buying from a reliable trustworthy source, you are going to have to trust those devices."
Related Content:
Join Dark Reading LIVE for two cybersecurity summits at Interop 2019. Learn from the industry's most knowledgeable IT security experts. Check out the Interop agenda here.
About the Author
You May Also Like
Transform Your Security Operations And Move Beyond Legacy SIEM
Nov 6, 2024Unleashing AI to Assess Cyber Security Risk
Nov 12, 2024Securing Tomorrow, Today: How to Navigate Zero Trust
Nov 13, 2024The State of Attack Surface Management (ASM), Featuring Forrester
Nov 15, 2024Applying the Principle of Least Privilege to the Cloud
Nov 18, 2024