Signal9Signal9 — home
online
back to labs

STIG Baseline Hardening

HardLinux Security30-45 min
The brief

You're deploying this server into an environment that requires a DISA-STIG-style security baseline before it can go live. Harden it against five controls: disable direct root SSH, present an authorized-use warning banner (an 'authorized use' notice in /etc/issue.net that sshd serves via its Banner directive), enforce a maximum password age of 60 days or less (the Ubuntu 22.04 STIG limit), lock down /etc/shadow permissions (0640 or stricter), and disable IP forwarding via sysctl. Grading inspects the actual system configuration, the way a compliance scanner (SCAP/OpenSCAP) would — pass all five to certify the baseline.

What you'll do
  • SSH: disable direct root login
  • SSH: configure an authorized-use warning banner
  • Accounts: maximum password age of 60 days or less
  • Files: restrict /etc/shadow to mode 640
  • Kernel: disable IPv4 forwarding via a sysctl drop-in

Hands-on lab: you work on a real Linux box in your browser, graded on the machine's actual state.