SV-230415r627750_rule
V-230415
SRG-OS-000062-GPOS-00031
RHEL-08-030220
CAT II
10
Configure RHEL 8 to audit the execution of the "lsetxattr" system call, by adding or updating the following lines to "/etc/audit/rules.d/audit.rules":
-a always,exit -F arch=b32 -S lsetxattr -F auid>=1000 -F auid!=unset -k perm_mod
-a always,exit -F arch=b64 -S lsetxattr -F auid>=1000 -F auid!=unset -k perm_mod
-a always,exit -F arch=b32 -S lsetxattr -F auid=0 -k perm_mod
-a always,exit -F arch=b64 -S lsetxattr -F auid=0 -k perm_mod
The audit daemon must be restarted for the changes to take effect.
Verify if RHEL 8 is configured to audit the execution of the "lsetxattr" system call, by running the following command:
$ sudo grep -w lsetxattr /etc/audit/audit.rules
-a always,exit -F arch=b32 -S lsetxattr -F auid>=1000 -F auid!=unset -k perm_mod
-a always,exit -F arch=b64 -S lsetxattr -F auid>=1000 -F auid!=unset -k perm_mod
-a always,exit -F arch=b32 -S lsetxattr -F auid=0 -k perm_mod
-a always,exit -F arch=b64 -S lsetxattr -F auid=0 -k perm_mod
If the command does not return all lines, or the lines are commented out, this is a finding.
V-230415
False
RHEL-08-030220
Verify if RHEL 8 is configured to audit the execution of the "lsetxattr" system call, by running the following command:
$ sudo grep -w lsetxattr /etc/audit/audit.rules
-a always,exit -F arch=b32 -S lsetxattr -F auid>=1000 -F auid!=unset -k perm_mod
-a always,exit -F arch=b64 -S lsetxattr -F auid>=1000 -F auid!=unset -k perm_mod
-a always,exit -F arch=b32 -S lsetxattr -F auid=0 -k perm_mod
-a always,exit -F arch=b64 -S lsetxattr -F auid=0 -k perm_mod
If the command does not return all lines, or the lines are commented out, this is a finding.
M
2921