Skip to content

Commit

Permalink
Add new rule file_sshd_50_redhat_exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Mab879 committed Oct 29, 2024
1 parent a67b47c commit a7e846c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/openssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ rules:
- file_permissions_sshd_config
- file_permissions_sshd_private_key
- file_permissions_sshd_pub_key
- file_sshd_50_redhat_exists
- firewalld_sshd_disabled
- firewalld_sshd_port_enabled
- iptables_sshd_disabled
Expand Down
3 changes: 2 additions & 1 deletion controls/stig_rhel9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1847,7 +1847,8 @@ controls:
- medium
title: RHEL 9 SSH daemon must be configured to use system-wide crypto policies.
rules:
- harden_sshd_ciphers_opensshserver_conf_crypto_polic
- harden_sshd_ciphers_opensshserver_conf_crypto_policy
- file_sshd_50_redhat_exists
status: automated

- id: RHEL-09-255060
Expand Down
28 changes: 28 additions & 0 deletions linux_os/guide/services/ssh/file_sshd_50_redhat_exists/rule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
documentation_complete: true

title: 'The File /etc/ssh/sshd_config.d/50-redhat.conf Must Exist'

description: |-
The <tt>/etc/ssh/sshd_config.d/50-redhat.conf</tt> file must exist as it contains important
settings to secure SSH.
rationale: |-
The file must exist to configure SSH correctly.
severity: medium

warnings:
- general:
There is no remediation available for this rule since this file
needs to have the correct content for the given system.


template:
name: 'file_existence'
vars:
filepath: '/etc/ssh/sshd_config.d/50-redhat.conf'
exists: true
backends:
ansible: off
bash: off

0 comments on commit a7e846c

Please sign in to comment.