forked from mrebeschini/elastic-siem-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mitre_geo_winlogbeat_pipeline.json
133 lines (133 loc) · 3.29 KB
/
mitre_geo_winlogbeat_pipeline.json
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{
"description" : "Add geoip info and mitre id's",
"processors" : [
{
"geoip" : {
"field" : "client.ip",
"target_field" : "client.geo",
"ignore_missing" : true
}
},
{
"set" : {
"field" : "mitre_raw",
"value" : "{{winlog.event_data.RuleName}}"
}
},
{
"geoip" : {
"field" : "source.ip",
"target_field" : "source.geo",
"ignore_missing" : true
}
},
{
"geoip" : {
"field" : "destination.ip",
"target_field" : "destination.geo",
"ignore_missing" : true
}
},
{
"geoip" : {
"field" : "server.ip",
"target_field" : "server.geo",
"ignore_missing" : true
}
},
{
"dissect" : {
"if" : "ctx.mitre_raw.contains('technique')",
"field" : "winlog.event_data.RuleName",
"pattern" : "technique_id=%{mitre.technique.id},technique_name=%{mitre.technique.name}",
"ignore_missing" : true
}
},
{
"set" : {
"if" : "ctx.mitre_raw.contains('technique')",
"field" : "threat.framework",
"value" : "MITRE ATT&CK"
}
},
{
"set" : {
"if" : "ctx.mitre_raw.contains('technique')",
"field" : "threat.technique.id",
"value" : "{{mitre.technique.id}}"
}
},
{
"set" : {
"if" : "ctx.mitre_raw.contains('technique')",
"field" : "threat.technique.name",
"value" : "{{mitre.technique.name}}"
}
},
{
"set" : {
"if" : "ctx.mitre_raw.contains('technique')",
"field" : "threat.technique.reference",
"value" : "https://attack.mitre.org/techniques/{{mitre.technique.id}}/"
}
},
{
"remove" : {
"field" : "mitre_raw",
"ignore_missing" : true
}
},
{
"geoip" : {
"field" : "source.ip",
"target_field" : "source.as",
"properties" : [
"asn",
"organization_name"
],
"ignore_missing" : true,
"database_file" : "GeoLite2-ASN.mmdb"
}
},
{
"rename" : {
"field" : "source.as.asn",
"target_field" : "source.as.number",
"ignore_missing" : true
}
},
{
"rename" : {
"field" : "source.as.organization_name",
"target_field" : "source.as.organization.name",
"ignore_missing" : true
}
},
{
"geoip" : {
"field" : "destination.ip",
"target_field" : "destination.as",
"properties" : [
"asn",
"organization_name"
],
"ignore_missing" : true,
"database_file" : "GeoLite2-ASN.mmdb"
}
},
{
"rename" : {
"field" : "destination.as.asn",
"target_field" : "destination.as.number",
"ignore_missing" : true
}
},
{
"rename" : {
"field" : "destination.as.organization_name",
"target_field" : "destination.as.organization.name",
"ignore_missing" : true
}
}
]
}