SV-100501r1_rule
V-89851
SRG-OS-000474-GPOS-00219
VRAU-SL-001465
CAT II
10
Add the following to "/etc/audit/audit.rules" in order to capture file and directory deletion events:
-a always,exit -F arch=b64 -S rmdir -S rm
-a always,exit -F arch=b32 -S rmdir -S rm
Check the system audit configuration to determine if file and directory deletions are audited:
# cat /etc/audit.rules /etc/audit/audit.rules | grep -e "-a exit,always" | grep -i "rmdir"
If no results are returned, or the results do not contain "-S rmdir", this is a finding.
V-89851
False
VRAU-SL-001465
Check the system audit configuration to determine if file and directory deletions are audited:
# cat /etc/audit.rules /etc/audit/audit.rules | grep -e "-a exit,always" | grep -i "rmdir"
If no results are returned, or the results do not contain "-S rmdir", this is a finding.
M
3459