SV-274091r1120261_rule
V-274091
SRG-OS-000037-GPOS-00015
AZLX-23-002135
CAT II
10
Configure Amazon Linux 2023 to generate an audit event for any successful/unsuccessful use of the "init_module" and "finit_module" system calls by adding or updating the following rule in the "/etc/audit/rules.d/audit.rules" file:
-a always,exit -F arch=b64 -S init_module,finit_module -F auid>=1000 -F auid!=unset -k module_chng
To load the rule to the kernel immediately, use the following command:
$ sudo augenrules --load
Verify Amazon Linux 2023 is configured to audit the execution of the "init_module" and "finit_module" system calls with the following command:
$ sudo auditctl -l | grep init_module
-a always,exit -F arch=b64 -S init_module,finit_module -F auid>=1000 -F auid!=unset -k module_chng
If audit rule is not defined for the "delete_module" system call, or the line returned is commented out, this is a finding.
V-274091
False
AZLX-23-002135
Verify Amazon Linux 2023 is configured to audit the execution of the "init_module" and "finit_module" system calls with the following command:
$ sudo auditctl -l | grep init_module
-a always,exit -F arch=b64 -S init_module,finit_module -F auid>=1000 -F auid!=unset -k module_chng
If audit rule is not defined for the "delete_module" system call, or the line returned is commented out, this is a finding.
M
5700