richardphilipsroy

Auditbeat configuration

Jun 3rd, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.15 KB | None | 0 0
  1. auditbeat.modules:
  2. - module: auditd
  3.   metricsets: [kernel]
  4.   kernel.audit_rules: |
  5.    # Define audit rules here.
  6.     # Create file watches (-w) or syscall audits (-a or -A). For example:
  7.     #-w /etc/passwd -p wa -k identity
  8.     #-a always,exit -F arch=b32 -S open,creat,truncate,ftruncate,openat,open_by_handle_at -F exit=-EPERM -k access
  9.      ## Kernel Related Events
  10.     -w /etc/sysctl.conf -p wa -k sysctl
  11.     -a always,exit -F perm=x -F auid!=-1 -F path=/sbin/insmod -k T1215_Kernel_Modules_and_Extensions
  12.     -a always,exit -F perm=x -F auid!=-1 -F path=/sbin/modprobe -k T1215_Kernel_Modules_and_Extensions
  13.     -a always,exit -F perm=x -F auid!=-1 -F path=/sbin/rmmod -k T1215_Kernel_Modules_and_Extensions
  14.     -a always,exit -F arch=b64 -S finit_module -S init_module -S delete_module -F auid!=-1 -k T1215_Kernel_Modules_and_Extensions
  15.     -a always,exit -F arch=b32 -S finit_module -S init_module -S delete_module -F auid!=-1 -k T1215_Kernel_Modules_and_Extensions
  16.     -w /etc/modprobe.conf -p wa -k T1215_Kernel_Modules_and_Extensions
  17. - module: audit
  18.   metricsets: [file]
  19.   file.paths:
  20.  - /bin
  21.   - /usr/bin
  22.   - /sbin
  23.   - /usr/sbin
  24.   - /etc
Add Comment
Please, Sign In to add comment