Ivan Suzdal | 50a360f | 2018-06-04 16:07:41 +0400 | [diff] [blame] | 1 | applications: |
| 2 | - auditd |
| 3 | classes: |
| 4 | - service.auditd.support |
| 5 | parameters: |
| 6 | auditd: |
| 7 | rules: |
| 8 | options: |
Ivan Suzdal | 91e0245 | 2018-06-20 12:33:16 +0400 | [diff] [blame^] | 9 | enabled: 2 |
Ivan Suzdal | 50a360f | 2018-06-04 16:07:41 +0400 | [diff] [blame] | 10 | bufsize: 8192 |
| 11 | rules: |
| 12 | MAC_policy: |
| 13 | enabled: true |
| 14 | rule_list: |
| 15 | - '-w /etc/apparmor/ -p wa' |
| 16 | - '-w /etc/apparmor.d/ -p wa' |
| 17 | access: |
| 18 | enabled: true |
| 19 | rule_list: |
| 20 | - '-a always,exit -F arch=b64 -S creat -S open -S openat -S truncate -S ftruncate -F exit=-EACCES -F auid>=1000 -F auid!=4294967295' |
| 21 | - '-a always,exit -F arch=b32 -S creat -S open -S openat -S truncate -S ftruncate -F exit=-EACCES -F auid>=1000 -F auid!=4294967295' |
| 22 | - '-a always,exit -F arch=b64 -S creat -S open -S openat -S truncate -S ftruncate -F exit=-EPERM -F auid>=1000 -F auid!=4294967295' |
| 23 | - '-a always,exit -F arch=b32 -S creat -S open -S openat -S truncate -S ftruncate -F exit=-EPERM -F auid>=1000 -F auid!=4294967295' |
| 24 | actions: |
| 25 | enabled: true |
| 26 | rule_list: |
| 27 | - '-w /var/log/sudo.log -p wa' |
| 28 | delete: |
| 29 | enabled: true |
| 30 | rule_list: |
| 31 | - '-a always,exit -F arch=b64 -S unlink -S unlinkat -S rename -S renameat -F auid>=1000 -F auid!=4294967295' |
| 32 | - '-a always,exit -F arch=b32 -S unlink -S unlinkat -S rename -S renameat -F auid>=1000 -F auid!=4294967295' |
| 33 | identity: |
| 34 | enabled: true |
| 35 | rule_list: |
| 36 | - '-w /etc/group -p wa' |
| 37 | - '-w /etc/passwd -p wa' |
| 38 | - '-w /etc/gshadow -p wa' |
| 39 | - '-w /etc/shadow -p wa' |
| 40 | - '-w /etc/security/opasswd -p wa' |
| 41 | logins: |
| 42 | enabled: true |
| 43 | rule_list: |
| 44 | - '-w /var/log/faillog -p wa' |
| 45 | - '-w /var/log/lastlog -p wa' |
| 46 | - '-w /var/log/tallylog -p wa' |
| 47 | modules: |
| 48 | enabled: true |
| 49 | rule_list: |
| 50 | - '-w /sbin/insmod -p x' |
| 51 | - '-w /sbin/rmmod -p x' |
| 52 | - '-w /sbin/modprobe -p x' |
| 53 | - '-a always,exit -F arch=b64 -S init_module -S delete_module' |
| 54 | mounts: |
| 55 | enabled: true |
| 56 | rule_list: |
| 57 | - '-a always,exit -F arch=b64 -S mount -F auid>=1000 -F auid!=4294967295' |
| 58 | - '-a always,exit -F arch=b32 -S mount -F auid>=1000 -F auid!=4294967295' |
| 59 | perm_mod: |
| 60 | enabled: true |
| 61 | rule_list: |
| 62 | - '-a always,exit -F arch=b64 -S chmod -S fchmod -S fchmodat -F auid>=1000 -F auid!=4294967295' |
| 63 | - '-a always,exit -F arch=b32 -S chmod -S fchmod -S fchmodat -F auid>=1000 -F auid!=4294967295' |
| 64 | - '-a always,exit -F arch=b64 -S chown -S fchown -S fchownat -S lchown -F auid>=1000 -F auid!=4294967295' |
| 65 | - '-a always,exit -F arch=b32 -S chown -S fchown -S fchownat -S lchown -F auid>=1000 -F auid!=4294967295' |
| 66 | - '-a always,exit -F arch=b64 -S setxattr -S lsetxattr -S fsetxattr -S removexattr -S lremovexattr -S fremovexattr -F auid>=1000 -F auid!=4294967295' |
| 67 | - '-a always,exit -F arch=b32 -S setxattr -S lsetxattr -S fsetxattr -S removexattr -S lremovexattr -S fremovexattr -F auid>=1000 -F auid!=4294967295' |
| 68 | privileged: |
| 69 | enabled: true |
Ivan Suzdal | 50a360f | 2018-06-04 16:07:41 +0400 | [diff] [blame] | 70 | scope: |
| 71 | enabled: true |
| 72 | rule_list: |
| 73 | - '-w /etc/sudoers -p wa' |
| 74 | - '-w /etc/sudoers.d -p wa' |
| 75 | session: |
| 76 | enabled: true |
| 77 | rule_list: |
| 78 | - '-w /var/run/utmp -p wa' |
| 79 | - '-w /var/log/wtmp -p wa' |
| 80 | - '-w /var/log/btmp -p wa' |
| 81 | system_locale: |
| 82 | enabled: true |
| 83 | rule_list: |
| 84 | - '-a always,exit -F arch=b64 -S sethostname -S setdomainname' |
| 85 | - '-a always,exit -F arch=b32 -S sethostname -S setdomainname' |
| 86 | - '-w /etc/issue -p wa' |
| 87 | - '-w /etc/issue.net -p wa' |
| 88 | - '-w /etc/hosts -p wa' |
| 89 | - '-w /etc/network -p wa' |
| 90 | - '-w /etc/networks -p wa' |
| 91 | time_change: |
| 92 | enabled: true |
| 93 | rule_list: |
| 94 | - '-a always,exit -F arch=b64 -S adjtimex -S settimeofday' |
| 95 | - '-a always,exit -F arch=b32 -S adjtimex -S settimeofday -S stime' |
| 96 | - '-a always,exit -F arch=b64 -S clock_settime' |
| 97 | - '-a always,exit -F arch=b32 -S clock_settime' |
| 98 | - '-w /etc/localtime -p wa' |