Encrypt Backups Properly With OpenSSL
/home/student/backup/encrypt.sh FILE encrypts database dumps before they're uploaded. OpenSSL prints *** WARNING : deprecated key derivation used, and anyone running ps during a backup can see the password.
The operations runbook documents how to restore:
openssl enc -d -aes-256-cbc -pbkdf2 -iter 200000 -pass file:/home/student/.backup-pass -in FILE.enc -out FILE
encrypt.sh FILE so it writes FILE.enc, which that exact runbook command decrypts: AES-256-CBC, PBKDF2 with 200000 iterations, a random salt. It reads the password from /home/student/.backup-pass without putting it on any command line, and leaves FILE unchanged./home/student/backup/decrypt.sh FILE.enc OUT that restores OUT the same way.About this machine
Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.
Teaching or writing about this? Embed this lab on your page
Your machine is ready to start
A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.
No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.