File: tag_linux.txt

package info (click to toggle)
plaso 20201007-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 519,924 kB
  • sloc: python: 79,002; sh: 629; xml: 72; sql: 14; vhdl: 11; makefile: 10
file content (87 lines) | stat: -rw-r--r-- 3,595 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Tags Linux application execution events.
application_execution
  data_type is 'bash:history:command'
  data_type is 'docker:json:layer'
  data_type is 'selinux:line' AND audit_type is 'EXECVE'
  data_type is 'shell:zsh:history'
  data_type is 'syslog:cron:task_run'
  reporter is 'sudo' AND body contains 'COMMAND='

# Tags Linux log-in events.
login
  data_type is 'linux:utmp:event' AND type == 7
  data_type is 'selinux:line' AND audit_type is 'LOGIN'
  reporter is 'login' AND (body contains 'logged in' OR body contains 'ROOT LOGIN' OR body contains 'session opened')
  reporter is 'sshd' AND (body contains 'session opened' OR body contains 'Starting session')
  reporter is 'dovecot' AND body contains 'imap-login: Login:'
  reporter is 'postfix/submission/smtpd' AND body contains 'sasl_'

# Tags Linux failed log-in events.
login_failed
  data_type is 'selinux:line' AND audit_type is 'ANOM_LOGIN_FAILURES'
  data_type is 'selinux:line' AND audit_type is 'USER_LOGIN' AND body contains 'res=failed'
  data_type is 'syslog:line' AND body contains 'pam_tally2'
  (reporter is 'sshd' OR reporter is 'login' OR reporter is 'postfix/submission/smtpd' OR reporter is 'sudo') AND body contains 'uthentication fail'
  reporter is 'sshd' AND (body contains 'Access denied for user' OR body contains 'not allowed because')
  (reporter is 'xscreensaver' or reporter is 'login') AND body contains 'FAILED LOGIN'
  reporter is 'su' and body contains 'DENIED'
  reporter is 'nologin'

# Tags Linux log-out events.
logout
  # This will also flag dead gettys that init kills during shutdown/reboot (at least with SysV init)
  data_type is 'linux:utmp:event' AND type == 8 AND terminal != '' AND pid != 0
  reporter is 'login' AND body contains 'session closed'
  reporter is 'sshd' AND (body contains 'session closed' OR body contains 'Close session')
  reporter is 'systemd-logind' AND body contains 'logged out'
  reporter is 'dovecot' AND body contains 'Logged out'

# Tags Linux user session start events.
session_start
  reporter is 'systemd-logind' AND body contains 'New session'

# Tags Linux user session stop events.
session_stop
  reporter is 'systemd-logind' AND body contains 'Removed session'

# Tags Linux system boot events.
boot
  data_type is 'linux:utmp:event' AND type == 2 AND terminal is 'system boot' AND username is 'reboot'

# Tags Linux system shutdown events.
shutdown
  data_type is 'linux:utmp:event' AND type == 1 AND (terminal is '~~' OR terminal is 'system boot') AND username is 'shutdown'

# Tags Linux system run level change events.
runlevel
  data_type is 'linux:utmp:event' AND type == 1 AND username is 'runlevel'

# Tags Linux device connection events.
device_connection
  reporter is 'kernel' AND body contains 'New USB device found'

# Tags Linux device disconnection events.
device_disconnection
  reporter is 'kernel' AND body contains 'USB disconnect'

# Tags Linux application installation events.
application_install
  data_type is 'dpkg:line' AND body contains 'status installed'

# Tags Linux service start events.
service_start
  data_type is 'selinux:line' AND audit_type is 'SERVICE_START'

# Tags Linux service stop events.
service_stop
  data_type is 'selinux:line' AND audit_type is 'SERVICE_STOP'

# Tags Linux network promiscious mode change events.
promiscuous
  data_type is 'selinux:line' AND audit_type is 'ANOM_PROMISCUOUS'
  reporter is 'kernel' AND body contains 'promiscuous mode'

# Tags Linux system crash events.
crash
  data_type is 'selinux:line' AND audit_type is 'ANOM_ABEND'
  reporter is 'kernel' AND body contains 'segfault'