https://gist.github.com/yann2192/f989143c86567237460e
https://hacksr.blogspot.com/2012/05/ssh-unlock-with-fully-encrypted-ubuntu.html
https://github.com/inversepath/usbarmory/wiki/Secure-boot
https://github.com/offensive-security/kali-arm-build-scripts/blob/master/usbarmory.sh
[✔]
USB Armory loads up dropbear
/ tinyssh
-> requires login to unlock luks
partition
for uses refer to: https://github.com/inversepath/usbarmory/wiki/Applications
todo: figure out udev
rule number priority for hotplug (83 in example)
in the event that the computer is started up under duress there is the LUKS
Nuke
in the event that the computer will be stolen/seized there is verdantwarden.sh
using silk-guardian
Example - https://wiki.archlinux.org/index.php/udev#udev_rule_example
udev triggers script:
/etc/udev/rules.d/83-webcam-removed.rules
ACTION=="remove", SUBSYSTEM=="usb", ENV{ID_VENDOR_ID}=="05a9", ENV{ID_MODEL_ID}=="4519", RUN+="/path/to/your/script"
https://www.kali.org/tutorials/emergency-self-destruction-luks-kali/
https://www.kali.org/tutorials/nuke-kali-linux-luks/
https://www.offensive-security.com/kali-linux/kali-encrypted-usb-persistence/
https://www.offensive-security.com/kali-linux/raspberry-pi-luks-disk-encryption/
https://wiki.archlinux.org/index.php/dm-crypt/Device_encryption#Removing_LUKS_keys
https://wiki.archlinux.org/index.php/Dm-crypt/Drive_preparation#Wipe_LUKS_header
https://superuser.com/questions/1168928/wipe-luks-partition-in-pre-boot/1168933#1168933
https://major.io/2009/01/29/linux-emergency-reboot-or-shutdown-with-magic-commands/
https://en.wikipedia.org/wiki/Magic_SysRq_key
we assume script running is triggered from udev call
what happens when user executed system shutdown is called for the KLM unloading
what happens when USB hotplug removed; calls what
- revise silk.ko
requireslinux-headers
to be installed
# USB Detected
# if inserted, load silk.ko KLM
sudo insmod silk.ko
# USB Removed - PANIC!
# if removed:
# dd LUKS key header
# sudo cryptsetup luksErase /dev/sdX1
# dd if=/dev/urandom of=/dev/sdX1 bs=512 count=20480
# sync
# sudo rmmod silk.ko
# sudo shutdown now
https://kalilinuxtutorials.com/stagefright-all-you-need-to-know/