Endpoint
11/17/2016
08:30 AM
Connect Directly
Twitter
LinkedIn
RSS
E-Mail
50%
50%

How To 'PoisonTap' A Locked Computer Using A $5 Raspberry Pi

White hat hacker Samy Kamkar has come up with a way of to hijack Internet traffics from a password-protected computer.

Serial white hat hacker Samy Kamkar has developed a new exploit for breaking into a locked computer and installing a persistent web-based backdoor on it for accessing the victim’s online accounts.

The exploit involves PoisonTap, a $5 Raspberry Pi Zero device, that can be plugged into the USB port of a locked or unlocked computer and used to hijack all Internet traffic from the machine.

An attacker with even momentary physical access to a computer can attach PoisonTap to it, siphon out HTTP sessions and cookies and expose the internal router so it can be controlled remotely.

Rather than a single vulnerability, PoisonTap takes advantage of the inherent trust that exists in various network and machine mechanisms, like DHCP, DNS, USB and HTTP. It produces what Kamkar described this week as a “snowball effect of information exfiltration, network access and installation of semi-permanent backdoors.”

When PoisonTap is inserted into a USB port it emulates an Ethernet device. By default, Windows and OS X automatically load it, typically as a low-priority device, and perform a DHCP request across the device regardless of whether the victim machine is locked or not.

PoisonTap takes advantage of this process to trick the victim machine into giving it higher priority than the WiFi or other gateway actually connecting the computer to the Internet.

“Normally it would be irrelevant if a secondary network device connects to a machine as it will be given lower priority than the existing (trusted) network device,” Kamkar said.

But by getting PoisonTap to tell the victim machine that the entire IPv4 space is part of its local network, the device supersedes the legitimate Internet gateway to which the computer is connected. As a result, all network traffic that normally would have passed from the machine through the legitimate gateway, ends up hitting PoisonTap instead, Kamkar said.

PoisonTap then waits for any open browser pages on the computer to make an HTTP request - for example, to load a new ad or to send data to a tracking application. PoisonTap intercepts that HTTP request and spoofs a response that causes the HTTP request to hit its own web server.

The PoisonTap webserver responds to the HTTP request with a list of iframes for the top one million websites on Alexa, which it caches on the victim’s browser while simultaneously stealing all cookies being sent to any websites on that list.

“The iFrames are not just blank pages at all but rather HTML+Javascript backdoors that are cached indefinitely,” on the victim’s browser, Kamkar noted.

“Because PoisonTap force-caches these backdoors on each domain, the backdoor is tied to that domain,” he said. As a result the attacker can use the domain’s cookies for malicious access even if the user is not logged into the domain, he said.

Clever as the exploit is, securing against PoisonTap is simple, according to Kamkar.

It doesn't work on HTTPS content, for instance. So using HTTPS exclusively is one way to neutralize the threat from exploits like PoisonTap he said.

Ensuring that Secure flag is enabled on cookies is another effective measure because it prevents HTTPS cookies from leaking over to HTTP, said Kamkar whose previous exploits have included a drone hijack proof-of-concept, and an exploit involving remotely starting any General Motors car featuring OnStar RemoteLink.

Craig Smith, research director of transportation security at Rapid7, described PoisonTap as brilliant for its simplicity.

Unlike similar exploits in the past, one key difference with PoisonTap is that it attacks all outbound traffic from a victim system by emulating a network device, he said in a statement.  “This attack works on both Windows and Mac operating systems and can hijack a large number of connections, even if the machine is locked,” he noted.

“On a $5 Raspberry Pi, Samy pulled together several clever attacks that add up to something really masterful.”

Related stories:

 

Jai Vijayan is a seasoned technology reporter with over 20 years of experience in IT trade journalism. He was most recently a Senior Editor at Computerworld, where he covered information security and data privacy issues for the publication. Over the course of his 20-year ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
Cybersecurity's 'Broken' Hiring Process
Kelly Jackson Higgins, Executive Editor at Dark Reading,  10/11/2017
Ransomware Grabs Headlines but BEC May Be a Bigger Threat
Marc Wilczek, Digital Strategist & CIO Advisor,  10/12/2017
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Write a Caption, Win a Starbucks Card! Click Here
Latest Comment: What did you expect from this SOC? A unicorn....
Current Issue
Security Vulnerabilities: The Next Wave
Just when you thought it was safe, researchers have unveiled a new round of IT security flaws. Is your enterprise ready?
Flash Poll
[Strategic Security Report] How Enterprises Are Attacking the IT Security Problem
[Strategic Security Report] How Enterprises Are Attacking the IT Security Problem
Enterprises are spending more of their IT budgets on cybersecurity technology. How do your organization's security plans and strategies compare to what others are doing? Here's an in-depth look.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2017-0290
Published: 2017-05-09
NScript in mpengine in Microsoft Malware Protection Engine with Engine Version before 1.1.13704.0, as used in Windows Defender and other products, allows remote attackers to execute arbitrary code or cause a denial of service (type confusion and application crash) via crafted JavaScript code within ...

CVE-2016-10369
Published: 2017-05-08
unixsocket.c in lxterminal through 0.3.0 insecurely uses /tmp for a socket file, allowing a local user to cause a denial of service (preventing terminal launch), or possibly have other impact (bypassing terminal access control).

CVE-2016-8202
Published: 2017-05-08
A privilege escalation vulnerability in Brocade Fibre Channel SAN products running Brocade Fabric OS (FOS) releases earlier than v7.4.1d and v8.0.1b could allow an authenticated attacker to elevate the privileges of user accounts accessing the system via command line interface. With affected version...

CVE-2016-8209
Published: 2017-05-08
Improper checks for unusual or exceptional conditions in Brocade NetIron 05.8.00 and later releases up to and including 06.1.00, when the Management Module is continuously scanned on port 22, may allow attackers to cause a denial of service (crash and reload) of the management module.

CVE-2017-0890
Published: 2017-05-08
Nextcloud Server before 11.0.3 is vulnerable to an inadequate escaping leading to a XSS vulnerability in the search module. To be exploitable a user has to write or paste malicious content into the search dialogue.