5.11.22021-02-01T08:07:06+01:00PASSpassoval:org.openscap.www:var:1100accepted1.0Common hardening profileThis is a very cool profileRule 1: Enable Audit Service
service enable auditd
Rule 2: Install rsyslog package
package install rsyslog
Rule 3: Enable Rsyslog Service
# this command should end up in the command section
service enable rsyslog
Rule 4: Remove USBGuard
package remove usbguard
Rule 5: Install and enable SSHD
# openssh-server will go to %packages section
package install openssh-server
# the service commands will end up in the command section
service enable sshd
service disable telnet
Rule 6: Configure all partitions
logvol /var/tmp 1024
Rule 7: Bootloader
bootloader quick
bootloader audit=1
Rule 8: Extra nochroot %post section
%post --nochroot
mkdir -p /etc/ddfds
%end
Rule 9: Crazy remediation
%post --nochroot
mkdir -p /etc/abcd
%end
service disable httpd
# other post section
%post
rm -rf /etc/xyz
# create a new path
feel /etc/xyz
%end
package install podman
kdump disable
Rule 10: Firewall
firewall enable sshd
firewall disable httpd