Live data from Hacker News

Usbkill – anti-forensic tool to halt computer when new USB device is connected

github.com

41–50 of 195 posts

Re: Usbkill – anti-forensic tool to halt computer when new USB device is connected

#41
post #18

If you are paranoid about something like this happening, just use https://www.qubes-os.org/ . all usb devices are jailed in a non-networked vm by default. In general, if what you do warrants that level of paranoia, qubes will help you massively. Micah Lee held a great overview talk at HOPE 2018: https://www.youtube.com/watch?v=f4U8YbXKwog

I don't think it solves same problem.

Re: Usbkill – anti-forensic tool to halt computer when new USB device is connected

#42
post #23

Earlier quoted context omitted.

Yes, but that's unrelated. The idea here is that if a USB device is connected to your machine, it's an indicator that your machine is compromised. Mouse jigglers that stop your lock screen from activating are very common when confiscating machines: https://www.cru-inc.com/products/wiebetech/mouse_jiggler_mj-... And of course, depending on the OS, it's possible to craft a USB stick that copies files to a remote server…

> depending on the OS, it's possible to craft a USB stick that copies files to a remote server as soon as it's plugged in. Is this possible with Linux?

Yes and no. The idea is to emulate a keyboard and mouse. You then use OS shortcuts to, for example, start a terminal and type command in it. So it can work with Linux but, because of the diversity of Distribution, DE, etc, it is more difficult to be sure of the shortcuts that you can use, whereas on windows or mac, they will usually always be the same (for exemple, Windows+R on windows to launch a launcher, and then type cmd.exe).

Re: Usbkill – anti-forensic tool to halt computer when new USB device is connected

#43

Earlier quoted context omitted.

Autorun has been disabled by default for a long time (with good reason). And it has never worked with USB drives, only ones which emulated a CD drive such as U3 USB drives.

Autorun attempts results in a prompt since Vista. Apparently, autorun from USB volumes was enabled for XP SP2: https://support.microsoft.com/en-us/help/967715/how-to-disab... >Before Windows XP SP2, AutoPlay was disabled by default on removable drives, such as the floppy disk drive (but not the CD drive), and on network drives. Starting with Windows XP SP2, AutoPlay is enabled for removable drives. This includes ZIP…

Autorun and AutoPlay are different things. AutoPlay is what asks you if you want to open media in File Explorer or some other application.

Re: Usbkill – anti-forensic tool to halt computer when new USB device is connected

#44
post #39
post #33

Earlier quoted context omitted.

That would only work on a known operating system and window manager with known keyboard shortcuts, unless a terminal is already focused.

In theory, you could fingerprint the host OS first and then run the appropriate commands (of course more tricky with more custom Linux setups, does CTRL+ALT+Fn still work to get to a text console?): https://www.cise.ufl.edu/~butler/pubs/sadfe11.pdf

Yeah, I was thinking of custom window-manager setups. You can usually get a tty console by ctrl-meta-f1 etc., but that wouldn't help, since you'd have to enter a password. I suppose an advanced version could try different combinations and test each by entering a command that would be detected by the stick.

Re: Usbkill – anti-forensic tool to halt computer when new USB device is connected

#45

Earlier quoted context omitted.

Yes, but that's unrelated. The idea here is that if a USB device is connected to your machine, it's an indicator that your machine is compromised. Mouse jigglers that stop your lock screen from activating are very common when confiscating machines: https://www.cru-inc.com/products/wiebetech/mouse_jiggler_mj-... And of course, depending on the OS, it's possible to craft a USB stick that copies files to a remote server…

An alternative approach may be to check idVendor and idProduct (lsusb) to see if either matches a mouse jiggler supplier or product.

Not sure if a blacklist-aproach is the most reasonable solution when you're in a situation that you have to worry about these things in the first place.

Re: Usbkill – anti-forensic tool to halt computer when new USB device is connected

#46
post #36

Earlier quoted context omitted.

You can get a 'USB rubber ducky' [1] which emulates both a USB memory stick and a USB keyboard, allowing you to script keystrokes for the keyboard [2] So it can do anything a newly plugged in keyboard can do. Which, if the user is already logged in, makes grabbing the user's files easy. [1] https://shop.hak5.org/collections/usb-rubber-ducky/products/... [2] https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Payloads

This will only work, I suppose, if the attacker knows beforehand a keychord that will focus a terminal.

on most desktop linux distros: terminal is enough

Re: Usbkill – anti-forensic tool to halt computer when new USB device is connected

#47

Obligatory $5 wrench comment: https://xkcd.com/538/ Something like this is probably good when you - as a person - are not around when your hardware gets extracted from your place. But then again, why would it be running openly and unattended in the first place?

This (link) is actually referred to as a Rubber-hose cryptanalysis -> https://en.wikipedia.org/wiki/Rubber-hose_cryptanalysis

Re: Usbkill – anti-forensic tool to halt computer when new USB device is connected

#48
post #40
post #18

If you are paranoid about something like this happening, just use https://www.qubes-os.org/ . all usb devices are jailed in a non-networked vm by default. In general, if what you do warrants that level of paranoia, qubes will help you massively. Micah Lee held a great overview talk at HOPE 2018: https://www.youtube.com/watch?v=f4U8YbXKwog

How does that work with input devices like keyboard and mouse?

generally it is advised to use ps2 input (like most laptop's integrated keyboard and touchpad).

details on using usb keyboard and mouse here: https://www.qubes-os.org/doc/usb-qubes/

Re: Usbkill – anti-forensic tool to halt computer when new USB device is connected

#49
post #18

If you are paranoid about something like this happening, just use https://www.qubes-os.org/ . all usb devices are jailed in a non-networked vm by default. In general, if what you do warrants that level of paranoia, qubes will help you massively. Micah Lee held a great overview talk at HOPE 2018: https://www.youtube.com/watch?v=f4U8YbXKwog

I don't think it solves same problem.

it does not solve the same problem, correct. it's still a great tool if your threat model warrants it.

Re: Usbkill – anti-forensic tool to halt computer when new USB device is connected

#50
post #17

I attended a talk by GSK and there was part of the talk about security. They don't allow usb devices to be plugged into their analysis computers. But every year they get an intern that tries to charge their phone from the PC USB. Something like this, that doesnt halt the computer but shows a warning on screen and logs information would perhaps be a solution to their problem. Although in the case of industrial espiona…

At a former gig for a post-production facility we used CoSoSys EndpointProtector to restrict USB access to workstations. Works as described in your second paragraph, (logs and warning) admin can then allow approved devices remotely if necessary.
Post reply on HN