GWL Audit Rules
GWL Audit Rules
cat /etc/audit.rules
# This file contains the auditctl rules that are loaded
# whenever the audit daemon is started via the initscripts.
# The rules are simply the parameters that would be passed
# to auditctl.
# Feel free to add below this line. See auditctl man page
# File Deletion
-a always,exit -F arch=b64 -S rmdir -S unlink -S unlinkat -S rename -S renameat -F
auid>=1000 -F auid!=4294967295 -k file_del
-a always,exit -F arch=b32 -S rmdir -S unlink -S unlinkat -S rename -S renameat -F
auid>=1000 -F auid!=4294967295 -k file_del
# Login/Logout Events
-w /var/log/faillog -p wa -k clear_logins
-w /var/log/lastlog -p wa -k clear_logins
-w /var/log/tallylog -p wa -k clear_logins
# Sessions Information
-w /var/run/utmp -p wa -k session_log
-w /var/log/btmp -p wa -k session_log
-w /var/log/wtmp -p wa -k session_log
# Monitor FS mounts
-a always,exit -F arch=b64 -S mount -F auid>=1000 -F auid!=4294967295 -k fs_export
-a always,exit -F arch=b32 -S mount -F auid>=1000 -F auid!=4294967295 -k fs_export
# MAC Modification
-w /etc/selinux/ -p wa -k MAC_policy