Rule ID
SV-45303r1_rule
Version
V1R12
CCIs
If the system is not configured to audit certain activities and write them to an audit log, it is more difficult to detect and track system compromises and damages incurred during a system compromise.
Check the system audit configuration to determine if file and directory deletions are audited. # cat /etc/audit/audit.rules | grep -e "-a exit,always" | grep -i "unlink" If no results are returned, or the results do not contain "-S unlink", this is a finding.
Edit the audit.rules file and add the following line to enable auditing of deletions:
-a exit,always -S unlink
Restart the auditd service.
# rcauditd restart
OR# service auditd restart