SV-233776r610901_rule
V-233776
SRG-OS-000033-GPOS-00014
AOSX-15-000054
CAT II
10
Configure SSH to use secure cryptographic algorithms.
To ensure that "Ciphers" set correctly, run the following command:
/usr/bin/sudo /usr/bin/grep -q '^Ciphers' /etc/ssh/sshd_config && /usr/bin/sudo /usr/bin/sed -i.bak 's/^Ciphers.*/Ciphers aes256-ctr,aes192-ctr,aes128-ctr/' /etc/ssh/sshd_config || /usr/bin/sudo /usr/bin/sed -i.bak '/.*Ciphers and keying.*/a\'$'\n''Ciphers aes256-ctr,aes192-ctr,aes128-ctr'$'\n' /etc/ssh/sshd_config
The SSH service must be restarted for changes to take effect.
If SSH is not being used, this is Not Applicable.
Inspect the "Ciphers" configuration with the following command:
Note: The location of the "sshd_config" file may vary if a different daemon is in use.
# /usr/bin/grep "^Ciphers" /etc/ssh/sshd_config
Ciphers aes256-ctr,aes192-ctr,aes128-ctr
If any ciphers other than "aes256-ctr", "aes192-ctr", or "aes128-ctr" are listed, the order differs from the example above, or the "Ciphers" keyword is missing, this is a finding.
V-233776
False
AOSX-15-000054
If SSH is not being used, this is Not Applicable.
Inspect the "Ciphers" configuration with the following command:
Note: The location of the "sshd_config" file may vary if a different daemon is in use.
# /usr/bin/grep "^Ciphers" /etc/ssh/sshd_config
Ciphers aes256-ctr,aes192-ctr,aes128-ctr
If any ciphers other than "aes256-ctr", "aes192-ctr", or "aes128-ctr" are listed, the order differs from the example above, or the "Ciphers" keyword is missing, this is a finding.
M
4212