forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook-SignalSciencesTest.yml
2026 lines (2026 loc) · 40.6 KB
/
playbook-SignalSciencesTest.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
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: SignalSciences-Test
version: -1
name: SignalSciences-Test
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 1d2f80f3-85f9-4b3f-8cf8-2b8adc48257c
type: start
task:
id: 1d2f80f3-85f9-4b3f-8cf8-2b8adc48257c
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "9"
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
"3":
id: "3"
taskid: 96cbb2d5-b208-4603-8e6d-b1555d062891
type: regular
task:
id: 96cbb2d5-b208-4603-8e6d-b1555d062891
version: -1
name: Add ip to blacklist
script: '|||sigsci-blacklist-add-ip'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "4"
scriptarguments:
expires: {}
ip:
simple: 8.3.3.3
note:
simple: test blacklist
siteName:
simple: demisto
separatecontext: false
view: |-
{
"position": {
"x": -320,
"y": 630
}
}
note: false
timertriggers: []
ignoreworker: false
"4":
id: "4"
taskid: 073c4ea5-d025-4653-8570-158ec68bbcef
type: regular
task:
id: 073c4ea5-d025-4653-8570-158ec68bbcef
version: -1
name: Get blacklist
script: '|||sigsci-get-blacklist'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "52"
scriptarguments:
siteName:
simple: demisto
separatecontext: false
view: |-
{
"position": {
"x": -320,
"y": 835
}
}
note: false
timertriggers: []
ignoreworker: false
"5":
id: "5"
taskid: a3cf1f99-1e26-4d88-8d1c-850095950aa2
type: regular
task:
id: a3cf1f99-1e26-4d88-8d1c-850095950aa2
version: -1
name: Remove IP from blacklist
script: '|||sigsci-blacklist-remove-ip'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "54"
scriptarguments:
IP:
simple: ${SigSciences.Corp.Site.Blacklist.Source}
siteName:
simple: demisto
separatecontext: false
view: |-
{
"position": {
"x": -320,
"y": 1260
}
}
note: false
timertriggers: []
ignoreworker: false
"6":
id: "6"
taskid: c0dce699-eeff-4db5-850b-dd994cc49457
type: regular
task:
id: c0dce699-eeff-4db5-850b-dd994cc49457
version: -1
name: Add ip to whitelist
script: '|||sigsci-whitelist-add-ip'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "7"
scriptarguments:
expires: {}
ip:
simple: 8.3.3.3
note:
simple: test adding ip to whitelist
siteName:
simple: demisto
separatecontext: false
view: |-
{
"position": {
"x": -320,
"y": 1975
}
}
note: false
timertriggers: []
ignoreworker: false
"7":
id: "7"
taskid: 4c78bd78-7b66-49bd-8909-f3acc667444b
type: regular
task:
id: 4c78bd78-7b66-49bd-8909-f3acc667444b
version: -1
name: Get whitelist
script: '|||sigsci-get-whitelist'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "63"
scriptarguments:
siteName:
simple: demisto
separatecontext: false
view: |-
{
"position": {
"x": -320,
"y": 2160
}
}
note: false
timertriggers: []
ignoreworker: false
"8":
id: "8"
taskid: a71cd459-5cb0-421f-8b89-ea6ab4b1bbf6
type: regular
task:
id: a71cd459-5cb0-421f-8b89-ea6ab4b1bbf6
version: -1
name: Remove IP from whitelist
script: '|||sigsci-whitelist-remove-ip'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "57"
scriptarguments:
IP:
simple: ${SigSciences.Corp.Site.Whitelist.Source}
siteName:
simple: demisto
separatecontext: false
view: |-
{
"position": {
"x": -320,
"y": 2510
}
}
note: false
timertriggers: []
ignoreworker: false
"9":
id: "9"
taskid: c56b7d2c-f018-43ea-81bf-0d49890ef271
type: regular
task:
id: c56b7d2c-f018-43ea-81bf-0d49890ef271
version: -1
name: Delete Context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "16"
- "17"
- "18"
- "44"
scriptarguments:
all:
simple: "yes"
index: {}
key: {}
keysToKeep: {}
subplaybook: {}
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 220
}
}
note: false
timertriggers: []
ignoreworker: false
"10":
id: "10"
taskid: 267f935b-ca8f-4fff-8987-2c89e2abace8
type: regular
task:
id: 267f935b-ca8f-4fff-8987-2c89e2abace8
version: -1
name: Add alert
script: '|||sigsci-add-alert'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "11"
scriptarguments:
action:
simple: flagged
enabled:
simple: "True"
interval:
simple: "10"
long_name:
simple: demisto-test
siteName:
simple: test
tag_name:
simple: USERAGENT
threshold:
simple: "100"
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 630
}
}
note: false
timertriggers: []
ignoreworker: false
"11":
id: "11"
taskid: be222519-6b88-4eba-8bfd-a4818cafc6f3
type: regular
task:
id: be222519-6b88-4eba-8bfd-a4818cafc6f3
version: -1
name: Get alerts
script: '|||sigsci-get-alert'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "12"
scriptarguments:
alert_id:
simple: ${SigSciences.Corp.Site.Alert.ID}
siteName:
simple: test
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 835
}
}
note: false
timertriggers: []
ignoreworker: false
"12":
id: "12"
taskid: a8f53a4c-f235-4252-8b7d-573fd7802418
type: regular
task:
id: a8f53a4c-f235-4252-8b7d-573fd7802418
version: -1
name: Update alert
script: '|||sigsci-update-alert'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "13"
scriptarguments:
action:
simple: flagged
alert_id:
simple: ${SigSciences.Corp.Site.Alert.ID}
enabled:
simple: "True"
interval:
simple: "1"
long_name:
simple: demisto-test-alert-2
siteName:
simple: test
tag_name:
simple: USERAGENT
threshold:
simple: "50"
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 1045
}
}
note: false
timertriggers: []
ignoreworker: false
"13":
id: "13"
taskid: f62af858-5cb5-4735-8318-1967f4863fac
type: regular
task:
id: f62af858-5cb5-4735-8318-1967f4863fac
version: -1
name: Get updated alert
script: '|||sigsci-get-alert'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "14"
scriptarguments:
alert_id:
simple: ${SigSciences.Corp.Site.Alert.ID}
siteName:
simple: test
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 1260
}
}
note: false
timertriggers: []
ignoreworker: false
"14":
id: "14"
taskid: ae361f50-4d57-4e8a-8137-ef4a84047016
type: condition
task:
id: ae361f50-4d57-4e8a-8137-ef4a84047016
version: -1
name: Verify alert has been updated
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "15"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualNumber
left:
value:
simple: SigSciences.Corp.Site.Alert.Threshold
iscontext: true
right:
value:
simple: "50"
view: |-
{
"position": {
"x": 265,
"y": 1440
}
}
note: false
timertriggers: []
ignoreworker: false
"15":
id: "15"
taskid: 9fff854d-617b-4f16-808e-b07146223ba6
type: regular
task:
id: 9fff854d-617b-4f16-808e-b07146223ba6
version: -1
name: Delete alert
script: '|||sigsci-delete-alert'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "26"
scriptarguments:
alert_id:
simple: ${SigSciences.Corp.Site.Alert.ID}
siteName:
simple: test
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 1640
}
}
note: false
timertriggers: []
ignoreworker: false
"16":
id: "16"
taskid: a734afc5-a9ce-4a0a-8f91-37094568a673
type: title
task:
id: a734afc5-a9ce-4a0a-8f91-37094568a673
version: -1
name: Test blacklist and whitelist
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
separatecontext: false
view: |-
{
"position": {
"x": -320,
"y": 490
}
}
note: false
timertriggers: []
ignoreworker: false
"17":
id: "17"
taskid: 7e5c233d-03df-4fdf-8a28-0a11ffafd34c
type: title
task:
id: 7e5c233d-03df-4fdf-8a28-0a11ffafd34c
version: -1
name: Test alerts
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "10"
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 490
}
}
note: false
timertriggers: []
ignoreworker: false
"18":
id: "18"
taskid: d67b59d6-b1dc-4e05-81bb-a0dba0324028
type: title
task:
id: d67b59d6-b1dc-4e05-81bb-a0dba0324028
version: -1
name: Test lists
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "31"
separatecontext: false
view: |-
{
"position": {
"x": 790,
"y": 490
}
}
note: false
timertriggers: []
ignoreworker: false
"19":
id: "19"
taskid: b4758be9-adff-4397-859e-2e00dadee1f9
type: regular
task:
id: b4758be9-adff-4397-859e-2e00dadee1f9
version: -1
name: Create site list
script: '|||sigsci-create-site-list'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "20"
scriptarguments:
description: {}
entries_list:
simple: 1.2.3.4,5.6.7.8
list_name:
simple: test-site-list
list_type:
simple: IP
siteName:
simple: test
separatecontext: false
view: |-
{
"position": {
"x": 780,
"y": 1675
}
}
note: false
timertriggers: []
ignoreworker: false
"20":
id: "20"
taskid: 13851d07-c5be-4c60-849c-e18d3014f00f
type: regular
task:
id: 13851d07-c5be-4c60-849c-e18d3014f00f
version: -1
name: Get site list
script: '|||sigsci-get-site-list'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "21"
scriptarguments:
list_id:
simple: ${SigSciences.Corp.Site.List.ID}
siteName:
simple: test
separatecontext: false
view: |-
{
"position": {
"x": 780,
"y": 1885
}
}
note: false
timertriggers: []
ignoreworker: false
"21":
id: "21"
taskid: 7e1732a3-cfe3-4feb-845e-19fbe7306fb5
type: regular
task:
id: 7e1732a3-cfe3-4feb-845e-19fbe7306fb5
version: -1
name: Update site list
script: '|||sigsci-update-site-list'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "22"
scriptarguments:
description: {}
entries_list:
complex:
root: SigSciences
accessor: Corp.Site.List.Entries
transformers:
- operator: atIndex
args:
index:
value:
simple: "0"
list_id:
simple: ${SigSciences.Corp.Site.List.ID}
method:
simple: Remove
siteName:
simple: test
separatecontext: false
view: |-
{
"position": {
"x": 780,
"y": 2100
}
}
note: false
timertriggers: []
ignoreworker: false
"22":
id: "22"
taskid: 651ac703-feda-48a2-84ff-fe1400636315
type: condition
task:
id: 651ac703-feda-48a2-84ff-fe1400636315
version: -1
name: Verify site list has been updated
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "23"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: notContainsGeneral
left:
value:
simple: SigSciences.Site.List.Entries
iscontext: true
right:
value:
simple: 1.2.3.4
view: |-
{
"position": {
"x": 780,
"y": 2280
}
}
note: false
timertriggers: []
ignoreworker: false
"23":
id: "23"
taskid: 4b17fb06-9253-4ed3-868a-78825d158e8e
type: regular
task:
id: 4b17fb06-9253-4ed3-868a-78825d158e8e
version: -1
name: Delete site list
script: '|||sigsci-delete-site-list'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "28"
scriptarguments:
list_id:
simple: ${SigSciences.Corp.Site.List.ID}
siteName:
simple: test
separatecontext: false
view: |-
{
"position": {
"x": 780,
"y": 2480
}
}
note: false
timertriggers: []
ignoreworker: false
"24":
id: "24"
taskid: be4e6256-5f6f-40b2-82ad-e2cfc1307d62
type: regular
task:
id: be4e6256-5f6f-40b2-82ad-e2cfc1307d62
version: -1
name: Get all alerts
script: '|||sigsci-get-all-alerts'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "25"
scriptarguments:
siteName:
simple: test
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 1975
}
}
note: false
timertriggers: []
ignoreworker: false
"25":
id: "25"
taskid: 64e9d7e1-3e7d-45a3-846c-0f7afbedd326
type: condition
task:
id: 64e9d7e1-3e7d-45a3-846c-0f7afbedd326
version: -1
name: Verify alert was deleted
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "27"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEqualString
left:
value:
simple: SigSciences.Corp.Site.Alert.LongName
iscontext: true
right:
value:
simple: demisto-test-tag-2
view: |-
{
"position": {
"x": 265,
"y": 2160
}
}
note: false
timertriggers: []
ignoreworker: false
"26":
id: "26"
taskid: fd93a15c-38a0-40ca-88d5-0ba0a16c210f
type: regular
task:
id: fd93a15c-38a0-40ca-88d5-0ba0a16c210f
version: -1
name: Delete Context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "24"
scriptarguments:
all:
simple: "no"
index: {}
key:
simple: SigSciences.Corp.Site.Alert
keysToKeep: {}
subplaybook: {}
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 1810
}
}
note: false
timertriggers: []
ignoreworker: false
"27":
id: "27"
taskid: 77a38ec6-13df-49f2-8e27-2ee1cce69448
type: title
task:
id: 77a38ec6-13df-49f2-8e27-2ee1cce69448
version: -1
name: Success
type: title
iscommand: false
brand: ""
separatecontext: false
view: |-
{
"position": {
"x": 265,
"y": 2340
}
}
note: false
timertriggers: []
ignoreworker: false
"28":
id: "28"
taskid: ebae7695-6597-4f3e-8d6b-c250c0acf366
type: regular
task:
id: ebae7695-6597-4f3e-8d6b-c250c0acf366
version: -1
name: Delete Context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "29"
scriptarguments:
all:
simple: "no"
index: {}
key:
simple: SigSciences.Corp.Site.List
keysToKeep: {}
subplaybook: {}
separatecontext: false
view: |-
{
"position": {
"x": 780,
"y": 2650
}
}
note: false
timertriggers: []
ignoreworker: false
"29":
id: "29"
taskid: 954d7cf5-11b1-4693-8575-483bb3d1366e
type: regular
task:
id: 954d7cf5-11b1-4693-8575-483bb3d1366e
version: -1
name: Get all site lists
script: '|||sigsci-get-all-site-lists'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "30"
scriptarguments:
siteName:
simple: test
separatecontext: false
view: |-
{
"position": {
"x": 780,
"y": 2820
}
}
note: false
timertriggers: []
ignoreworker: false
"30":
id: "30"
taskid: 1452c4d3-3e23-44c7-87a7-cf036be8d6f4
type: condition
task:
id: 1452c4d3-3e23-44c7-87a7-cf036be8d6f4
version: -1
name: Verify site list was deleted
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "32"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotExists
left:
value:
simple: SigSciences.Corp.Site.List.Name
iscontext: true
view: |-
{
"position": {
"x": 780,
"y": 2990
}
}
note: false
timertriggers: []
ignoreworker: false
"31":
id: "31"
taskid: 3a0369c9-b6b8-41aa-8265-53270ada650c
type: title
task:
id: 3a0369c9-b6b8-41aa-8265-53270ada650c
version: -1
name: Test site lists
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "64"
separatecontext: false
view: |-
{
"position": {
"x": 790,
"y": 645
}
}
note: false
timertriggers: []
ignoreworker: false
"32":
id: "32"
taskid: 07bcfc53-8ccf-4740-8a7c-f9156683efa2
type: title
task:
id: 07bcfc53-8ccf-4740-8a7c-f9156683efa2
version: -1
name: Test corp lists
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "67"
separatecontext: false
view: |-
{
"position": {
"x": 780,
"y": 3125
}
}
note: false
timertriggers: []
ignoreworker: false
"33":
id: "33"
taskid: ce01c41f-e1cf-459b-8b91-dbcf2fa9a799
type: regular
task:
id: ce01c41f-e1cf-459b-8b91-dbcf2fa9a799
version: -1
name: Create corp list
script: '|||sigsci-create-corp-list'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':