-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathplaybook-ThreatConnect_Test.yml
More file actions
1420 lines (1420 loc) · 28.9 KB
/
playbook-ThreatConnect_Test.yml
File metadata and controls
1420 lines (1420 loc) · 28.9 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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
id: test-ThreatConnect
version: -1
fromversion: 5.0.0
name: test-ThreatConnect
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 502bb7d9-3032-4158-8af1-26001c5670fc
type: start
task:
id: 502bb7d9-3032-4158-8af1-26001c5670fc
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "12"
separatecontext: false
view: |-
{
"position": {
"x": 695,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
"1":
id: "1"
taskid: 8f63f01a-590d-4ec0-8612-7db1faed9194
type: regular
task:
id: 8f63f01a-590d-4ec0-8612-7db1faed9194
version: -1
name: check owners
script: '|||tc-owners'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "25"
separatecontext: false
view: |-
{
"position": {
"x": 695,
"y": 2585
}
}
note: false
timertriggers: []
ignoreworker: false
"2":
id: "2"
taskid: d60ce9da-d2f5-4d08-80de-b8f8277309f7
type: title
task:
id: d60ce9da-d2f5-4d08-80de-b8f8277309f7
version: -1
name: Group Creations
description: |-
Create new:
* event
* campaign
* threat
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "5"
- "6"
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 370
}
}
note: false
timertriggers: []
ignoreworker: false
"4":
id: "4"
taskid: e9ea1475-244d-491a-8475-7b43def9a9e1
type: title
task:
id: e9ea1475-244d-491a-8475-7b43def9a9e1
version: -1
name: Fetch commands
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
- "10"
- "22"
separatecontext: false
view: |-
{
"position": {
"x": 1340,
"y": 2440
}
}
note: false
timertriggers: []
ignoreworker: false
"5":
id: "5"
taskid: b51a4fe2-cbec-4989-89bc-de80544ea64f
type: regular
task:
id: b51a4fe2-cbec-4989-89bc-de80544ea64f
version: -1
name: Create Campaign
script: '|||tc-create-campaign'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "8"
scriptarguments:
description: {}
firstSeen: {}
name:
simple: NewCampaign
owner: {}
securityLabel: {}
tag:
simple: New
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 515
}
}
note: false
timertriggers: []
ignoreworker: false
"6":
id: "6"
taskid: 5dc0dbce-1710-499d-812d-25a1188835fa
type: regular
task:
id: 5dc0dbce-1710-499d-812d-25a1188835fa
version: -1
name: Create Threat
script: '|||tc-create-threat'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "7"
scriptarguments:
name:
simple: NewThreat
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 515
}
}
note: false
timertriggers: []
ignoreworker: false
"7":
id: "7"
taskid: f6cc6e15-598f-4014-8cef-a12a88ffb141
type: regular
task:
id: f6cc6e15-598f-4014-8cef-a12a88ffb141
version: -1
name: Delete Threat
script: '|||tc-delete-group'
type: regular
iscommand: true
brand: ""
scriptarguments:
groupID:
simple: ${TC.Threat.ID}
type:
simple: Threats
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 690
}
}
note: false
timertriggers: []
ignoreworker: false
"8":
id: "8"
taskid: f0e1e590-51bc-4a01-85be-9f657462cfed
type: regular
task:
id: f0e1e590-51bc-4a01-85be-9f657462cfed
version: -1
name: Delete Campaign
script: '|||tc-delete-group'
type: regular
iscommand: true
brand: ""
scriptarguments:
groupID:
simple: ${TC.Campaign.ID}
type:
simple: Campaigns
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 690
}
}
note: false
timertriggers: []
ignoreworker: false
"10":
id: "10"
taskid: 399ffe06-6c23-4831-8f4c-4c08292d4119
type: regular
task:
id: 399ffe06-6c23-4831-8f4c-4c08292d4119
version: -1
name: Get Tags
script: '|||tc-get-tags'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "24"
separatecontext: false
view: |-
{
"position": {
"x": 1125,
"y": 2585
}
}
note: false
timertriggers: []
ignoreworker: false
"11":
id: "11"
taskid: 931b6bac-2fe2-460d-8268-e7273810acb0
type: regular
task:
id: 931b6bac-2fe2-460d-8268-e7273810acb0
version: -1
name: Create Indicator
description: Adds a new indicator to ThreatConnect.
script: '|||tc-add-indicator'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "15"
scriptarguments:
confidence:
simple: "87"
indicator:
simple: 9.9.4.4
owner: {}
rating:
simple: "2"
separatecontext: false
view: |-
{
"position": {
"x": 1340,
"y": 515
}
}
note: false
timertriggers: []
ignoreworker: false
"12":
id: "12"
taskid: 118834d6-7096-4f1e-8c9c-622d2106cfc8
type: regular
task:
id: 118834d6-7096-4f1e-8c9c-622d2106cfc8
version: -1
name: Start Clean
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "2"
- "13"
- "27"
scriptarguments:
all:
simple: "yes"
index: {}
key: {}
keysToKeep: {}
subplaybook: {}
separatecontext: false
view: |-
{
"position": {
"x": 695,
"y": 195
}
}
note: false
timertriggers: []
ignoreworker: false
"13":
id: "13"
taskid: d6f29135-72da-4260-8943-4371cb0869aa
type: title
task:
id: d6f29135-72da-4260-8943-4371cb0869aa
version: -1
name: Main Test - indicators
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "11"
- "29"
separatecontext: false
view: |-
{
"position": {
"x": 1340,
"y": 370
}
}
note: false
timertriggers: []
ignoreworker: false
"14":
id: "14"
taskid: a5eeb2a9-9d46-4b92-8aca-a4082563721e
type: regular
task:
id: a5eeb2a9-9d46-4b92-8aca-a4082563721e
version: -1
name: Create Incident
script: '|||tc-create-incident'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "17"
scriptarguments:
description: {}
eventDate: {}
incidentName:
simple: NewIncident
owner: {}
securityLabel: {}
tag: {}
separatecontext: false
view: |-
{
"position": {
"x": 1340,
"y": 1215
}
}
note: false
timertriggers: []
ignoreworker: false
"15":
id: "15"
taskid: e9e6bbb5-cd87-45a8-82fe-c6ef03833b78
type: regular
task:
id: e9e6bbb5-cd87-45a8-82fe-c6ef03833b78
version: -1
name: Update Indicator (1)
script: '|||tc-update-indicator'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "16"
scriptarguments:
confidence:
simple: "10"
dnsActive: {}
falsePositive: {}
indicator:
simple: 9.9.4.4
observations:
simple: "12"
rating:
simple: "0"
securityLabel:
simple: TLP:GREEN
size: {}
threatAssessConfidence: {}
threatAssessRating: {}
updatedValues: {}
whoisActive: {}
separatecontext: false
view: |-
{
"position": {
"x": 1340,
"y": 690
}
}
note: false
timertriggers: []
ignoreworker: false
"16":
id: "16"
taskid: 191b03ee-b8b8-49c3-8cf3-50e68511c504
type: regular
task:
id: 191b03ee-b8b8-49c3-8cf3-50e68511c504
version: -1
name: Update Indicator (2)
script: '|||tc-tag-indicator'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "19"
scriptarguments:
indicator:
simple: 9.9.4.4
owner: {}
tag:
simple: Verified
separatecontext: false
view: |-
{
"position": {
"x": 1340,
"y": 865
}
}
note: false
timertriggers: []
ignoreworker: false
"17":
id: "17"
taskid: 981dd090-6682-4e7a-8f94-9a8be04df17c
type: regular
task:
id: 981dd090-6682-4e7a-8f94-9a8be04df17c
version: -1
name: Associate Indicator To Incident
script: '|||tc-incident-associate-indicator'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "18"
scriptarguments:
incidentId:
simple: ${TC.Incident.ID}
indicator:
simple: ${TC.Indicator.Name}
indicatorType:
simple: ADDRESSES
owner: {}
separatecontext: false
view: |-
{
"position": {
"x": 1340,
"y": 1390
}
}
note: false
timertriggers: []
ignoreworker: false
"18":
id: "18"
taskid: 0084218b-f6fb-46b8-810a-a37bb968d3d0
type: regular
task:
id: 0084218b-f6fb-46b8-810a-a37bb968d3d0
version: -1
name: Remove Indicator Tag
script: '|||tc-delete-indicator-tag'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "21"
scriptarguments:
indicator:
simple: ${TC.Indicator.Name}
tag:
simple: Testing
separatecontext: false
view: |-
{
"position": {
"x": 1340,
"y": 1565
}
}
note: false
timertriggers: []
ignoreworker: false
"19":
id: "19"
taskid: 1b13250d-daf9-4365-8789-5e69fce9b422
type: regular
task:
id: 1b13250d-daf9-4365-8789-5e69fce9b422
version: -1
name: Add temp Tag
script: '|||tc-tag-indicator'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "14"
scriptarguments:
indicator:
simple: ${TC.Indicator.Name}
owner: {}
tag:
simple: Testing
separatecontext: false
view: |-
{
"position": {
"x": 1340,
"y": 1040
}
}
note: false
timertriggers: []
ignoreworker: false
"20":
id: "20"
taskid: 718d86af-7b87-4b4a-812d-04426bc7c03d
type: regular
task:
id: 718d86af-7b87-4b4a-812d-04426bc7c03d
version: -1
name: Delete Test Indicator
script: '|||tc-delete-indicator'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "23"
scriptarguments:
indicator:
simple: 9.9.4.4
separatecontext: false
view: |-
{
"position": {
"x": 1340,
"y": 1915
}
}
note: false
timertriggers: []
ignoreworker: false
"21":
id: "21"
taskid: e884fd12-498d-4ff0-8cd7-9ceb1c648c83
type: regular
task:
id: e884fd12-498d-4ff0-8cd7-9ceb1c648c83
version: -1
name: Get Indicator
script: '|||tc-get-indicator'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "20"
scriptarguments:
confidenceThreshold: {}
indicator:
simple: 9.9.4.4
ratingThreshold: {}
separatecontext: false
view: |-
{
"position": {
"x": 1340,
"y": 1740
}
}
note: false
timertriggers: []
ignoreworker: false
"22":
id: "22"
taskid: dc23e096-149b-47b8-87e4-880c8b4943fa
type: regular
task:
id: dc23e096-149b-47b8-87e4-880c8b4943fa
version: -1
name: Fetch Incidents
script: '|||tc-fetch-incidents'
type: regular
iscommand: true
brand: ""
scriptarguments:
incidentId: {}
incidentName: {}
owner: {}
separatecontext: false
view: |-
{
"position": {
"x": 1555,
"y": 2585
}
}
note: false
timertriggers: []
ignoreworker: false
"23":
id: "23"
taskid: 8406fb9d-b00d-45b6-8cd8-da1b09d7daeb
type: regular
task:
id: 8406fb9d-b00d-45b6-8cd8-da1b09d7daeb
version: -1
name: Get Indicators of Incident
script: '|||tc-get-incident-associate-indicators'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "26"
scriptarguments:
incidentId:
simple: ${TC.Incident.ID}
owner: {}
separatecontext: false
view: |-
{
"position": {
"x": 1340,
"y": 2090
}
}
note: false
timertriggers: []
ignoreworker: false
"24":
id: "24"
taskid: 6a06a559-05ca-45d6-8596-ee6f0f98399a
type: regular
task:
id: 6a06a559-05ca-45d6-8596-ee6f0f98399a
version: -1
name: Get Indicators with Tag
script: '|||tc-get-indicators-by-tag'
type: regular
iscommand: true
brand: ""
scriptarguments:
tag:
simple: Verified
separatecontext: false
view: |-
{
"position": {
"x": 1125,
"y": 2760
}
}
note: false
timertriggers: []
ignoreworker: false
"25":
id: "25"
taskid: a9b51018-6ba0-4c6b-8fe5-776b80961197
type: regular
task:
id: a9b51018-6ba0-4c6b-8fe5-776b80961197
version: -1
name: Get Indicators with limit
script: '|||tc-indicators'
type: regular
iscommand: true
brand: ""
scriptarguments:
limit:
simple: "3"
owner: {}
separatecontext: false
view: |-
{
"position": {
"x": 695,
"y": 2760
}
}
note: false
timertriggers: []
ignoreworker: false
"26":
id: "26"
taskid: 67a3735a-633f-4839-813d-be385ee4c909
type: regular
task:
id: 67a3735a-633f-4839-813d-be385ee4c909
version: -1
name: Delete Incident
script: '|||tc-delete-group'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "4"
scriptarguments:
groupID:
simple: ${TC.Incident.ID}
type:
simple: Incidents
separatecontext: false
view: |-
{
"position": {
"x": 1340,
"y": 2265
}
}
note: false
timertriggers: []
ignoreworker: false
"27":
id: "27"
taskid: ae67bc25-2e5a-4013-8d01-a3fbdcc564e7
type: title
task:
id: ae67bc25-2e5a-4013-8d01-a3fbdcc564e7
version: -1
name: Group Actions
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "28"
separatecontext: false
view: |-
{
"position": {
"x": -930,
"y": 360
}
}
note: false
timertriggers: []
ignoreworker: false
"28":
id: "28"
taskid: 7da46a46-bf6b-41c7-8f3d-f90c1a234be5
type: regular
task:
id: 7da46a46-bf6b-41c7-8f3d-f90c1a234be5
version: -1
name: Get Groups
description: Returns all groups by group type.
script: '|||tc-get-groups'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "30"
- "40"
scriptarguments:
group_type:
simple: events
separatecontext: false
view: |-
{
"position": {
"x": -930,
"y": 495
}
}
note: false
timertriggers: []
ignoreworker: false
"29":
id: "29"
taskid: dc841e39-37d7-46c1-83d0-5579155e7fa9
type: regular
task:
id: dc841e39-37d7-46c1-83d0-5579155e7fa9
version: -1
name: Get Indicator types
description: Returns all indicator types available on your instance of ThreatConnect.
script: '|||tc-get-indicator-types'
type: regular
iscommand: true
brand: ""
separatecontext: false
view: |-
{
"position": {
"x": 1830,
"y": 515
}
}
note: false
timertriggers: []
ignoreworker: false
"30":
id: "30"
taskid: 065c9f67-3ba7-4df9-8ead-42211174824e
type: regular
task:
id: 065c9f67-3ba7-4df9-8ead-42211174824e
version: -1
name: Create Event Group
description: Creates a ThreatConnect group from type Event.
script: '|||tc-create-event'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "31"
- "33"
- "32"
- "34"
- "43"
scriptarguments:
description: {}
eventDate: {}
name:
simple: MyTest
owner: {}
status: {}
tag: {}
separatecontext: false
view: |-
{
"position": {
"x": -930,
"y": 700
}
}
note: false
timertriggers: []
ignoreworker: false
"31":
id: "31"
taskid: 25c405d1-a2fe-4c5b-8787-03f990a5aa5d
type: regular
task:
id: 25c405d1-a2fe-4c5b-8787-03f990a5aa5d
version: -1
name: Associate Group Attribute
description: Adds an attribute to a specific group.
script: '|||tc-add-group-attribute'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "39"
scriptarguments:
attribute_type:
simple: External ID
attribute_value:
simple: "123456789"
group_id:
simple: ${TC.Event.ID}
group_type:
simple: events
separatecontext: false
view: |-
{
"position": {
"x": -1610,
"y": 900
}
}
note: false
timertriggers: []
ignoreworker: false
"32":
id: "32"
taskid: 089184e3-e67f-4f0a-82f9-b493b500e457
type: regular
task:
id: 089184e3-e67f-4f0a-82f9-b493b500e457
version: -1
name: Add Security Label
description: Add security label to a specific group
script: '|||tc-add-group-security-label'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "45"
scriptarguments:
group_id:
simple: ${TC.Event.ID}
group_type:
simple: events
security_label_name:
simple: TLP:GREEN
separatecontext: false
view: |-
{
"position": {
"x": -710,
"y": 900
}
}
note: false
timertriggers: []
ignoreworker: false
"33":
id: "33"
taskid: bbec9dc1-eb9a-44a3-8312-7270226adcca
type: regular
task:
id: bbec9dc1-eb9a-44a3-8312-7270226adcca
version: -1
name: Add Group tag
description: Add tags to specific group
script: '|||tc-add-group-tag'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "41"
scriptarguments:
group_id:
simple: ${TC.Event.ID}
group_type:
simple: events
tag_name:
simple: testing
separatecontext: false
view: |-
{
"position": {
"x": -1150,
"y": 900
}
}
note: false
timertriggers: []
ignoreworker: false
"34":
id: "34"
taskid: 8f6cc708-08c0-4f95-82d8-b9f3e73177d9
type: regular
task:
id: 8f6cc708-08c0-4f95-82d8-b9f3e73177d9
version: -1
name: Associate Indicator
description: Associate an Indicator to a Group
script: '|||tc-group-associate-indicator'
type: regular
iscommand: true
brand: ""