auditing:list_auditd_rules
Differences
This shows you the differences between two versions of the page.
auditing:list_auditd_rules [2016/07/16 08:57] – created peter | auditing:list_auditd_rules [2019/11/26 20:10] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Auditing - List auditd rules ====== | ||
- | |||
- | The first time that auditd is installed there will be no rules available yet. | ||
- | |||
- | Check what audit rules are set: | ||
- | |||
- | <code bash> | ||
- | sudo auditctl -l | ||
- | </ | ||
- | |||
- | Result: | ||
- | |||
- | If no rules were set: | ||
- | |||
- | < | ||
- | No rules | ||
- | </ | ||
- | |||
- | otherwise, something like this: | ||
- | |||
- | < | ||
- | -a always,exit -F arch=b64 -S mknod, | ||
- | -a always,exit -F arch=b64 -S mount, | ||
- | -a always,exit -F arch=b64 -S adjtimex, | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w /etc/group -p wa -k etcgroup | ||
- | -w /etc/passwd -p wa -k etcpasswd | ||
- | -w / | ||
- | -w /etc/shadow -p rwxa -k etcpasswd | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w /etc/hosts -p wa -k hosts | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w /etc/init/ -p wa -k init | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w /etc/pam.d/ -p wa -k pam | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -a always,exit -F arch=b64 -S sethostname -F key=hostname | ||
- | -w /etc/issue -p wa -k etcissue | ||
- | -w / | ||
- | -a always,exit -F arch=b64 -S execve -F euid=0 -F key=rootcmd | ||
- | -a always,exit -F arch=b64 -S open -F dir=/etc -F success=0 -F key=unauthedfileacess | ||
- | -a always,exit -F arch=b64 -S open -F dir=/bin -F success=0 -F key=unauthedfileacess | ||
- | -a always,exit -F arch=b64 -S open -F dir=/sbin -F success=0 -F key=unauthedfileacess | ||
- | -a always,exit -F arch=b64 -S open -F dir=/ | ||
- | -a always,exit -F arch=b64 -S open -F dir=/ | ||
- | -a always,exit -F arch=b64 -S open -F dir=/var -F success=0 -F key=unauthedfileacess | ||
- | -a always,exit -F arch=b64 -S open -F dir=/home -F success=0 -F key=unauthedfileacess | ||
- | -a always,exit -F arch=b64 -S open -F dir=/srv -F success=0 -F key=unauthedfileacess | ||
- | -w /bin/su -p x -k priv_esc | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w / | ||
- | -w /sbin/halt -p x -k power | ||
- | </ | ||
- | |||
- | |||
auditing/list_auditd_rules.1468659443.txt.gz · Last modified: 2020/07/15 09:30 (external edit)