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