Just came across this program, silk-guardian
https://github.com/NateBrune/silk-guardian
Basically it loads in as a Linux kernel module, and watches the USB ports for any changes (connecting or disconnecting), and if it detects a change, it immediately runs shred
(secure file deletion) on a specified set of files/directories, and then powers off (ideally protecting via full disk encrpytion).
The code is pretty straightforwards if you look at it. There is also this: https://github.com/hephaest0s/usbkill , which is a python script that has similar functionality. This one touts the ability to wipe RAM/swap, which would be nice.
The idea is, that if you were in a public place, you could tie a string around your wrist and to a flash drive in the laptop. If you sense any trouble or see cops or anything, all you'd have to do is flick your wrist and the computer is immediately secured. Would have probably helped out DPR...
We should see if some of the bright minds around here could expand and create a better program like this!
I mean. Wont just using tails on a live usb, tied to your wrist, do the same shit. Lol.