-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathasa_extractor.json
214 lines (214 loc) · 9.28 KB
/
asa_extractor.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
{
"extractors": [
{
"title": "ASA TCP Connection Teardown",
"extractor_type": "grok",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "",
"extractor_config": {
"grok_pattern": "ASA-\\d-%{WORD:asa_messageid:int}: %{WORD:asa_action} %{WORD:asa_proto} connection %{BASE10NUM:asa_conn_id} for %{NOTSPACE:asa_interface_in}:%{IPV4:asa_src_ip}/%{BASE10NUM:asa_src_port} to %{NOTSPACE:asa_interface_out}:%{IPV4:asa_dst_ip}/%{BASE10NUM:asa_dst_port} duration %{TIME:asa_conn_durration} bytes %{BASE10NUM:asa_conn_bytes;long}",
"named_captures_only": true
},
"condition_type": "regex",
"condition_value": "ASA-\\d-302014: Teardown TCP"
},
{
"title": "ASA TCP Connection Built",
"extractor_type": "grok",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "",
"extractor_config": {
"grok_pattern": "ASA-\\d-%{WORD:asa_messageid:int}: %{WORD:asa_action} %{NOTSPACE:asa_direction} %{WORD:asa_proto} connection %{BASE10NUM:asa_conn_id} for %{NOTSPACE:asa_interface_in}:%{IPV4:asa_src_ip}/%{BASE10NUM:asa_src_port} \\(%{IPV4:asa_mapped_src_ip}/%{BASE10NUM:asa_mapped_src_port}\\) to %{NOTSPACE:asa_interface_out}:%{IPV4:asa_dst_ip}/%{BASE10NUM:asa_dst_port} \\(%{IPV4:asa_mapped_dst_ip}/%{BASE10NUM:asa_mapped_dst_port}\\)",
"named_captures_only": true
},
"condition_type": "regex",
"condition_value": "^.*: %ASA-6-302013: Built (.+) TCP connection"
},
{
"title": "ASA UDP Denies",
"extractor_type": "grok",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "",
"extractor_config": {
"grok_pattern": "ASA-\\d-%{WORD:asa_messageid:int}: %{WORD:asa_action} %{WORD:asa_proto} src %{NOTSPACE:asa_interface_in}:%{IPV4:asa_src_ip}/%{BASE10NUM:asa_src_port} dst %{NOTSPACE:asa_interface_out}:%{IPV4:asa_dst_ip}/%{BASE10NUM:asa_dst_port} by access-group %{QUOTEDSTRING:asa_accesslist}",
"named_captures_only": true
},
"condition_type": "regex",
"condition_value": "ASA-\\d-106023: Deny udp"
},
{
"title": "ASA TCP Denies",
"extractor_type": "grok",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "",
"extractor_config": {
"grok_pattern": "ASA-\\d-%{WORD:asa_messageid:int}: %{WORD:asa_action} %{WORD:asa_proto} src %{NOTSPACE:asa_interface_in}:%{IPV4:asa_src_ip}/%{BASE10NUM:asa_src_port} dst %{NOTSPACE:asa_interface_out}:%{IPV4:asa_dst_ip}/%{BASE10NUM:asa_dst_port} by access-group %{QUOTEDSTRING:asa_accesslist}",
"named_captures_only": true
},
"condition_type": "regex",
"condition_value": "ASA-\\d-106023: Deny tcp"
},
{
"title": "ASA ICMP Denies",
"extractor_type": "grok",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "",
"extractor_config": {
"grok_pattern": "ASA-\\d-%{WORD:asa_messageid:int}: %{WORD:asa_action} %{WORD:asa_proto} src %{NOTSPACE:asa_interface_in}:%{IPV4:asa_src_ip} dst %{NOTSPACE:asa_interface_out}:%{IPV4:asa_dst_ip} \\(type %{BASE10NUM:asa_icmp_type}, code %{BASE10NUM:asa_icmp_code}\\) by access-group %{QUOTEDSTRING:asa_accesslist}",
"named_captures_only": true
},
"condition_type": "regex",
"condition_value": "ASA-4-106023: Deny icmp src "
},
{
"title": "ASA UDP Connection Built",
"extractor_type": "grok",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "",
"extractor_config": {
"grok_pattern": "ASA-\\d-%{WORD:asa_messageid:int}: %{WORD:asa_action} %{NOTSPACE:asa_direction} %{WORD:asa_proto} connection %{BASE10NUM:asa_conn_id} for %{NOTSPACE:asa_interface_in}:%{IPV4:asa_src_ip}/%{BASE10NUM:asa_src_port} \\(%{IPV4:asa_mapped_src_ip}/%{BASE10NUM:asa_mapped_src_port}\\) to %{NOTSPACE:asa_interface_out}:%{IPV4:asa_dst_ip}/%{BASE10NUM:asa_dst_port} \\(%{IPV4:asa_mapped_dst_ip}/%{BASE10NUM:asa_mapped_dst_port}\\)",
"named_captures_only": true
},
"condition_type": "regex",
"condition_value": "ASA-6-302015: Built (.+) UDP connection"
},
{
"title": "ASA TCP Drops",
"extractor_type": "grok",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "",
"extractor_config": {
"grok_pattern": "ASA-\\d-%{WORD:asa_messageid:int}: %{WORD:asa_action} %{WORD:asa_proto} %{DATA:asa_message} from %{IPV4:asa_src_ip}/%{BASE10NUM:asa_src_port} to %{IPV4:asa_dst_ip}/%{BASE10NUM:asa_dst_port} flags %{DATA:tcpflags} on interface %{DATA:asa_interface_in}$",
"named_captures_only": true
},
"condition_type": "regex",
"condition_value": "ASA-\\d-106015: Deny TCP"
},
{
"title": "ASA UDP Connection Teardown",
"extractor_type": "grok",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "",
"extractor_config": {
"grok_pattern": "ASA-\\d-%{WORD:asa_messageid:int}: %{WORD:asa_action} %{WORD:asa_proto} connection %{BASE10NUM:asa_conn_id} for %{NOTSPACE:asa_interface_in}:%{IPV4:asa_src_ip}/%{BASE10NUM:asa_src_port} to %{NOTSPACE:asa_interface_out}:%{IPV4:asa_dst_ip}/%{BASE10NUM:asa_dst_port} duration %{TIME:asa_conn_durration} bytes %{BASE10NUM:asa_conn_bytes;long}"
},
"condition_type": "regex",
"condition_value": "ASA-6-302016: Teardown UDP connection"
},
{
"title": "ASA TCP Denied by security policy",
"extractor_type": "grok",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "",
"extractor_config": {
"grok_pattern": "ASA-\\d-%{WORD:asa_messageid:int}: %{WORD:asa_action} %{WORD:asa_proto} connection denied from %{IPV4:asa_src_ip}/%{BASE10NUM:asa_src_port} to %{IPV4:asa_dst_ip}/%{BASE10NUM:asa_dst_port} flags %{WORD:asa_flags} on interface %{NOTSPACE:asa_interface}",
"named_captures_only": true
},
"condition_type": "regex",
"condition_value": "ASA-2-106001: Inbound TCP connection denied"
},
{
"title": "ASA Login Failed",
"extractor_type": "grok",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "",
"extractor_config": {
"grok_pattern": "ASA-\\d-%{WORD:asa_messageid:int}: User authentication failed:",
"named_captures_only": true
},
"condition_type": "regex",
"condition_value": "ASA-6-611102: User authentication failed:"
},
{
"title": "ASA Login Success",
"extractor_type": "grok",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "",
"extractor_config": {
"grok_pattern": "ASA-\\d-%{WORD:asa_messageid:int}: User authentication succeeded:",
"named_captures_only": true
},
"condition_type": "regex",
"condition_value": "ASA-\\d-611101: User authentication succeeded:"
},
{
"title": "ASA TCP access denied by ACL",
"extractor_type": "grok",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "",
"extractor_config": {
"grok_pattern": "ASA-\\d-%{WORD:asa_messageid:int}: TCP access denied by ACL from %{IPV4:asa_src_ip}/%{BASE10NUM:asa_src_port} to %{NOTSPACE:asa_interface_out}:%{IPV4:asa_dst_ip}/%{BASE10NUM:asa_dst_port}",
"named_captures_only": true
},
"condition_type": "regex",
"condition_value": "ASA-3-710003: TCP access denied by ACL"
},
{
"title": "ASA ICMP Connection Built",
"extractor_type": "grok",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "",
"extractor_config": {
"grok_pattern": "ASA-\\d-%{WORD:asa_messageid:int}: %{WORD:asa_action} %{NOTSPACE:asa_direction} %{WORD:asa_proto} connection for faddr %{IPV4:asa_faddr}/%{INT} gaddr %{IPV4:asa_gaddr}/%{INT} laddr %{IPV4:asa_gaddr}/%{INT} type %{INT:asa_icmp_type} code %{INT:asa_icmp_code}",
"named_captures_only": true
},
"condition_type": "regex",
"condition_value": "ASA-6-302020: Built (\\w+) ICMP"
},
{
"title": "ASA ICMP Connection Teardown",
"extractor_type": "grok",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "",
"extractor_config": {
"grok_pattern": "ASA-\\d-%{WORD:asa_messageid:int}: %{WORD:asa_action} %{WORD:asa_proto} connection for faddr %{IPV4:asa_faddr}/%{INT} gaddr %{IPV4:asa_gaddr}/%{INT} laddr %{IPORHOST:asa_laddr}/%{INT} type %{INT:asa_icmp_type} code %{INT:asa_icmp_code}",
"named_captures_only": true
},
"condition_type": "regex",
"condition_value": "ASA-6-302021: Teardown ICMP connection"
}
],
"version": "3.0.0"
}