/
master-compliance-test.json
5762 lines (5762 loc) · 328 KB
/
master-compliance-test.json
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
{
"testSet": [
{
"masterTestName": "AZURE_iac_TEST",
"version": "0.1",
"cases": [
{
"masterTestId": "TEST_ACTIVITY_LOG_ALERT",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(activitylogalerts.rego)",
"evals": [
{
"id": "PR-AZR-ARM-MNT-001",
"eval": "data.rule.alerts",
"message": "data.rule.alerts_err",
"remediationDescription": "Make sure you are following the ARM template guidelines for Activity Log Alert by visiting <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.insights/2017-04-01/activitylogalerts' target='_blank'>here</a>",
"remediationFunction": "PR_AZR_ARM_MNT_001.py"
}
],
"severity": "Low",
"title": "Activity log alerts settings should be enabled",
"description": "Activity log alerts are alerts that activate when a new activity log event occurs that matches the conditions specified in the alert. Based on the order and volume of the events recorded in Azure activity log, the alert rule will fire. Activity log alert rules are Azure resources, so they can be created by using an Azure Resource Manager template. ",
"tags": [
{
"cloud": "git",
"compliance": [
"CIS",
"CSA-CCM",
"HIPAA",
"ISO",
"NIST 800",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.insights/activitylogalerts"
]
},
{
"masterTestId": "TEST_AKS_1",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(aks.rego)",
"evals": [
{
"id": "PR-AZR-ARM-AKS-001",
"eval": "data.rule.aks_cni_net",
"message": "data.rule.aks_cni_net_err",
"remediationDescription": "Make sure you are following the ARM template guidelines for AKS by visiting <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.containerservice/managedclusters' target='_blank'>here</a>",
"remediationFunction": "PR_AZR_ARM_AKS_001.py"
}
],
"severity": "Medium",
"title": "Azure CNI networking should be enabled in Azure AKS cluster",
"description": "Azure CNI provides the following features over kubenet networking:<br><br>- Every pod in the cluster is assigned an IP address in the virtual network. The pods can directly communicate with other pods in the cluster, and other nodes in the virtual network.<br>- Pods in a subnet that have service endpoints enabled can securely connect to Azure services, such as Azure Storage and SQL DB.<br>- You can create user-defined routes (UDR) to route traffic from pods to a Network Virtual Appliance.<br>- Support for Network Policies securing communication between pods.<br><br>This policy checks your AKS cluster for the Azure CNI network plugin and generates an alert if not found.",
"tags": [
{
"cloud": "git",
"compliance": [
"CSA-CCM",
"HITRUST",
"NIST 800",
"NIST CSF",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.containerservice/managedclusters"
]
},
{
"masterTestId": "TEST_AKS_2",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(aks.rego)",
"evals": [
{
"id": "PR-AZR-ARM-AKS-002",
"eval": "data.rule.aks_http_routing",
"message": "data.rule.aks_http_routing_err",
"remediationDescription": "Make sure you are following the ARM template guidelines for AKS by visiting <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.containerservice/managedclusters' target='_blank'>here</a> for addonProfiles.httpApplicationRouting.enabled",
"remediationFunction": "PR_AZR_ARM_AKS_002.py"
}
],
"severity": "Low",
"title": "Azure AKS cluster HTTP application routing should be disabled",
"description": "The HTTP application routing add-on is designed to let you quickly create an ingress controller and access your applications. This add-on is not currently designed for use in a production environment and is not recommended for production use. For production-ready ingress deployments that include multiple replicas and TLS support, see Create an HTTPS ingress controller.",
"tags": [
{
"cloud": "git",
"compliance": [
"CIS",
"CSA-CCM",
"HITRUST",
"NIST 800",
"NIST CSF",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.containerservice/managedclusters"
]
},
{
"masterTestId": "TEST_AKS_3",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(aks.rego)",
"evals": [
{
"id": "PR-AZR-ARM-AKS-003",
"eval": "data.rule.aks_monitoring",
"message": "data.rule.aks_monitoring_err",
"remediationDescription": "Make sure you are following the ARM template guidelines for AKS by visiting <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.containerservice/managedclusters' target='_blank'>here</a> for addonProfiles.omsagent.enabled",
"remediationFunction": "PR_AZR_ARM_AKS_003.py"
}
],
"severity": "Low",
"title": "Azure AKS cluster monitoring should be enabled",
"description": "Azure Monitor for containers gives you performance visibility by collecting memory and processor metrics from controllers, nodes, and containers that are available in Kubernetes through the Metrics API. Container logs are also collected. After you enable monitoring from Kubernetes clusters, metrics and logs are automatically collected for you through a containerized version of the Log Analytics agent for Linux. Metrics are written to the metrics store and log data is written to the logs store associated with your Log Analytics workspace.",
"tags": [
{
"cloud": "git",
"compliance": [
"CSA-CCM",
"HITRUST",
"NIST 800",
"NIST CSF",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.containerservice/managedclusters"
]
},
{
"masterTestId": "TEST_AKS_4",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(aks.rego)",
"evals": [
{
"id": "PR-AZR-ARM-AKS-004",
"eval": "data.rule.aks_nodes",
"message": "data.rule.aks_nodes_err",
"remediationDescription": "Make sure you are following the ARM template guidelines for AKS by visiting <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.containerservice/managedclusters' target='_blank'>here</a>. Set minCount for Minimum number of nodes for auto-scaling to 3",
"remediationFunction": "PR_AZR_ARM_AKS_004.py"
}
],
"severity": "Medium",
"title": "Azure AKS cluster pool profile count should contain 3 nodes or more",
"description": "Ensure your AKS cluster pool profile count contains 3 or more nodes. This is recommended for a more resilient cluster. (Clusters smaller than 3 may experience downtime during upgrades.)<br><br>This policy checks the size of your cluster pool profiles and alerts if there are fewer than 3 nodes.",
"tags": [
{
"cloud": "git",
"compliance": [
"CSA-CCM",
"HITRUST",
"NIST 800",
"NIST CSF",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.containerservice/managedclusters"
]
},
{
"masterTestId": "TEST_AKS_5",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(aks.rego)",
"evals": [
{
"id": "PR-AZR-ARM-AKS-005",
"eval": "data.rule.aks_rbac",
"message": "data.rule.aks_rbac_err",
"remediationDescription": "Make sure you are following the ARM template guidelines for AKS by visiting <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.containerservice/managedclusters' target='_blank'>here</a>. Set enable RBAC to true to enable Kubernetes Role-Based Access Control.",
"remediationFunction": "PR_AZR_ARM_AKS_005.py"
}
],
"severity": "High",
"title": "Azure AKS enable role-based access control (RBAC) should be enforced",
"description": "To provide granular filtering of the actions that users can perform, Kubernetes uses role-based access controls (RBAC). This control mechanism lets you assign users, or groups of users, permission to do things like create or modify resources, or view logs from running application workloads. These permissions can be scoped to a single namespace, or granted across the entire AKS cluster._x005F<br>_x005F<br>This policy checks your AKS cluster RBAC setting and alerts if disabled.",
"tags": [
{
"cloud": "git",
"compliance": [
"CIS",
"CSA-CCM",
"HITRUST",
"NIST 800",
"NIST CSF",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.containerservice/managedclusters"
]
},
{
"masterTestId": "TEST_AKS_6",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(aks.rego)",
"evals": [
{
"id": "PR-AZR-ARM-AKS-006",
"eval": "data.rule.aks_aad_azure_rbac",
"message": "data.rule.aks_aad_azure_rbac_err",
"remediationDescription": "Make sure aadProfile property of type object exist in ARM template with boolean managed = true and enableAzureRBAC = true as child property. Please visit <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.containerservice/managedclusters?tabs=json#managedclusteraadprofile-object' target='_blank'>here</a> for details.",
"remediationFunction": "PR_AZR_ARM_AKS_006.py"
}
],
"severity": "Medium",
"title": "Managed Azure AD RBAC for AKS cluster should be enabled",
"description": "Azure Kubernetes Service (AKS) can be configured to use Azure Active Directory (AD) for user authentication. In this configuration, you sign in to an AKS cluster using an Azure AD authentication token. You can also configure Kubernetes role-based access control (Kubernetes RBAC) to limit access to cluster resources based a user's identity or group membership. Visit https://docs.microsoft.com/en-us/azure/aks/azure-ad-rbac for details.",
"tags": [
{
"cloud": "git",
"compliance": [
"CSA-CCM",
"HITRUST",
"NIST 800",
"NIST CSF",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.containerservice/managedclusters"
]
},
{
"masterTestId": "TEST_AKS_9",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(aks.rego)",
"evals": [
{
"id": "PR-AZR-ARM-AKS-009",
"eval": "data.rule.aks_kub_dashboard_disabled",
"message": "data.rule.aks_kub_dashboard_disabled_err",
"remediationDescription": "For resource type 'microsoft.containerservice/managedclusters' make sure property 'addonProfiles.kubeDashboard.enabled' exist and its value set to 'false' to fix the issue. Please visit <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.containerservice/managedclusters?tabs=json' target='_blank'>here</a> for details.",
"remediationFunction": "PR_AZR_ARM_AKS_009.py"
}
],
"severity": "Medium",
"title": "Ensure Kubernetes Dashboard is disabled",
"description": "Disable the Kubernetes dashboard on Azure Kubernetes Service",
"tags": [
{
"cloud": "git",
"compliance": [],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.containerservice/managedclusters"
]
},
{
"masterTestId": "TEST_APPLICATION_GATEWAYS_1",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(applicationgateways.rego)",
"evals": [
{
"id": "PR-AZR-ARM-AGW-001",
"eval": "data.rule.gw_tls",
"message": "data.rule.gw_tls_err",
"remediationDescription": "Make sure you are following the ARM template guidelines for Application Gateway by visiting <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.network/applicationgateways' target='_blank'>here</a>. Ssl protocols to be disabled on application gateway. - TLSv1_0, TLSv1_1",
"remediationFunction": "PR_AZR_ARM_AGW_001.py"
}
],
"severity": "Medium",
"title": "Azure Application Gateway should not allow TLSv1.1 or lower",
"description": "Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), is the standard security technology for establishing an encrypted link between a web server and a browser. This link ensures that all data passed between the web server and browsers remain private and encrypted. Application gateway supports both TLS termination at the gateway as well as end to end TLS encryption. The minimum allowed TLS version should be 1.2",
"tags": [
{
"cloud": "git",
"compliance": [
"CIS",
"CSA-CCM",
"HITRUST",
"NIST 800",
"NIST CSF",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.network/applicationgateways"
]
},
{
"masterTestId": "TEST_APPLICATION_GATEWAYS_2",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(applicationgateways.rego)",
"evals": [
{
"id": "PR-AZR-ARM-AGW-002",
"eval": "data.rule.gw_waf",
"message": "data.rule.gw_waf_err",
"remediationDescription": "Make sure you are following the ARM template guidelines for Application Gateway by visiting <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.network/applicationgateways' target='_blank'>here</a>. webApplicationFirewallConfiguration should be enabled",
"remediationFunction": "PR_AZR_ARM_AGW_002.py"
}
],
"severity": "Medium",
"title": "Azure Application Gateway should have the Web application firewall (WAF) enabled",
"description": "Azure Web Application Firewall (WAF) on Azure Application Gateway provides centralized protection of your web applications from common exploits and vulnerabilities. Web applications are increasingly targeted by malicious attacks that exploit commonly known vulnerabilities. SQL injection and cross-site scripting are among the most common attacks.",
"tags": [
{
"cloud": "git",
"compliance": [
"CSA-CCM",
"HITRUST",
"NIST 800",
"NIST CSF",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.network/applicationgateways"
]
},
{
"masterTestId": "TEST_APPLICATION_GATEWAYS_3",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(applicationgateways.rego)",
"evals": [
{
"id": "PR-AZR-ARM-AGW-003",
"eval": "data.rule.protocol",
"message": "data.rule.protocol_err",
"remediationDescription": "",
"remediationFunction": "PR_AZR_ARM_AGW_003.py"
}
],
"severity": "Medium",
"title": "Ensure Application Gateway is using Https protocol",
"description": "Application Gateway allows to set network protocols Http and Https. It is highly recommended to use Https protocol for secure connections.",
"tags": [
{
"cloud": "git",
"compliance": [
"CSA-CCM",
"HITRUST",
"NIST 800",
"NIST CSF",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.network/applicationgateways"
]
},
{
"masterTestId": "TEST_APPLICATION_GATEWAYS_4",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(applicationgateways.rego)",
"evals": [
{
"id": "PR-AZR-ARM-AGW-004",
"eval": "data.rule.frontendPublicIPConfigurationsDisabled",
"message": "data.rule.frontendPublicIPConfigurationsDisabled_err",
"remediationDescription": "For resource type 'microsoft.network/applicationgateways' make sure 'properties.publicIPAddress' does not exist under 'frontendIPConfigurations' to fix the issue.<br>Please visit <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.network/applicationgateways?tabs=json#applicationgatewayfrontendipconfiguration' target='_blank'>here</a> for details.",
"remediationFunction": "PR_AZR_ARM_AGW_004.py"
}
],
"severity": "Medium",
"title": "Ensure Application Gateway frontendIPConfigurations does not have public ip configured",
"description": "Application Gateway allows to set public or private ip in frontendIPConfigurations. It is highly recommended to only configure private ip in frontendIPConfigurations.",
"tags": [
{
"cloud": "git",
"compliance": [
"CSA-CCM",
"HITRUST",
"NIST 800",
"NIST CSF",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.network/applicationgateways"
]
},
{
"masterTestId": "TEST_APPLICATION_GATEWAYS_5",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(applicationgateways.rego)",
"evals": [
{
"id": "PR-AZR-ARM-AGW-005",
"eval": "data.rule.backend_https_protocol_enabled",
"message": "data.rule.backend_https_protocol_enabled_err",
"remediationDescription": "For resource type 'microsoft.network/applicationgateways' make sure 'properties.protocol' has value 'https' under 'backendHttpSettingsCollection' to fix the issue.<br>Please visit <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.network/applicationgateways?tabs=json#applicationgatewaybackendhttpsettings' target='_blank'>here</a> for details.",
"remediationFunction": "PR_AZR_ARM_AGW_005.py"
}
],
"severity": "Medium",
"title": "Ensure Application Gateway Backend is using Https protocol",
"description": "Application Gateway allows to set backend network protocols Http and Https. It is highly recommended to use Https protocol for secure connections.",
"tags": [
{
"cloud": "git",
"compliance": [
"CSA-CCM",
"HITRUST",
"NIST 800",
"NIST CSF",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.network/applicationgateways"
]
},
{
"masterTestId": "TEST_APPLICATION_GATEWAYS_6",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(applicationgateways.rego)",
"evals": [
{
"id": "PR-AZR-ARM-AGW-006",
"eval": "data.rule.secret_certificate_is_in_keyvalut",
"message": "data.rule.secret_certificate_is_in_keyvalut_err",
"remediationDescription": "For resource type 'microsoft.network/applicationgateways' make sure 'properties.keyVaultSecretId' has target key vault id under 'sslCertificates' to fix the issue.<br>Please visit <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.network/applicationgateways?tabs=json#applicationgatewaysslcertificate' target='_blank'>here</a> for details.",
"remediationFunction": "PR_AZR_ARM_AGW_006.py"
}
],
"severity": "Medium",
"title": "Ensure Application Gateway secret certificates stores in keyvault",
"description": "This policy will identify application gateways which dont have ssl certificates stored in keyvalut and alert",
"tags": [
{
"cloud": "git",
"compliance": [
"CSA-CCM",
"HITRUST",
"NIST 800",
"NIST CSF",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.network/applicationgateways"
]
},
{
"masterTestId": "TEST_BLOB_SERVICE_1",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(blobservices.rego)",
"evals": [
{
"id": "PR-AZR-ARM-STR-001",
"eval": "data.rule.storage_blob_soft_delete",
"message": "data.rule.storage_blob_soft_delete_err",
"remediationDescription": "For resource type \"Microsoft.storage/storageaccounts/blobservices\" make sure properties.deleteRetentionPolicy.enabled exists and value is set to true .<br>Please visit <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.storage/storageaccounts/blobservices' target='_blank'>here</a> for details.",
"remediationFunction": "PR_AZR_ARM_STR_001.py"
}
],
"severity": "Medium",
"title": "Soft delete on blob service should be enabled",
"description": "The blob service properties for blob soft delete. It helps to restore removed blob within configured retention days",
"tags": [
{
"cloud": "git",
"compliance": [
"CIS",
"CSA=CCM",
"HITTRUST",
"NIST 800",
"NIST CSF",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.storage/storageaccounts/blobservices"
]
},
{
"masterTestId": "TEST_BLOB_SERVICE_2",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(blobservices.rego)",
"evals": [
{
"id": "PR-AZR-ARM-STR-002",
"eval": "data.rule.storage_blob_container_soft_delete",
"message": "data.rule.storage_blob_container_soft_delete_err",
"remediationDescription": "For resource type \"Microsoft.storage/storageaccounts/blobservices\" make sure properties.containerDeleteRetentionPolicy.enabled exists and value is set to true .<br>Please visit <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.storage/storageaccounts/blobservices' target='_blank'>here</a> for details.",
"remediationFunction": "PR_AZR_ARM_STR_002.py"
}
],
"severity": "Medium",
"title": "Soft delete on blob service container should be enabled",
"description": "The blob service properties for container soft delete. It helps to restore removed blob containers within configured retention days.",
"tags": [
{
"cloud": "git",
"compliance": [
"CIS",
"CSA=CCM",
"HITTRUST",
"NIST 800",
"NIST CSF",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.storage/storageaccounts/blobservices"
]
},
{
"masterTestId": "TEST_DATABRICKS_1",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(databricks.rego)",
"evals": [
{
"id": "PR-AZR-ARM-DBK-001",
"eval": "data.rule.databrics_workspace_has_public_ip_disabled",
"message": "data.rule.databrics_workspace_has_public_ip_disabled_err",
"remediationDescription": "In Resource of type \"microsoft.databricks/workspaces\" make sure properties.parameters.enableNoPublicIp exist and its value set to true.<br>Please visit <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.databricks/workspaces?tabs=json' target='_blank'>here</a> for details.",
"remediationFunction": "PR_AZR_ARM_DBK_001.py"
}
],
"severity": "High",
"title": "Azure Databricks shoud not use public IP address",
"description": "Azure Databricks is a data analytics platform optimized for the Microsoft Azure cloud services platform. This policy will identify Databricks which does not have public ip disabled and warn.",
"tags": [
{
"cloud": "git",
"compliance": [
"Best Practices"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.databricks/workspaces"
]
},
{
"masterTestId": "TEST_DATABRICKS_2",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(databricks.rego)",
"evals": [
{
"id": "PR-AZR-ARM-DBK-002",
"eval": "data.rule.databrics_workspace_has_vnet_integration",
"message": "data.rule.databrics_workspace_has_vnet_integration_err",
"remediationDescription": "In Resource of type \"microsoft.databricks/workspaces\" make sure properties.parameters.customVirtualNetworkId exist and its value set to id of existing vnet.<br>Please visit <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.databricks/workspaces?tabs=json' target='_blank'>here</a> for details.",
"remediationFunction": "PR_AZR_ARM_DBK_002.py"
}
],
"severity": "Medium",
"title": "Azure Databricks should have vnet integration",
"description": "Azure Databricks is a data analytics platform optimized for the Microsoft Azure cloud services platform. This policy will identify Databricks which does not have vnet integration and warn.",
"tags": [
{
"cloud": "git",
"compliance": [
"Best Practices"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.databricks/workspaces"
]
},
{
"masterTestId": "TEST_DB_ADMINISTRATORS_1",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(dbadministrators.rego)",
"evals": [
{
"id": "PR-AZR-ARM-SQL-001",
"eval": "data.rule.sql_server_ad_admin",
"message": "data.rule.sql_server_ad_admin_err",
"remediationDescription": "Make sure you are following the ARM template guidelines for SQL Server by visiting <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.sql/2019-06-01-preview/servers/administrators' target='_blank'>here</a>. administratorType should be ActiveDirectory",
"remediationFunction": "PR_AZR_ARM_SQL_001.py"
}
],
"severity": "Medium",
"title": "SQL servers should be integrated with Azure Active Directory for administration",
"description": "Checks to ensure that SQL servers are configured with Active Directory admin authentication. Azure Active Directory (Azure AD) authentication is a mechanism for connecting to Azure SQL Database, Azure SQL Managed Instance, and Synapse SQL in Azure Synapse Analytics by using identities in Azure AD. With Azure AD authentication, you can centrally manage the identities of database users and other Microsoft services in one central location. Central ID management provides a single place to manage database users and simplifies permission management.",
"tags": [
{
"cloud": "git",
"compliance": [
"CSA-CCM",
"ISO 27001",
"NIST 800",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.sql/servers",
"microsoft.sql/managedinstances/administrators",
"microsoft.sql/servers/administrators"
]
},
{
"masterTestId": "TEST_DB_ADMINISTRATORS_2",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(dbadministrators.rego)",
"evals": [
{
"id": "PR-AZR-ARM-SQL-003",
"eval": "data.rule.sql_managedinstances_ad_admin",
"message": "data.rule.sql_managedinstances_ad_admin_err",
"remediationDescription": "Make sure you are following the ARM template guidelines for SQL managedInstances by visiting <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.sql/managedinstances/administrators?tabs=json' target='_blank'>here</a>. administratorType should be ActiveDirectory",
"remediationFunction": "PR_AZR_ARM_SQL_003.py"
}
],
"severity": "Medium",
"title": "SQL managedInstances should be integrated with Azure Active Directory for administration",
"description": "Checks to ensure that SQL managedInstances are configured with Active Directory admin authentication. Azure Active Directory (Azure AD) authentication is a mechanism for connecting to Azure SQL Database, Azure SQL Managed Instance, and Synapse SQL in Azure Synapse Analytics by using identities in Azure AD. With Azure AD authentication, you can centrally manage the identities of database users and other Microsoft services in one central location. Central ID management provides a single place to manage database users and simplifies permission management.",
"tags": [
{
"cloud": "git",
"compliance": [
"CSA-CCM",
"ISO 27001",
"NIST 800",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.sql/servers",
"microsoft.sql/managedinstances/administrators",
"microsoft.sql/servers/administrators"
]
},
{
"masterTestId": "TEST_DB_ADMINISTRATORS_3",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(dbadministrators.rego)",
"evals": [
{
"id": "PR-AZR-ARM-SQL-002",
"eval": "data.rule.sql_logical_server_ad_admin",
"message": "data.rule.sql_logical_server_ad_admin_err",
"remediationDescription": "Make sure you are following the ARM template guidelines for SQL Server by visiting <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.sql/2019-06-01-preview/servers/administrators' target='_blank'>here</a>. administratorType should be ActiveDirectory",
"remediationFunction": "PR_AZR_ARM_SQL_002.py"
}
],
"severity": "Medium",
"title": "SQL servers should be integrated with Azure Active Directory for administration",
"description": "Checks to ensure that SQL servers are configured with Active Directory admin authentication. Azure Active Directory (Azure AD) authentication is a mechanism for connecting to Azure SQL Database, Azure SQL Managed Instance, and Synapse SQL in Azure Synapse Analytics by using identities in Azure AD. With Azure AD authentication, you can centrally manage the identities of database users and other Microsoft services in one central location. Central ID management provides a single place to manage database users and simplifies permission management.",
"tags": [
{
"cloud": "git",
"compliance": [
"CSA-CCM",
"ISO 27001",
"NIST 800",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.sql/servers",
"microsoft.sql/managedinstances/administrators",
"microsoft.sql/servers/administrators"
]
},
{
"masterTestId": "TEST_DB_AUDITING_SETTINGS_1",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(dbauditingsettings.rego)",
"evals": [
{
"id": "PR-AZR-ARM-SQL-004",
"eval": "data.rule.sql_db_log_audit",
"message": "data.rule.sql_db_log_audit_err",
"remediationDescription": "Make sure you are following the ARM template guidelines for SQL Server by visiting <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.sql/2017-03-01-preview/servers/databases/auditingsettings' target='_blank'>here</a> . Make sure the state of auditing is enabled",
"remediationFunction": "PR_AZR_ARM_SQL_004.py"
}
],
"severity": "Medium",
"title": "Auditing for SQL database should be enabled",
"description": "Database events are tracked by the Auditing feature and the events are written to an audit log in your Azure storage account. This process helps you to monitor database activity, and get insight into anomalies that could indicate business concerns or suspected security violations.",
"tags": [
{
"cloud": "git",
"compliance": [
"CIS",
"CSA-CCM",
"HIPAA",
"ISO 27001",
"NIST 800",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.sql/servers/databases",
"microsoft.sql/servers/databases/auditingsettings"
]
},
{
"masterTestId": "TEST_DB_AUDITING_SETTINGS_2",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(dbauditingsettings.rego)",
"evals": [
{
"id": "PR-AZR-ARM-SQL-006",
"eval": "data.rule.sql_db_log_retention",
"message": "data.rule.sql_db_log_retention_err",
"remediationDescription": "Make sure you are following the ARM template guidelines for SQL Server by visiting <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.sql/2017-03-01-preview/servers/databases/auditingsettings' target='_blank'>here</a>. Make sure retentionDays is at least 90",
"remediationFunction": "PR_AZR_ARM_SQL_006.py"
}
],
"severity": "Medium",
"title": "Azure SQL Database Auditing Retention should be 90 days or more",
"description": "This policy identifies SQL Databases which have Auditing Retention less than 90 days. Audit Logs can be used to check for anomalies and gives insight into suspected breaches or misuse of information and access. It is recommended to configure SQL database Audit Retention to be greater than or equal to 90 days.",
"tags": [
{
"cloud": "git",
"compliance": [
"CIS",
"CSA-CCM",
"HIPAA",
"ISO 27001",
"NIST 800",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.sql/servers/databases",
"microsoft.sql/servers/databases/auditingsettings"
]
},
{
"masterTestId": "TEST_DB_AUDITING_SETTINGS_3",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(dbauditingsettings.rego)",
"evals": [
{
"id": "PR-AZR-ARM-SQL-005",
"eval": "data.rule.sql_logical_db_log_audit",
"message": "data.rule.sql_logical_db_log_audit_err",
"remediationDescription": "Make sure you are following the ARM template guidelines for SQL Server by visiting <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.sql/2017-03-01-preview/servers/databases/auditingsettings' target='_blank'>here</a>. Make sure the state of auditing is enabled",
"remediationFunction": "PR_AZR_ARM_SQL_005.py"
}
],
"severity": "Medium",
"title": "Auditing for SQL database should be enabled",
"description": "Database events are tracked by the Auditing feature and the events are written to an audit log in your Azure storage account. This process helps you to monitor database activity, and get insight into anomalies that could indicate business concerns or suspected security violations.",
"tags": [
{
"cloud": "git",
"compliance": [
"CIS",
"CSA-CCM",
"HIPAA",
"ISO 27001",
"NIST 800",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.sql/servers/databases",
"microsoft.sql/servers/databases/auditingsettings"
]
},
{
"masterTestId": "TEST_DB_AUDITING_SETTINGS_4",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(dbauditingsettings.rego)",
"evals": [
{
"id": "PR-AZR-ARM-SQL-007",
"eval": "data.rule.sql_logical_db_log_retention",
"message": "data.rule.sql_logical_db_log_retention_err",
"remediationDescription": "Make sure you are following the ARM template guidelines for SQL Server by visiting <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.sql/2017-03-01-preview/servers/databases/auditingsettings' target='_blank'>here</a>. Make sure retentionDays is at least 90",
"remediationFunction": "PR_AZR_ARM_SQL_007.py"
}
],
"severity": "Medium",
"title": "Azure SQL Database Auditing Retention should be 90 days or more",
"description": "This policy identifies SQL Databases which have Auditing Retention less than 90 days. Audit Logs can be used to check for anomalies and gives insight into suspected breaches or misuse of information and access. It is recommended to configure SQL database Audit Retention to be greater than or equal to 90 days.",
"tags": [
{
"cloud": "git",
"compliance": [
"CIS",
"CSA-CCM",
"HIPAA",
"ISO 27001",
"NIST 800",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.sql/servers/databases",
"microsoft.sql/servers/databases/auditingsettings"
]
},
{
"masterTestId": "TEST_DB_ENCRYPTIONS_1",
"masterSnapshotId": [
"ARM_TEMPLATE_SNAPSHOT"
],
"type": "rego",
"rule": "file(dbdataencryption.rego)",
"evals": [
{
"id": "PR-AZR-ARM-SQL-009",
"eval": "data.rule.db_encrypt",
"message": "data.rule.db_encrypt_err",
"remediationDescription": "Make sure you are following the ARM template guidelines for SQL Server by visiting <a href='https://docs.microsoft.com/en-us/azure/templates/microsoft.sql/2014-04-01/servers/databases/transparentdataencryption' target='_blank'>here</a>. status should be Enabled",
"remediationFunction": "PR_AZR_ARM_SQL_009.py"
}
],
"severity": "Medium",
"title": "Azure SQL databases should have transparent data encryption enabled",
"description": "Transparent data encryption protects Azure database against malicious activity. It performs real-time encryption and decryption of the database, related reinforcements, and exchange log records without requiring any changes to the application. It encrypts the storage of the entire database by using a symmetric key called the database encryption key.",
"tags": [
{
"cloud": "git",
"compliance": [
"CIS",
"CSA-CCM",
"HIPAA",
"ISO 27001",
"NIST 800",
"PCI-DSS"
],
"service": [
"arm"
]
}
],
"resourceTypes": [
"microsoft.sql/servers/databases",
"microsoft.sql/servers/databases/transparentdataencryption"
]
},
{