SV-269491r1050374_rule
V-269491
SRG-OS-000037-GPOS-00015
ALMA-09-049850
CAT II
10
Configure AlmaLinux OS 9 to generate audit records upon successful/unsuccessful attempts to use the "su" command.
Add the following to the "/etc/audit/rules.d/audit.rules" file:
-a always,exit -S all -F path=/usr/bin/su -F perm=x -F auid>=1000 -F auid!=unset -F key=privileged-priv_change
Merge the rules into /etc/audit/audit.rules:
$ augenrules --load
Verify that AlmaLinux OS 9 is configured to audit the execution of the "su" command with the following command:
$ grep -w path=/usr/bin/su /etc/audit/audit.rules
-a always,exit -S all -F path=/usr/bin/su -F perm=x -F auid>=1000 -F auid!=unset -F key=privileged-priv_change
If the command does not return a matching line, this is a finding.
V-269491
False
ALMA-09-049850
Verify that AlmaLinux OS 9 is configured to audit the execution of the "su" command with the following command:
$ grep -w path=/usr/bin/su /etc/audit/audit.rules
-a always,exit -S all -F path=/usr/bin/su -F perm=x -F auid>=1000 -F auid!=unset -F key=privileged-priv_change
If the command does not return a matching line, this is a finding.
M
5664