SV-261329r1186207_rule
V-261329
SRG-OS-000023-GPOS-00006
SLEM-05-255020
CAT II
10
Add or modify the following line in the "/etc/ssh/sshd_config" file:
Banner /etc/ssh/dod_banner
Restart the "sshd.service" to use the new file location:
> sudo systemctl restart sshd.service
Verify SLEM 5 displays the Standard Mandatory DOD Notice and Consent Banner before granting access to the system via SSH with the following command:
> sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH '^\s*banner'
/etc/ssh/sshd_config:Banner /etc/ssh/dod_banner
If "Banner" is commented out or missing, or if the location returned will be overridden by package updates, this is a finding.
Note: The file /etc/issue is overridden by package updates and will not maintain the banner text as it does in other Linux distributions.
V-261329
False
SLEM-05-255020
Verify SLEM 5 displays the Standard Mandatory DOD Notice and Consent Banner before granting access to the system via SSH with the following command:
> sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH '^\s*banner'
/etc/ssh/sshd_config:Banner /etc/ssh/dod_banner
If "Banner" is commented out or missing, or if the location returned will be overridden by package updates, this is a finding.
Note: The file /etc/issue is overridden by package updates and will not maintain the banner text as it does in other Linux distributions.
M
5596