Show HN: Lockdown.sh Simple shell script for locking down new linux installs
github.com
github.com
> [bottom of readme] Supported OS: Debian
Not all Linux is Debian or a Debian derivative.
> Remounts /tmp /proc /dev /run to be more restrictive
Unfortunately it only appears to remount, which will not persist across reboots (unless I’m missing something).
> Restrict access to compilers
Is this actually meaningful from a security perspective? If one can get some source onto a machine and execute a compiler and then execute that binary, how is that substantially different than them just getting a binary onto the machine and executing that instead?
it's so far out there that I almost think it's intended as performance art, rather than something anyone is supposed to actually use
Yeah and then it also reboots immediately. What's the point? Has this even been tested?
# Add legal banner
echo "
Unauthorized access to this server is prohibited.
Legal action will be taken. Disconnect now.
" > /etc/issue
Heh.Running random scripts one doesn’t understand as root has its potential problems, though. Non-experts should still audit what this script (or any script requiring elevated privileges) is doing and strive to understand it.
Maybe this could be turned into some interactive script that explains a little (in beginner-friendly language) what each step does? It would be also nice to have a log of which steps were performed, and instructions for the undo-step in case users want to go back... wishlist.append( ^ ).
[1] https://github.com/Whonix/security-misc
[2] https://forums.whonix.org/t/fixing-the-desktop-linux-securit...