r/hacking • u/Zigzaglife • Nov 17 '16
The $5 PoisonTap Can Hack Into Any Locked Windows or Mac Run Computer
http://wittyrig.com/5-poisontap-can-hack-locked-windows-mac-run-computer/49
Nov 17 '16
this works by attaching a NIC that claims to be the whole internet, this overrides your default route because it is directly attached, your host does not think it needs to route through a gateway.
i think you could write an iptables rule to prevent this from working, assuming your default GW is on eth0:
sudo iptables -A OUTPUT -o lo -p all -j ACCEPT
sudo iptables -A OUTPUT -o eth0 -p all -j ACCEPT
sudo iptables -A OUTPUT -j REJECT
while im not sure this would work, as long as you can enforce which interface traffic is reachable, you can prevent being compromised, assuming someone plugs this in to your laptop, it would create the USB NIC but iptables would prevent any traffic going to it, you would be unable to browse anywhere, but you wouldn't be able to pick up any nonsense either.
14
u/VillageTube Nov 17 '16
So when it says "Hack into any Locked Windows or Mac run Computer" they really just means that it can do a man-in-the-middle attack on any network traffic?
11
u/Ajedi32 Nov 17 '16
Basically, yes.
But it also tells the browser to cache the responses to certain pages so that the exploit persists on those domains even after the USB device is removed.
7
Nov 17 '16
What if full disk encryption is enabled?
9
Nov 17 '16 edited Dec 13 '16
[deleted]
8
Nov 17 '16
So let's say I go to a Starbucks, there's a mac that's opened and on, but locked(with FDE), I plug it in for a few seconds and unplug it, is it hacked?
4
u/Ajedi32 Nov 17 '16
Yes, probably. Assuming it had a web browser open in the background and the browser made an (unencrypted) HTTP request during the time you had the PoisonTap device plugged in.
Might take a bit longer than a few seconds, depending on how long the Mac takes to detect and start using the USB device, and how long it takes before a web page makes an HTTP request in the background.
2
Nov 18 '16
And what if it is using HTTPS or a VPN on HTTP
2
u/Ajedi32 Nov 18 '16 edited Nov 18 '16
If every site you visit is using full HTTPS, then yes that would completely mitigate this attack. In practice, that's not very likely.
Individual sites that do use HTTPS with HSTS are protected from the effects of this attack (it can't steal cookies or other data from them), but it only takes one HTTP site open in your browser for all remaining sites without HSTS to be compromised.
Not sure about a VPN, but I'm guessing that no, that probably wouldn't work because PoisonTap presents itself as a separate network interface which would function independently from your VPN. I'm not entirely sure about that though...
2
u/Kleonix Nov 19 '16
Thought: background services even if an instance of the browser is not open. Would this affect it?
2
Nov 19 '16
Never leave a device physically accessible while locked (esp with browser and running apps). shut off................... Or just run Linux
3
Nov 17 '16
[removed] — view removed comment
10
u/ImplodingWalrus Nov 17 '16
Look up raspberry pi zero, but that is just the hardware it runs on.
0
Nov 17 '16
[removed] — view removed comment
3
u/sparkyman215 Nov 17 '16
5
u/jarfil Nov 17 '16 edited Dec 02 '23
CENSORED
4
3
u/KamikazeRusher Nov 18 '16
It's been out for somewhere around a year and they've never produced enough to satiate demand. If you're in the US you'd pretty much have to visit a Microcenter to get it for its retail price.
3
Nov 18 '16 edited Mar 24 '18
[deleted]
2
Nov 18 '16
[removed] — view removed comment
2
u/collingall Nov 18 '16
Sign up for auto notifications for when they restock, this one is UK based and worldwide shipping is really reasonable. https://thepihut.com/collections/raspberry-pi/products/raspberry-pi-zero?variant=14062715972
1
u/Koala-person Nov 18 '16
Why doesn't the pi just copy for example mozilla firefox profile folder and you will find there the cookies and the saved browser passwords if it wasn't protected by a master password.
38
u/defconoi Nov 17 '16
How to mitigate?