SV-274092r1120264_rule
V-274092
SRG-OS-000037-GPOS-00015
AZLX-23-002140
CAT II
10
Configure Amazon Linux 2023 to generate audit records when successful/unsuccessful attempts to use the "create_module" syscall occur.
Add or update the following rule in "/etc/audit/rules.d/audit.rules":
-a always,exit -F arch=b64 -S create_module -F auid>=1000 -F auid!=unset -k module-change
To load the rule to the kernel immediately, use the following command:
$ sudo augenrules --load
Verify Amazon Linux 2023 generates audit records when successful/unsuccessful attempts to use the "create_module" syscall occur with the following command:
$ sudo auditctl -l | grep "create_module"
-a always,exit -F arch=b64 -S create_module -F auid>=1000 -F auid!=-1 -F key=module-change
If audit rule is not defined for the "create_module" syscall, this is a finding.
V-274092
False
AZLX-23-002140
Verify Amazon Linux 2023 generates audit records when successful/unsuccessful attempts to use the "create_module" syscall occur with the following command:
$ sudo auditctl -l | grep "create_module"
-a always,exit -F arch=b64 -S create_module -F auid>=1000 -F auid!=-1 -F key=module-change
If audit rule is not defined for the "create_module" syscall, this is a finding.
M
5700