-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5010 from matejak/fix_sshd_ciphers_macs
Fix RHEL7 rules sshd_use_strong_macs and sshd_use_strong_ciphers.
- Loading branch information
Showing
8 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
linux_os/guide/services/ssh/ssh_server/sshd_use_strong_ciphers/bash/shared.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# platform = multi_platform_all | ||
|
||
{{{ bash_sshd_config_set(parameter="Ciphers", value="aes128-ctr,aes192-ctr,aes256-ctr,chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com") }}} |
2 changes: 1 addition & 1 deletion
2
linux_os/guide/services/ssh/ssh_server/sshd_use_strong_ciphers/oval/shared.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{{{ oval_sshd_config(parameter="Ciphers", value="((chacha20-poly1305@openssh\.com|aes256-gcm@openssh\.com|aes128-gcm@openssh\.com|aes256-ctr|aes128-ctr),?)") }}} | ||
{{{ oval_sshd_config(parameter="Ciphers", value="((aes128-ctr|aes192-ctr|aes256-ctr|chacha20-poly1305@openssh\.com|aes256-gcm@openssh\.com|aes128-gcm@openssh\.com),?)+") }}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
linux_os/guide/services/ssh/ssh_server/sshd_use_strong_ciphers/tests/good_cipher.pass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# platform = multi_platform_rhel,multi_platform_fedora | ||
# profiles = e8 | ||
|
||
sed -i 's/^\s*Ciphers\s.*//i' /etc/ssh/sshd_config | ||
echo "Ciphers aes256-ctr" >> /etc/ssh/sshd_config | ||
|
4 changes: 4 additions & 0 deletions
4
linux_os/guide/services/ssh/ssh_server/sshd_use_strong_ciphers/tests/no_ciphers.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# platform = multi_platform_rhel,multi_platform_fedora | ||
# profiles = e8 | ||
|
||
sed -i 's/^\s*Ciphers\s/# &/i' /etc/ssh/sshd_config |
4 changes: 4 additions & 0 deletions
4
linux_os/guide/services/ssh/ssh_server/sshd_use_strong_macs/bash/shared.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# platform = multi_platform_all | ||
|
||
{{{ bash_sshd_config_set(parameter="MACs", value="hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160") }}} | ||
|
6 changes: 6 additions & 0 deletions
6
linux_os/guide/services/ssh/ssh_server/sshd_use_strong_macs/tests/good_mac.pass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# platform = multi_platform_rhel,multi_platform_fedora | ||
# profiles = e8 | ||
|
||
sed -i 's/^\s*MACs\s.*//i' /etc/ssh/sshd_config | ||
echo "MACs hmac-sha2-512" >> /etc/ssh/sshd_config | ||
|
4 changes: 4 additions & 0 deletions
4
linux_os/guide/services/ssh/ssh_server/sshd_use_strong_macs/tests/no_macs.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# platform = multi_platform_rhel,multi_platform_fedora | ||
# profiles = e8 | ||
|
||
sed -i 's/^\s*MACs\s/# &/i' /etc/ssh/sshd_config |