7 ms·
If your machine has a USB port, it's no longer properly isolated. Obviously that's a tremendous pain to work with, because you're limited to PS/2 keyboards and
by pjc50 10y ago
If your machine has a USB port, it's no longer properly isolated.
Obviously that's a tremendous pain to work with, because you're limited to PS/2 keyboards and mice (etc etc), but given that there's no way of authenticating USB devices and they've already been used in various attacks, a serious airgap protocol has to ban USB ports.
You could quite easily hide a USB mass storage device inside a mouse, or with a bit more work have an unmodified mouse with a spare Flash area used for data exfiltration.
(Firewire is even worse, and Thunderbolt lets you onto the PCI bus)
- leni536 10y ago> You could quite easily hide a USB mass storage device inside a mouse AFAIK one could mitigate something like this by really restrictive udev rules only allowing certain usb drivers on certain usb ports (like no usb msc on the port dedicated for keyboard only).
- pjc50 10y agoYou can mitigate the exploit against standard mass storage drivers, yes, but there are other ways. It appears in this case the host was compromised (so able to override the drivers). If a userland program can get at the raw HID interface, that can also be used for exfiltration to a tailored device.
- kps 10y agoxset led named 'Scroll Lock' Slow, but works for PS/2 keyboards too.
- jandrese 10y agoDepends on having a camera pointed that the compromised keyboard, and cameras are the first things banned when setting up a secure environment.
- kps 10y agoI meant, using a physically compromised keyboard that records LED transitions set by the host, since the context was USB devices that look like normal keyboard or mice but actually contain storage.
- jandrese 10y agoThe only problem with that is people don't typically carry keyboards around and plug them into different devices.
- TheCapn 10y agoPersonally? PC gets locked in a box with some sort of venting. Keyboard / Mouse are plugged in by IT and no one unauthorized has physical access to the PC itself. If they're serious enough about finding 0 days and exploits to the USB or OS to load this shit any physical access to the box itself is off limits.
- redcalx 10y agoCut USB cable; splice new device into cable. Or, open mouse/keyboard case, wire device into USB bus connections.
- acdha 10y agoThis is why you need defense in depth: physical seals on components, either protecting cables or keeping them clearly visible where someone can notice tampering, and – above all – having the physical space setup to strictly limit someone's ability to bring arbitrary objects in or spend time alone with sensitive hardware. Consider what someone with the time, skill, and access to do that could also do without that: opening the case and directly installing some sort of device, planting a camera which records you typing passwords in (“oops, left my cellphone sitting out. Won't happen again!”), planting a radio receiver which opens up all sorts of side channel attacks, installing a passive network tap, etc. A guard with a metal detector and strict limits on what you can bring into the building or what tools you can use inside is going to do a better job preventing all of those.
- dewyatt 10y agoWireless RF keyboard+mouse, external antennas outside of the shielded case?
- TeMPOraL 10y agoCan be defeated by a phone charger. http://samy.pl/keysweeper/ http://samy.pl/keysweeper/
- 10y ago
- acdha 10y ago> a serious airgap protocol has to ban USB ports. This is slightly too strong – it should be “has to ban unsecured USB ports”. By 2002 or so, people I met who worked at SPAWAR were advising conference attendees to follow their standard practice of epoxying necessary USB devices to the computer and completely filling unused ports. That moved USB into the same difficulty class as other physical access attacks, which they were already depending on building security to restrict. Also note that while it's true that Firewire and Thunderbolt are definitely still riskier, newer versions of Windows, OS X, and Linux can use the IO-MMU to prevent DMA attacks. That started shipping in OS X 10.7 and Windows 8.1 (only when locked) and OS X 10.8 enables that all of the time for hardware made around 2012 and later.
- peterwwillis 10y agoYou would also need proper shielding to prevent van Eck phreaking from PS/2, monitor, video card, sound card, internal memory bus, and other rf noise.
- chrisper 10y agoIf you just leave away the USB mass storage kernel module when compiling the kernel, the mass storage device won't work anymore while the mouse still works. I wonder if this is a solution to this problem or not since it seems quite naive.
- drvdevd 10y agoJust speculating: this might mitigate some kernel level exploits but since its typically usb card <--> usb bus/controller <--> PCI bus, presumably hardware or kernel bugs elswhere in that stack could still be exploited. Interesting thought!
- ge0rg 10y agoThis is not sufficient. One known vector is to emulate a USB network device that provides a nameserver via DHCP, but no default route,allowing the attacker to MitM chosen connections. And of course you have a plethora of different USB device types with default drivers that probably contain exploitable bugs.
- jandrese 10y agoToo easy to have that undone by a security update later. Better to physically disable the ports (fill them with epoxy for example). Much more foolproof and easy to verify.
- superuser2 10y agoAny USB device gets to be a keyboard and mouse. If it comes down to it, the device could just "type" its payload.
- cxseven 10y agoAnd if that malware can't liberate USB access, and still needs to read data (rather than just writing it), it could exploit the capacity for various devices to emit detectable EM radiation. The fake keyboard/mouse, being inside the Faraday cage, would be able to sense that radiation and extract data that the malware in its payload sends back to it. In fact, all of this would work equally well with a PS/2 port.
- superuser2 10y agoThere's usually going to be some interface between the two worlds, right? You just want it to be highly controlled. What's left? Optical media? Or are we seriously reduced to a human with two computers reading from one and typing into the other?
- roywiggins 10y agoZip disks?