SV-269461r1050344_rule
V-269461
SRG-OS-000477-GPOS-00222
ALMA-09-046000
CAT II
10
Configure AlmaLinux OS 9 to generate audit records upon successful/unsuccessful attempts to use the "init" command.
Add the following lines to the "/etc/audit/rules.d/audit.rules" file:
-a always,exit -F path=/usr/sbin/init -F perm=x -F auid>=1000 -F auid!=unset -k privileged-init
Merge the rules into /etc/audit/audit.rules:
$ augenrules --load
Verify that AlmaLinux OS 9 is configured to audit the execution of the "init" command with the following command:
$ auditctl -l | grep init
-a always,exit -S all -F path=/usr/sbin/init -F perm=x -F auid>=1000 -F auid!=unset -F key=privileged-init
If the command does not return a line, or the line is commented out, this is a finding.
V-269461
False
ALMA-09-046000
Verify that AlmaLinux OS 9 is configured to audit the execution of the "init" command with the following command:
$ auditctl -l | grep init
-a always,exit -S all -F path=/usr/sbin/init -F perm=x -F auid>=1000 -F auid!=unset -F key=privileged-init
If the command does not return a line, or the line is commented out, this is a finding.
M
5664