-
Notifications
You must be signed in to change notification settings - Fork 477
Expand file tree
/
Copy pathescu_6.code-snippets
More file actions
229 lines (222 loc) · 7.41 KB
/
Copy pathescu_6.code-snippets
File metadata and controls
229 lines (222 loc) · 7.41 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
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
{
"New Detection": {
"scope": "yaml",
"prefix": "detection_escu6",
"description": "Scaffold a Splunk Security Content detection YAML",
"body": [
"name: ${1:${TM_FILENAME_BASE/(^|[_-])(\\w)/${1:+ }${2:/upcase}/g}}",
"id: $UUID",
"version: 1",
"creation_date: '${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}'",
"modification_date: '${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}'",
"author: ${2:Your Name, Splunk}",
"status: production",
"type: ${3|TTP,Anomaly,Hunting,Correlation|}",
"description: ${4}",
"data_source:",
" - ",
"search: >-",
" your search here",
" | `${TM_FILENAME_BASE}_filter`",
"how_to_implement: ",
"known_false_positives: ",
"references:",
" - ",
"drilldown_searches:",
" - name: View the detection results for - \"$risk_object$\"",
" search: '%original_detection_search% | search risk_object = \"$risk_object$\"'",
" earliest_offset: $info_min_time$",
" latest_offset: $info_max_time$",
" - name: View risk events for the last 7 days for - \"$risk_object$\"",
" search: '| from datamodel Risk.All_Risk | search normalized_risk_object IN (\"$risk_object$\") | stats count min(_time) as firstTime max(_time) as lastTime values(search_name) as \"Search Name\" values(risk_message) as \"Risk Message\" values(analyticstories) as \"Analytic Stories\" values(annotations._all) as \"Annotations\" values(annotations.mitre_attack.mitre_tactic) as \"ATT&CK Tactics\" by normalized_risk_object | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`'",
" earliest_offset: 7d",
" latest_offset: \"0\"",
"finding:",
" title: ",
" entity:",
" field: ",
" type: ",
" score: ",
"intermediate_findings:",
" entities:",
" - field: ",
" type: ",
" score: ",
" message:",
"threat_objects:",
" - field: ",
" type: ",
"analytic_story:",
" - ",
"asset_type: ",
"mitre_attack_id:",
" - ",
"product:",
" - Splunk Enterprise",
" - Splunk Enterprise Security",
" - Splunk Cloud",
"category: ",
"security_domain: ",
"tests:",
" - name: True Positive Test",
" attack_data:",
" - data: ",
" source: ",
" sourcetype: ",
" test_type: unit",
]
},
"New Macro": {
"scope": "yaml",
"prefix": "macro_escu6",
"body": [
"name: ${1:${TM_FILENAME_BASE/([_-])(\\w)/ ${2:/upcase}/g}}",
"id: $UUID",
"version: 1",
"creation_date: '${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}'",
"modification_date: '${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}'",
"author: ${1:Splunk Threat Research Team}",
"description: ${2}",
"definition: ${3}",
"$0"
],
"description": "Scaffold a new Splunk security content macro YAML file"
},
"New Data Source": {
"scope": "yaml",
"prefix": "data_source_escu6",
"description": "Scaffold a new Splunk security content data source YAML file",
"body": [
"name: ${1:${TM_FILENAME_BASE/(^|[_-])(\\w)/${1:+ }${2:/upcase}/g}}",
"id: $UUID",
"version: 1",
"creation_date: '${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}'",
"modification_date: '${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}'",
"author: ${1:Splunk Threat Research Team}",
"description: ${3}",
"source: ${4:sourcename}",
"sourcetype: ${5:sourcetype_value}",
"separator: ${6:EventCode}",
"separator_value: '${7}'",
"supported_TA:",
" - name: ${8}",
" url: ${9:hxxps://splunkbase.splunk.com/app/....}",
" version: ${10}",
"fields:",
" - ",
"output_fields:",
" - ",
"mitre_components:",
" - ",
"example_log: '${11}'",
"$0"
]
},
"New Story": {
"scope": "yaml",
"prefix": "story_escu6",
"description": "Scaffold a new Splunk security content analytic story YAML file",
"body": [
"name: ${1:${TM_FILENAME_BASE/(^|[_-])(\\w)/${1:+ }${2:/upcase}/g}}",
"id: $UUID",
"version: 1",
"creation_date: '${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}'",
"modification_date: '${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}'",
"author: ${2:Splunk Threat Research Team}",
"status: production",
"description: ${3}",
"narrative: ${4}",
"references:",
" - ",
"category:",
" - ",
"product:",
" - Splunk Enterprise",
" - Splunk Enterprise Security",
" - Splunk Cloud",
"usecase: ",
"$0"
]
},
"New Lookup (CSV)": {
"scope": "yaml",
"prefix": "lookup_csv_escu6",
"description": "Scaffold a new Splunk security content CSV lookup YAML file",
"body": [
"name: ${1:${TM_FILENAME_BASE/([_-])(\\w)/ ${2:/upcase}/g}}",
"id: $UUID",
"version: 1",
"creation_date: '${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}'",
"modification_date: '${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}'",
"author: ${2:Splunk Threat Research Team}",
"lookup_type: csv",
"description: ${3}",
"match_type:",
" - ${4:WILDCARD()}",
"min_matches: REMOVE ME IF NO MIN MATCHES REQUIRED",
"max_matches: REMOVE ME IF NO MAX MATCHES REQUIRED",
"case_sensitive_match: REMOVE ME IF NO CASE SENSITIVE MATCH REQUIRED",
"$0"
]
},
"New Lookup (KVStore)": {
"scope": "yaml",
"prefix": "lookup_kvstore_escu6",
"description": "Scaffold a new Splunk security content KVStore lookup YAML file",
"body": [
"name: ${1:${TM_FILENAME_BASE/([_-])(\\w)/ ${2:/upcase}/g}}",
"id: $UUID",
"version: 1",
"creation_date: '${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}'",
"modification_date: '${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}'",
"author: ${2:Splunk Threat Research Team}",
"lookup_type: kvstore",
"description: ${3}",
"fields:",
" - _key",
" - ${4:field_name}",
"$0"
]
},
"New Dashboard": {
"scope": "yaml",
"prefix": "dashboard_escu6",
"description": "Scaffold a new Splunk security content dashboard YAML file",
"body": [
"name: ${1:${TM_FILENAME_BASE/(^|[_-])(\\w)/${1:+ }${2:/upcase}/g}}",
"id: $UUID",
"version: 1",
"creation_date: '${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}'",
"modification_date: '${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}'",
"author: ${2:Splunk Threat Research Team}",
"description: ${3:Utilize this dashboard to...}",
"$0"
]
},
"New Baseline": {
"scope": "yaml",
"prefix": "baseline_escu6",
"description": "Scaffold a new Splunk security content baseline YAML file",
"body": [
"name: ${1:${TM_FILENAME_BASE/(^|[_-])(\\w)/${1:+ }${2:/upcase}/g}}",
"id: $UUID",
"version: 1",
"creation_date: '${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}'",
"modification_date: '${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}'",
"author: ${2:Splunk Threat Research Team}",
"status: production",
"description: ${3:This search...}",
"search: ${4}",
"how_to_implement: ${5}",
"known_false_positives: ${6}",
"references: []",
"product:",
" - Splunk Enterprise",
" - Splunk Enterprise Security",
" - Splunk Cloud",
"security_domain: ${7}",
"schedule: Default Baseline",
"$0"
]
}
}