SV-281127r1208796_rule
V-281127
SRG-OS-000037-GPOS-00015
RHEL-10-500410
CAT II
10
Configure RHEL 10 to generate audit records upon successful and unsuccessful use of the "init_module" and "finit_module" system calls by adding or updating the following rules in the "/etc/audit/rules.d/audit.rules" file:
-a always,exit -F arch=b32 -S init_module,finit_module -F auid>=1000 -F auid!=unset -k module_chng
-a always,exit -F arch=b64 -S init_module,finit_module -F auid>=1000 -F auid!=unset -k module_chng
Restart the audit daemon with the following command for the changes to take effect:
$ sudo service auditd restart
Verify RHEL 10 is configured to audit the execution of the "init_module" and "finit_module" syscalls with the following command:
$ sudo auditctl -l | grep init_module
-a always,exit -F arch=b32 -S init_module,finit_module -F auid>=1000 -F auid!=unset -k module_chng
-a always,exit -F arch=b64 -S init_module,finit_module -F auid>=1000 -F auid!=unset -k module_chng
If both the "b32" and "b64" audit rules are not defined for the "init_module" and "finit_module" system calls, or any of the lines returned are commented out, this is a finding.
V-281127
False
RHEL-10-500410
Verify RHEL 10 is configured to audit the execution of the "init_module" and "finit_module" syscalls with the following command:
$ sudo auditctl -l | grep init_module
-a always,exit -F arch=b32 -S init_module,finit_module -F auid>=1000 -F auid!=unset -k module_chng
-a always,exit -F arch=b64 -S init_module,finit_module -F auid>=1000 -F auid!=unset -k module_chng
If both the "b32" and "b64" audit rules are not defined for the "init_module" and "finit_module" system calls, or any of the lines returned are commented out, this is a finding.
M
5733