SV-99393r1_rule
V-88743
SRG-OS-000474-GPOS-00219
VROM-SL-001435
CAT II
10
Edit the audit.rules file and add the following line(s) to enable auditing of deletions of files and programs:
-a always,exit -F arch=b64 -S unlink -S unlinkat -S rename -S renameat -F auid=0
-a always,exit -F arch=b64 -S unlink -S unlinkat -S rename -S renameat -F auid>=500 -F auid!=4294967295
-a always,exit -F arch=b32 -S unlink -S unlinkat -S rename -S renameat -F auid=0
-a always,exit -F arch=b32 -S unlink -S unlinkat -S rename -S renameat -F auid>=500 -F auid!=4294967295
To determine if SLES for vRealize is configured to audit calls to the "unlink" system call, run the following command:
# auditctl -l | grep syscall | grep unlink | grep -v unlinkat
If the system is configured to audit this activity, it will return several lines. To determine if the system is configured to audit calls to the "unlinkat" system call, run the following command:
# auditctl -l | grep syscall | grep unlinkat
If the system is configured to audit this activity, it will return several lines. To determine if the system is configured to audit calls to the "rename" system call, run the following command:
# auditctl -l | grep syscall | grep rename | grep -v renameat
If the system is configured to audit this activity, it will return several lines. To determine if the system is configured to audit calls to the "renameat" system call, run the following command:
# auditctl -l | grep syscall | grep renameat
If the system is configured to audit this activity, it will return several lines. If no line is returned, this is a finding.
V-88743
False
VROM-SL-001435
To determine if SLES for vRealize is configured to audit calls to the "unlink" system call, run the following command:
# auditctl -l | grep syscall | grep unlink | grep -v unlinkat
If the system is configured to audit this activity, it will return several lines. To determine if the system is configured to audit calls to the "unlinkat" system call, run the following command:
# auditctl -l | grep syscall | grep unlinkat
If the system is configured to audit this activity, it will return several lines. To determine if the system is configured to audit calls to the "rename" system call, run the following command:
# auditctl -l | grep syscall | grep rename | grep -v renameat
If the system is configured to audit this activity, it will return several lines. To determine if the system is configured to audit calls to the "renameat" system call, run the following command:
# auditctl -l | grep syscall | grep renameat
If the system is configured to audit this activity, it will return several lines. If no line is returned, this is a finding.
M
3461