Skip to content

flowchartsman/deadman

Repository files navigation

deadman

a usb-based dead man's switch for your computer.

Usage

sudo ./deadman

-or-

deadman.exe

Can be killed with SIGINT (ctrl-c)

Purpose

deadman is intended as an anti-forensics/compulsion tool that will prevent or limit access to your machine if you are compelled away from it, or a device is attached to it without your consent. While it is running, if any USB device is attached or removed, it will execute a forced shut down. Possible use cases could involve a usb fob attached to the user with a lanyard as a kill switch, or as a countermeasure to devices like mouse jigglers or programmable HID devices.

Inspiration

I recently came across heaphaest0s' cool project, usbkill, which is written in Python. I thought I might be able to improve it somewhat by making an alternative Go version that would have no external dependencies and also would work on Windows 7/8. It currently has feature parity with USBKill, though new features are being developed all the time.

TODO

  • Moar testing
  • Moar docs
  • Add support for FreeBSD
  • Device whitelisting
  • Better logging. You won't see much at the moment as it shuts down as soon as it can.
  • Hook into system calls as much as possible. For now, linux and OSX systems parse lsusb or its equivalent every second. There is a branch in development for an event-based model, though this still requires polling in both OSX and Windows. On linux, it can receive udev events via a netlink socket. Whether a similar model is easily obtained in OSX or is even possible in Windows at all is being researched. In the meantime, a more efficient method of polling via WMI is being developed.

About

A usb-based dead man's switch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages