-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathplaybook-TestWordFileToIOC.yml
More file actions
221 lines (221 loc) · 4.28 KB
/
playbook-TestWordFileToIOC.yml
File metadata and controls
221 lines (221 loc) · 4.28 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
id: TestWordFileToIOC
version: -1
fromversion: 5.0.0
name: TestWordFileToIOC
description: Creates a test docx word file, parses it and runs various IOC extraction
tasks.
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 5652fc24-bb4f-42d9-8132-1ab0983f12b2
type: start
task:
id: 5652fc24-bb4f-42d9-8132-1ab0983f12b2
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "4"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 65
}
}
"4":
id: "4"
taskid: e5dc1e98-c3e4-4acb-8974-4067b5e9b137
type: regular
task:
id: e5dc1e98-c3e4-4acb-8974-4067b5e9b137
version: -1
name: CreateWordTestFile
description: Downloads a test file to parse
scriptName: TestCreateWordFile
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "6"
scriptarguments:
name:
simple: test.docx
text:
simple: 'These are some IP''s: 127.0.0.1, 127.0.0.8, Awesome!'
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 227
}
}
"6":
id: "6"
taskid: 00dec68f-5b6c-44cd-8bc5-b6502b2748f1
type: regular
task:
id: 00dec68f-5b6c-44cd-8bc5-b6502b2748f1
version: -1
name: RunParseWordDoc
description: Parses word files to text file
scriptName: ParseWordDoc
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "8"
scriptarguments:
entryID:
simple: ${File.EntryID}
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 400
}
}
"7":
id: "7"
taskid: 86be2b34-acf0-4bc6-8d81-2c88dac06509
type: regular
task:
id: 86be2b34-acf0-4bc6-8d81-2c88dac06509
version: -1
name: ExtractIPsFromFile
scriptName: ExtractIP
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "9"
scriptarguments:
extend-context: {}
report: {}
text:
simple: ${FileData}
url: {}
urlRegex: {}
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 750
}
}
"8":
id: "8"
taskid: 4ce81084-a5fa-4305-8934-3a1ad156058f
type: regular
task:
id: 4ce81084-a5fa-4305-8934-3a1ad156058f
version: -1
name: ReadFileContentsToContext
scriptName: ReadFile
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "7"
scriptarguments:
action: {}
contextKey: {}
data: {}
destpath: {}
enforce_timeout: {}
entry: {}
entryID:
simple: ${File.[1].EntryID}
entryId: {}
entryid: {}
file: {}
fileNames: {}
filename: {}
hostname: {}
ip: {}
issueId: {}
machine: {}
max_file_size: {}
maxFileSize: {}
memory: {}
options: {}
package: {}
path: {}
paths: {}
pathtype: {}
platform: {}
profiles: {}
system: {}
tags: {}
timeout: {}
upload: {}
verbose: {}
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 575
}
}
"9":
id: "9"
taskid: 4a14ebb6-92e0-4adc-856a-a907d134639e
type: regular
task:
id: 4a14ebb6-92e0-4adc-856a-a907d134639e
version: -1
name: CheckExtractedIPsExistInContext
scriptName: VerifyContext
type: regular
iscommand: false
brand: ""
scriptarguments:
expectedValue:
simple: '["127.0.0.1", "127.0.0.8"]'
extend-context: {}
field1: {}
field2: {}
field3: {}
field4: {}
fields: {}
path:
simple: IP.Address
value:
simple: ${IP.Address}
value1: {}
value2: {}
value3: {}
value4: {}
view: |-
{
"position": {
"x": 50,
"y": 925
}
}
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 955,
"width": 380,
"x": 50,
"y": 65
}
}
}
inputs: []
outputs: []