forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook-SCADAfence_test.yml
215 lines (215 loc) · 4.43 KB
/
playbook-SCADAfence_test.yml
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
id: SCADAfence_test
version: -1
name: SCADAfence_test
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: fa9129fb-42ca-453f-8bfc-e1da842461a4
type: start
task:
id: fa9129fb-42ca-453f-8bfc-e1da842461a4
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 50
}
}
note: false
"1":
id: "1"
taskid: 357fa8e8-66fa-45a8-8a34-b46cc707f55a
type: regular
task:
id: 357fa8e8-66fa-45a8-8a34-b46cc707f55a
version: -1
name: Clear context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "2"
scriptarguments:
all:
simple: "yes"
key: {}
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 195
}
}
note: false
"2":
id: "2"
taskid: 328a194b-07b0-4cd7-80c8-a4d3711b2f95
type: regular
task:
id: 328a194b-07b0-4cd7-80c8-a4d3711b2f95
version: -1
name: Fetch critical alerts
script: SCADAfence CNM|||scadafence-getAlerts
type: regular
iscommand: true
brand: SCADAfence CNM
nexttasks:
'#none#':
- "3"
scriptarguments:
severity:
simple: Critical
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 370
}
}
note: false
"3":
id: "3"
taskid: ebd5f4b9-ee76-496e-801b-92b4ed41841f
type: regular
task:
id: ebd5f4b9-ee76-496e-801b-92b4ed41841f
version: -1
name: Mark alerts in progress
script: SCADAfence CNM|||scadafence-setAlertStatus
type: regular
iscommand: true
brand: SCADAfence CNM
nexttasks:
'#none#':
- "4"
scriptarguments:
alertId:
simple: ${SCADAfence.Alert.id}
alertStatus:
simple: InProgress
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 545
}
}
note: false
"4":
id: "4"
taskid: 057dd374-0090-4c96-8e5f-925be1f46936
type: regular
task:
id: 057dd374-0090-4c96-8e5f-925be1f46936
version: -1
name: Suspicious asset details
script: SCADAfence CNM|||scadafence-getAsset
type: regular
iscommand: true
brand: SCADAfence CNM
nexttasks:
'#none#':
- "6"
scriptarguments:
assetType: {}
hostName: {}
ipAddress:
simple: SCADAfence.Alert.ip
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 720
}
}
note: false
"6":
id: "6"
taskid: d2d6fedb-3714-4874-8fb1-1310105d8f8b
type: regular
task:
id: d2d6fedb-3714-4874-8fb1-1310105d8f8b
version: -1
name: Resolve alerts
script: SCADAfence CNM|||scadafence-setAlertStatus
type: regular
iscommand: true
brand: SCADAfence CNM
nexttasks:
'#none#':
- "7"
scriptarguments:
alertId:
simple: ${SCADAfence.Alert.id}
alertStatus:
simple: Resolved
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 895
}
}
note: false
"7":
id: "7"
taskid: e0807884-77f0-4713-8fde-0b1bf1814dbc
type: regular
task:
id: e0807884-77f0-4713-8fde-0b1bf1814dbc
version: -1
name: Verify alert ip
description: |-
Verifies path in context:
- Verifies path existence
- If matching object is an array: verify fields exists in each of the objects in the array
- If matching object is not an array: verify fields exists in matching object
- if 'expectedValue' is given: ensure that the given value is equal to the context path
scriptName: VerifyContext
type: regular
iscommand: false
brand: ""
scriptarguments:
expectedValue: {}
fields: {}
path:
simple: SCADAfence.Alert.ip
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 1070
}
}
note: false
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 1115,
"width": 380,
"x": 50,
"y": 50
}
}
}
inputs: []
outputs: []