Skip to content

Commit

Permalink
Merge pull request #12735 from ericeberry/u2404_5115
Browse files Browse the repository at this point in the history
Ubuntu 24.04 5.1.15 Ensure sshd MACs are configured
  • Loading branch information
dodys authored Dec 19, 2024
2 parents ff8de8b + 4b69610 commit 7708eb8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions controls/cis_ubuntu2404.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1687,11 +1687,10 @@ controls:
levels:
- l1_server
- l1_workstation
related_rules:
rules:
- sshd_strong_macs=cis_ubuntu2404
- sshd_use_strong_macs
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/5.2.14.
status: automated

- id: 5.1.16
title: Ensure sshd MaxAuthTries is configured (Automated)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# platform = multi_platform_fedora,multi_platform_ol,multi_platform_rhel
# platform = multi_platform_fedora,multi_platform_ol,multi_platform_rhel,multi_platform_ubuntu

sed -i 's/^\s*MACs\s.*//i' /etc/ssh/sshd_config
echo "MACs hmac-sha2-512" >> /etc/ssh/sshd_config
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# platform = multi_platform_fedora,multi_platform_ol,multi_platform_rhel
# platform = multi_platform_fedora,multi_platform_ol,multi_platform_rhel,multi_platform_ubuntu

sed -i 's/^\s*MACs\s/# &/i' /etc/ssh/sshd_config
1 change: 1 addition & 0 deletions linux_os/guide/services/ssh/sshd_strong_macs.var
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ options:
cis_sle12: [email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256,hmac-ripemd160
cis_sle15: [email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256
cis_ubuntu2204: [email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256
cis_ubuntu2404: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1

0 comments on commit 7708eb8

Please sign in to comment.