forked from demisto/content
/
Cortex_ASM_-_AWS_Enrichment.yml
1717 lines (1717 loc) · 41.6 KB
/
Cortex_ASM_-_AWS_Enrichment.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: Cortex ASM - AWS Enrichment
version: -1
name: Cortex ASM - AWS Enrichment
description: Given the IP address this playbook enriches AWS information relevant to ASM alerts.
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: b25d8768-11f3-4756-86ad-fc485976cd1c
type: start
task:
id: b25d8768-11f3-4756-86ad-fc485976cd1c
version: -1
name: ""
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "19"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 450,
"y": 0
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"1":
id: "1"
taskid: 47d08d0a-69e3-4645-8828-76dc8e052018
type: title
task:
id: 47d08d0a-69e3-4645-8828-76dc8e052018
version: -1
name: Set Field
description: commands.local.cmd.set.incident
type: title
iscommand: false
brand: Builtin
nexttasks:
'#none#':
- "4"
- "9"
- "22"
- "29"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 450,
"y": 330
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"2":
id: "2"
taskid: e29bf2dc-01e3-4a97-831d-bec367ccd5c7
type: regular
task:
id: e29bf2dc-01e3-4a97-831d-bec367ccd5c7
version: -1
name: Set private IP grid field
description: |-
Automation used to more easily populate a grid field. This is necessary when you want to assign certain values as static or if you have context paths that you will assign to different values as well. For example:
`!GridFieldSetup keys=ip,src val1=${AWS.EC2.Instances.NetworkInterfaces.PrivateIpAddress} val2="AWS" gridfiled="gridfield"`
scriptName: GridFieldSetup
type: regular
iscommand: false
brand: Builtin
nexttasks:
'#none#':
- "30"
scriptarguments:
gridfield:
simple: asmprivateip
keys:
simple: ip,source
val1:
complex:
root: AWS.EC2.Instances.NetworkInterfaces
accessor: PrivateIpAddress
val2:
simple: AWS
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 770,
"y": 950
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"4":
id: "4"
taskid: ec05bcc1-ff6f-4fc7-84d6-e6e5ddfdbc07
type: condition
task:
id: ec05bcc1-ff6f-4fc7-84d6-e6e5ddfdbc07
version: -1
name: Is there EC2 information?
description: Determines if there is EC2 information to set the private IP, cloud, and tags fields.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "32"
"yes":
- "15"
- "6"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
complex:
root: AWS.EC2.Instances.NetworkInterfaces
accessor: PrivateIpAddress
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 980,
"y": 505
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"6":
id: "6"
taskid: 9ebe91b8-3e7b-4c70-897f-b4fbbd158e59
type: title
task:
id: 9ebe91b8-3e7b-4c70-897f-b4fbbd158e59
version: -1
name: Private IP
type: title
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "2"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 770,
"y": 795
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"8":
id: "8"
taskid: 442527df-5f69-4806-8dea-30bc6f8eb5a4
type: title
task:
id: 442527df-5f69-4806-8dea-30bc6f8eb5a4
version: -1
name: System IDs
type: title
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "56"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 90,
"y": 720
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"9":
id: "9"
taskid: ca854e89-2950-4f69-82c0-cdf88e5d1247
type: condition
task:
id: ca854e89-2950-4f69-82c0-cdf88e5d1247
version: -1
name: Is there EC2 and security group information?
description: Determines if there is EC2 and security group information to set in the system IDs field.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "38"
"yes":
- "8"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
complex:
root: AWS.EC2
accessor: Instances
iscontext: true
- - operator: isNotEmpty
left:
value:
complex:
root: AWS.EC2.SecurityGroups
accessor: GroupId
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 90,
"y": 515
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"10":
id: "10"
taskid: e3876064-4756-4e6e-8f54-4a81f24169fa
type: regular
task:
id: e3876064-4756-4e6e-8f54-4a81f24169fa
version: -1
name: Set system IDs grid field (VPC)
description: |-
Automation used to more easily populate a grid field. This is necessary when you want to assign certain values as static or if you have context paths that you will assign to different values as well. For example:
`!GridFieldSetup keys=ip,src val1=${AWS.EC2.Instances.NetworkInterfaces.PrivateIpAddress} val2="AWS" gridfiled="gridfield"`
scriptName: GridFieldSetup
type: regular
iscommand: false
brand: Builtin
nexttasks:
'#none#':
- "11"
scriptarguments:
gridfield:
simple: asmsystemids
keys:
simple: type,id,link
val1:
simple: ASSET-VIRTUAL-NET
val2:
complex:
root: AWS.EC2.SecurityGroups
accessor: VpcId
val3:
simple: n/a
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 90,
"y": 1020
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"11":
id: "11"
taskid: c203783c-695d-406b-8dc9-ca07823b2dd5
type: regular
task:
id: c203783c-695d-406b-8dc9-ca07823b2dd5
version: -1
name: Set system IDs grid field (SG)
description: |-
Automation used to more easily populate a grid field. This is necessary when you want to assign certain values as static or if you have context paths that you will assign to different values as well. For example:
`!GridFieldSetup keys=ip,src val1=${AWS.EC2.Instances.NetworkInterfaces.PrivateIpAddress} val2="AWS" gridfiled="gridfield"`
scriptName: GridFieldSetup
type: regular
iscommand: false
brand: Builtin
nexttasks:
'#none#':
- "12"
scriptarguments:
gridfield:
simple: asmsystemids
keys:
simple: type,id,link
val1:
simple: ASSET-SG
val2:
complex:
root: AWS.EC2.SecurityGroups
accessor: GroupId
val3:
simple: n/a
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 90,
"y": 1190
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"12":
id: "12"
taskid: 4e61b33f-914b-4452-84fe-0312039ae71b
type: regular
task:
id: 4e61b33f-914b-4452-84fe-0312039ae71b
version: -1
name: Set system IDs grid field (subnet ID)
description: |-
Automation used to more easily populate a grid field. This is necessary when you want to assign certain values as static or if you have context paths that you will assign to different values as well. For example:
`!GridFieldSetup keys=ip,src val1=${AWS.EC2.Instances.NetworkInterfaces.PrivateIpAddress} val2="AWS" gridfiled="gridfield"`
scriptName: GridFieldSetup
type: regular
iscommand: false
brand: Builtin
nexttasks:
'#none#':
- "13"
scriptarguments:
gridfield:
simple: asmsystemids
keys:
simple: type,id,link
val1:
simple: ASSET-SUBNET-ID
val2:
complex:
root: AWS.EC2.Instances
accessor: SubnetId
val3:
simple: n/a
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 90,
"y": 1360
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"13":
id: "13"
taskid: e025b490-dbe7-423d-8df9-d5d24eeb18e8
type: regular
task:
id: e025b490-dbe7-423d-8df9-d5d24eeb18e8
version: -1
name: Set system IDs grid field (NIC)
description: |-
Automation used to more easily populate a grid field. This is necessary when you want to assign certain values as static or if you have context paths that you will assign to different values as well. For example:
`!GridFieldSetup keys=ip,src val1=${AWS.EC2.Instances.NetworkInterfaces.PrivateIpAddress} val2="AWS" gridfiled="gridfield"`
scriptName: GridFieldSetup
type: regular
iscommand: false
brand: Builtin
nexttasks:
'#none#':
- "14"
scriptarguments:
gridfield:
simple: asmsystemids
keys:
simple: type,id,link
val1:
simple: ASSET-NIC
val2:
complex:
root: AWS.EC2.Instances.NetworkInterfaces
accessor: NetworkInterfaceId
val3:
simple: n/a
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 90,
"y": 1540
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"14":
id: "14"
taskid: 5d503986-2c6b-4ed2-86ec-391e6287d72c
type: regular
task:
id: 5d503986-2c6b-4ed2-86ec-391e6287d72c
version: -1
name: Set system IDs grid field (EC2 ID)
description: |-
Automation used to more easily populate a grid field. This is necessary when you want to assign certain values as static or if you have context paths that you will assign to different values as well. For example:
`!GridFieldSetup keys=ip,src val1=${AWS.EC2.Instances.NetworkInterfaces.PrivateIpAddress} val2="AWS" gridfiled="gridfield"`
scriptName: GridFieldSetup
type: regular
iscommand: false
brand: Builtin
nexttasks:
'#none#':
- "39"
scriptarguments:
gridfield:
simple: asmsystemids
keys:
simple: type,id,link
val1:
simple: ASSET-ID
val2:
complex:
root: AWS.EC2.Instances
accessor: InstanceId
val3:
simple: n/a
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 90,
"y": 1710
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"15":
id: "15"
taskid: de9cfcfe-a153-446f-8b0f-fa6b5dde1c67
type: title
task:
id: de9cfcfe-a153-446f-8b0f-fa6b5dde1c67
version: -1
name: Cloud
type: title
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "16"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1190,
"y": 795
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"16":
id: "16"
taskid: 547608f7-8933-4aed-8cd1-ce8179b4be93
type: regular
task:
id: 547608f7-8933-4aed-8cd1-ce8179b4be93
version: -1
name: Set cloud grid field
description: |-
Automation used to more easily populate a grid field. This is necessary when you want to assign certain values as static or if you have context paths that you will assign to different values as well. For example:
`!GridFieldSetup keys=ip,src val1=${AWS.EC2.Instances.NetworkInterfaces.PrivateIpAddress} val2="AWS" gridfiled="gridfield"`
scriptName: GridFieldSetup
type: regular
iscommand: false
brand: Builtin
nexttasks:
'#none#':
- "33"
scriptarguments:
gridfield:
simple: asmcloud
keys:
simple: provider,organization,project,region,other
val1:
simple: AWS
val2:
simple: n/a
val3:
complex:
root: AWS.EC2.SecurityGroups
accessor: OwnerId
val4:
complex:
root: AWS.EC2.Instances
accessor: Region
val5:
complex:
root: AWS.EC2.Instances.Placement
accessor: AvailabilityZone
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1190,
"y": 950
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"17":
id: "17"
taskid: b581ac52-c661-4aa7-804a-ea4421ef26e8
type: title
task:
id: b581ac52-c661-4aa7-804a-ea4421ef26e8
version: -1
name: Tags
type: title
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "18"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1850,
"y": 895
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"18":
id: "18"
taskid: 67d4758f-539a-442e-86d3-d76c50d2cc6b
type: regular
task:
id: 67d4758f-539a-442e-86d3-d76c50d2cc6b
version: -1
name: Set tags grid field
description: |-
Automation used to more easily populate a grid field. This is necessary when you want to assign certain values as static or if you have context paths that you will assign to different values as well. For example:
`!GridFieldSetup keys=ip,src val1=${AWS.EC2.Instances.NetworkInterfaces.PrivateIpAddress} val2="AWS" gridfiled="gridfield"`
scriptName: GridFieldSetup
type: regular
iscommand: false
brand: Builtin
nexttasks:
'#none#':
- "34"
scriptarguments:
gridfield:
simple: asmtags
keys:
simple: key,value,source
val1:
complex:
root: AWS.EC2.Instances.Tags
accessor: Key
val2:
complex:
root: AWS.EC2.Instances.Tags
accessor: Value
val3:
simple: AWS
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1850,
"y": 1050
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"19":
id: "19"
taskid: cadd15f7-4c88-4788-8ba8-104d1e1d40b8
type: playbook
task:
id: cadd15f7-4c88-4788-8ba8-104d1e1d40b8
version: -1
name: AWS - Enrichment
description: Given the IP address this playbook enriches EC2 and IAM information.
playbookName: AWS - Enrichment
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
scriptarguments:
AwsIP:
complex:
root: inputs.RemoteIP
separatecontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 450,
"y": 150
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: true
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"20":
id: "20"
taskid: f43303fa-2d06-411d-8bac-41c19f91f324
type: title
task:
id: f43303fa-2d06-411d-8bac-41c19f91f324
version: -1
name: Closing Steps
type: title
iscommand: false
brand: ""
description: ''
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 460,
"y": 2100
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
nexttasks:
'#none#':
- "51"
"22":
id: "22"
taskid: 83764637-09bd-4581-81b2-16b469347e0e
type: condition
task:
id: 83764637-09bd-4581-81b2-16b469347e0e
version: -1
name: Are there EC2 tags?
description: Determines if there is EC2 tag information to set the tags fields.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "32"
"yes":
- "17"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
complex:
root: AWS.EC2.Instances.Tags
accessor: Key
iscontext: true
right:
value: {}
continueonerrortype: ""
view: |-
{
"position": {
"x": 1850,
"y": 505
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"23":
id: "23"
taskid: 7958cf3d-a625-4fd5-82c7-b841d8371edb
type: playbook
task:
id: 7958cf3d-a625-4fd5-82c7-b841d8371edb
version: -1
name: AWS - Unclaimed S3 Bucket Validation
description: The playbook sends a HTTP get response to the hostname and validates if there is missing bucket information.
playbookName: AWS - Unclaimed S3 Bucket Validation
type: playbook
iscommand: false
brand: ""
nexttasks:
'#none#':
- "24"
separatecontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": -530,
"y": 810
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: true
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"24":
id: "24"
taskid: 4a02ac94-0ffe-47c0-88b6-8570145e411e
type: condition
task:
id: 4a02ac94-0ffe-47c0-88b6-8570145e411e
version: -1
name: Was an S3 bucket passed back?
description: Determines if an S3 bucket was passed back or not.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "41"
"yes":
- "57"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isNotEmpty
left:
value:
complex:
root: S3BucketName
iscontext: true
continueonerrortype: ""
view: |-
{
"position": {
"x": -530,
"y": 995
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"28":
id: "28"
taskid: 88cfb45f-162a-47f8-8226-79825c0ea95e
type: regular
task:
id: 88cfb45f-162a-47f8-8226-79825c0ea95e
version: -1
name: Set system IDs grid field (BucketName)
description: |-
Automation used to more easily populate a grid field. This is necessary when you want to assign certain values as static or if you have context paths that you will assign to different values as well. For example:
`!GridFieldSetup keys=ip,src val1=${AWS.EC2.Instances.NetworkInterfaces.PrivateIpAddress} val2="AWS" gridfiled="gridfield"`
scriptName: GridFieldSetup
type: regular
iscommand: false
brand: Builtin
nexttasks:
'#none#':
- "40"
scriptarguments:
gridfield:
simple: asmsystemids
keys:
simple: type,id,link
val1:
simple: ASSET-ID
val2:
complex:
root: S3BucketName
val3:
simple: n/a
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": -530,
"y": 1455
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"29":
id: "29"
taskid: 796b66ae-3596-4b3e-855e-bc817789f2ae
type: condition
task:
id: 796b66ae-3596-4b3e-855e-bc817789f2ae
version: -1
name: What is the sub-alert type?
description: Determines the ASM sub-alert type for different scans.
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "41"
Unclaimed S3 Bucket:
- "23"
separatecontext: false
conditions:
- label: Unclaimed S3 Bucket
condition:
- - operator: inList
left:
value:
complex:
root: inputs.ASMRuleID
transformers:
- operator: StripChars
args:
chars:
value:
simple: '[\"]'
iscontext: true
right:
value:
simple: UnclaimedS3Bucket
continueonerrortype: ""
view: |-
{
"position": {
"x": -410,
"y": 505
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"30":
id: "30"
taskid: 94db8910-5e53-44fa-8c33-97d5b09d2f98
type: regular
task:
id: 94db8910-5e53-44fa-8c33-97d5b09d2f98
version: -1
name: Set true flag for completed enrichment
description: Set a value in context under the key you entered.
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "20"
scriptarguments:
append:
simple: "true"
key:
simple: asm_enrichment_flag_aws
value:
simple: "true"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 770,
"y": 1140
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"32":
id: "32"
taskid: f5c91425-347c-4e63-8d5e-cda1d12c78bd
type: regular
task:
id: f5c91425-347c-4e63-8d5e-cda1d12c78bd