SV-274086r1120246_rule
V-274086
SRG-OS-000326-GPOS-00126
AZLX-23-002110
CAT II
10
Configure Amazon Linux 2023 to audit the execution of the "execve" system call.
Add or update the following file system rules to "/etc/audit/rules.d/audit.rules":
-a always,exit -F arch=b64 -S execve -C uid!=euid -F euid=0 -k execpriv
-a always,exit -F arch=b64 -S execve -C gid!=egid -F egid=0 -k execpriv
To load the rules to the kernel immediately, use the following command:
$ sudo augenrules --load
Verify Amazon Linux 2023 is configured to audit the execution of the "execve" system call with the following command:
$ sudo auditctl -l | grep execve
-a always,exit -F arch=b64 -S execve -C uid!=euid -F euid=0 -k execpriv
-a always,exit -F arch=b64 -S execve -C gid!=egid -F egid=0 -k execpriv
If the command does not return all lines, or the lines are commented out, this is a finding.
V-274086
False
AZLX-23-002110
Verify Amazon Linux 2023 is configured to audit the execution of the "execve" system call with the following command:
$ sudo auditctl -l | grep execve
-a always,exit -F arch=b64 -S execve -C uid!=euid -F euid=0 -k execpriv
-a always,exit -F arch=b64 -S execve -C gid!=egid -F egid=0 -k execpriv
If the command does not return all lines, or the lines are commented out, this is a finding.
M
5700