-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsysmon_linux.xml
More file actions
98 lines (92 loc) · 5.65 KB
/
sysmon_linux.xml
File metadata and controls
98 lines (92 loc) · 5.65 KB
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
88
89
90
91
92
93
94
95
96
97
98
<!--
SysmonForLinux
Copyright (c) Microsoft Corporation
All rights reserved.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without
restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom th
e Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISI
NG FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->
<Sysmon schemaversion="4.81">
<EventFiltering>
<!-- Event ID 1 == ProcessCreate. Log all newly created processes -->
<RuleGroup name="" groupRelation="or">
<ProcessCreate onmatch="exclude">
<CommandLine condition="is">/bin/sh /usr/share/kali-themes/xfce4-panel-genmon-vpnip.sh</CommandLine>
<CommandLine condition="is">cut -d : -f1</CommandLine>
<CommandLine condition="is">grep -o -P (?<=inet )[0-9]{1,3}(\.[0-9]{1,3}){3}</CommandLine>
<CommandLine condition="is">head -n 1</CommandLine>
<CommandLine condition="is">ip a s </CommandLine>
<CommandLine condition="is">ip tuntap show</CommandLine>
<CommandLine condition="is">tr [:upper:] [:lower:]</CommandLine>
<CommandLine condition="is">sed s/:/ /g</CommandLine>
<CommandLine condition="is">tr [:lower:] [:upper:]</CommandLine>
<CommandLine condition="is">getopt --name lsb_release -o hvidrcas -l help,version,id,description,release,codename,all,short --</CommandLine>
<CommandLine condition="is">cut -c2-</CommandLine>
<CommandLine condition="is">cut -c1</CommandLine>
<CommandLine condition="is">uname -r</CommandLine>
<CommandLine condition="is">uname -s</CommandLine>
<CommandLine condition="is">grep -i en_US.utf</CommandLine>
<CommandLine condition="is">awk NR==1 {printf $1}</CommandLine>
<CommandLine condition="is">awk -F[".] /VERSION_ID=/ {print $2} /etc/os-release</CommandLine>
<CommandLine condition="is">locale -a</CommandLine>
<CommandLine condition="is">/bin/sh /usr/bin/lsb_release</CommandLine>
<CommandLine condition="begin with">/bin/sh -c /opt/splunkforwarder/</CommandLine>
</ProcessCreate>
</RuleGroup>
<!-- Event ID 3 == NetworkConnect Detected. Log all network connections -->
<RuleGroup name="" groupRelation="or">
<NetworkConnect onmatch="exclude"/>
</RuleGroup>
<!-- Event ID 5 == ProcessTerminate -->
<RuleGroup name="" groupRelation="or">
<ProcessTerminate onmatch="include" />
</RuleGroup>
<!-- Event ID 9 == RawAccessRead -->
<RuleGroup name="" groupRelation="or">
<RawAccessRead onmatch="include" />
</RuleGroup>
<!-- Event ID 11 == FileCreate -->
<RuleGroup name="" groupRelation="or">
<FileCreate onmatch="include">
<Rule name="TechniqueID=T1037,TechniqueName=Boot or Logon Initialization Scripts" groupRelation="or">
<TargetFilename condition="begin with">/etc/init/</TargetFilename>
<TargetFilename condition="begin with">/etc/init.d/</TargetFilename>
<TargetFilename condition="begin with">/etc/rc.d/</TargetFilename>
</Rule>
<Rule name="TechniqueID=T1053.003,TechniqueName=Scheduled Task/Job: Cron" groupRelation="or">
<TargetFilename condition="is">/etc/cron.allow</TargetFilename>
<TargetFilename condition="is">/etc/cron.deny</TargetFilename>
<TargetFilename condition="is">/etc/crontab</TargetFilename>
<TargetFilename condition="begin with">/etc/cron.d/</TargetFilename>
<TargetFilename condition="begin with">/etc/cron.daily/</TargetFilename>
<TargetFilename condition="begin with">/etc/cron.hourly/</TargetFilename>
<TargetFilename condition="begin with">/etc/cron.monthly/</TargetFilename>
<TargetFilename condition="begin with">/etc/cron.weekly/</TargetFilename>
<TargetFilename condition="begin with">/var/spool/cron/crontabs/</TargetFilename>
</Rule>
<Rule name="TechniqueID=T1105,TechniqueName=Ingress Tool Transfer" groupRelation="or">
<Image condition="end with">wget</Image>
<Image condition="end with">curl</Image>
<Image condition="end with">ftpget</Image>
<Image condition="end with">tftp</Image>
<Image condition="end with">lwp-download</Image>
</Rule>
<Rule name="TechniqueID=T1543.002,TechniqueName=Create or Modify System Process: Systemd Service" groupRelation="or">
<TargetFilename condition="begin with">/etc/systemd/system</TargetFilename>
<TargetFilename condition="begin with">/usr/lib/systemd/system</TargetFilename>
<TargetFilename condition="begin with">/run/systemd/system/</TargetFilename>
<TargetFilename condition="contains">/systemd/user/</TargetFilename>
</Rule>
</FileCreate>
</RuleGroup>
<!--Event ID 23 == FileDelete -->
<RuleGroup name="" groupRelation="or">
<FileDelete onmatch="include" />
</RuleGroup>
</EventFiltering>
</Sysmon>