SV-282385r1200135_rule
V-282385
SRG-OS-000033-GPOS-00014
TOSS-05-000247
CAT II
10
Configure TOSS 5 to force a frequent session key renegotiation for SSH connections to the server by adding or modifying the following line in the "/etc/ssh/sshd_config" file:
RekeyLimit 1G 1h
Restart the SSH daemon for the settings to take effect.
$ sudo systemctl restart sshd.service
Verify the SSH server is configured to force frequent session key renegotiation using the following command:
$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH '^\s*rekeylimit'
RekeyLimit 1G 1h
If "RekeyLimit" does not have a maximum data amount and maximum time defined, is missing, or is commented out, this is a finding.
V-282385
False
TOSS-05-000247
Verify the SSH server is configured to force frequent session key renegotiation using the following command:
$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH '^\s*rekeylimit'
RekeyLimit 1G 1h
If "RekeyLimit" does not have a maximum data amount and maximum time defined, is missing, or is commented out, this is a finding.
M
5738