Framework/Configurations/SVT/Services/APIManagement.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
{
    "FeatureName": "APIManagement",
    "Reference": "aka.ms/azsktcp/apim",
    "IsMaintenanceMode": false,
    "Controls": [
        {
            "ControlID": "Azure_APIManagement_AuthZ_Grant_Min_RBAC_Access",
            "Description": "All users/identities must be granted minimum required permissions using Role Based Access Control (RBAC)",
            "Id": "APIManagement110",
            "ControlSeverity": "Medium",
            "Automated": "Yes",
            "MethodName": "CheckRBACAccess",
            "Rationale": "Granting minimum access by leveraging RBAC feature ensures that users are granted just enough permissions to perform their tasks. This minimizes exposure of the resources in case of user/service account compromise.",
            "Recommendation": "Remove any excessive privileges granted on the API Management Service. Run command: Remove-AzRoleAssignment -SignInName '<SignInName>' -Scope '<Scope>' -RoleDefinitionName '<RoleDefinitionName>'. Run 'Get-Help Remove-AzRoleAssignment -full' for more help.",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "AuthZ",
                "RBAC",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_Audit_Enable_Alerts",
            "Description": "Metric alert rules must be configured for critical actions on API Management service",
            "Id": "APIManagement120",
            "ControlSeverity": "Medium",
            "Automated": "Yes",
            "MethodName": "CheckAPIMMetricAlert",
            "Rationale": "Metric alert for occurrence of unauthorized gateway requests help the admin to identify security breach attempts.",
            "Recommendation": "To setup an alert rule: (1) Go to API management instance -> 'Alerts' -> 'New alert rule' -> 'Add condition' (2) Select Signal type as 'Metrics' -> Select 'Unauthorized Gateway Request' -> Select a. Operator = 'Greater Than' b. Aggregation type = 'Total' c. Threshold value = '0' and d. Aggregation granularity = '1 hour' (3) Select an existing Action Group or create a new one of type 'Email/SMS/Push/Voice'. Select 'Email' option and specify the email id. Please refer: https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-use-azure-monitor#set-up-an-alert-rule-for-unauthorized-request.",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "Audit",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_Audit_Enable_Diagnostics_Log",
            "Description": "Diagnostics logs must be enabled with a retention period of at least $($this.ControlSettings.Diagnostics_RetentionPeriod_Min) days",
            "Id": "APIManagement130",
            "ControlSeverity": "Medium",
            "Automated": "Yes",
            "MethodName": "CheckDiagnosticsSettings",
            "Rationale": "Logs should be retained for a long enough period so that activity trail can be recreated when investigations are required in the event of an incident or a compromise. A period of 1 year is typical for several compliance requirements as well.",
            "Recommendation": "Run command: Set-AzDiagnosticSetting -ResourceId {'ResourceId'} -Enabled `$true -StorageAccountId '{StorageAccountId}' -RetentionInDays $($this.ControlSettings.Diagnostics_RetentionPeriod_Min) -RetentionEnabled `$true. Alternatively, you can also change the diagnostic settings from the Azure Portal by following the steps given here: https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-archive-diagnostic-logs#archive-diagnostic-logs-using-the-portal.",
            "Tags": [
                "SDL",
                "TCP",
                "Diagnostics",
                "Automated",
                "Audit",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_DP_Use_HTTPS_URL_Scheme",
            "Description": "Backend API(s) must be accessible only over HTTPS via API Management service",
            "Id": "APIManagement140",
            "ControlSeverity": "High",
            "Automated": "Yes",
            "MethodName": "CheckAPIMURLScheme",
            "Rationale": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
            "Recommendation": "Run command: Set-AzApiManagementApi -Context {APIContextObject} -Protocols 'Https' -Name '{APIName}' -ApiId '{APIId}' -ServiceUrl '{ServiceURL}'. Run command : Get-AzApiManagementApi -Context '{APIContextObject}' to get the details of existing APIs. Refer https://docs.microsoft.com/en-us/powershell/module/az.apimanagement/set-azapimanagementapi",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "DP",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement",
                "APIMAPIs"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_BCDR_Backup_Periodically",
            "Description": "API Management service instance should be backed up periodically",
            "Id": "APIManagement150",
            "ControlSeverity": "Medium",
            "Automated": "No",
            "MethodName": "",
            "Rationale": "The service 'backup and restore' feature provides facility to recover from availability problems affecting the region where your API Management service is hosted.",
            "Recommendation": "Use REST APIs for 'backup and restore' operations. Refer https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-disaster-recovery-backup-restore.",
            "Tags": [
                "SDL",
                "TCP",
                "BCDR",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_DP_Encrypt_Named_Values",
            "Description": "'Named Values' that contain sensitive data must be encrypted by marking as 'secret'",
            "Id": "APIManagement160",
            "ControlSeverity": "High",
            "Automated": "Yes",
            "MethodName": "CheckSecretNamedValues",
            "Rationale": "Encrypted 'Named Values' are stored securely by the Azure platform.",
            "Recommendation": "Run command: Set-AzApiManagementProperty -Secret `$true -Context {APIContextObject} -Name '{PropertyDisplayName}' -PropertyId '{PropertyId}'. Refer https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-properties. Example: https://docs.microsoft.com/en-us/azure/api-management/api-management-advanced-policies#example-11",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "DP",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_DP_Use_Secure_TLS_Version",
            "Description": "Ensure that only the most secure and up to date version of TLS is enabled on the API gateway",
            "Id": "APIManagement170",
            "ControlSeverity": "High",
            "Automated": "Yes",
            "MethodName": "CheckAPIMProtocolsAndCiphersConfiguration",
            "Rationale": "TLS 1.2 is the latest and most secure protocol. Using 3DES Ciphers, TLS protocols (1.1 and 1.0) and SSL 3.0 exposes the API to meet-in-the-middle attack, chosen-plaintext or known-plaintext attacks.",
            "Recommendation": "Ensure that secure protocol versions are used between the client and the gateway *and* between the gateway and the backend APIs. Go to Azure Portal --> your API management instance --> Settings --> Protocol settings --> Turn OFF 3DES Ciphers, TLS protocols (1.1 and 1.0) and SSL 3.0 Protocols.",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "DP",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_DP_Remove_Default_Products",
            "Description": "Delete the two sample products 'Starter' and 'Unlimited' to avoid accidental exposure of APIs",
            "Id": "APIManagement180",
            "ControlSeverity": "Medium",
            "Automated": "Yes",
            "MethodName": "CheckDefaultProductsExist",
            "Rationale": "By default, each API Management instance comes with two sample products: Starter and Unlimited. Unless the access control of these sample products is being strictly regulated, associating APIs to these products stands the chance of exposing APIs to unauthenticated users.",
            "Recommendation": "To delete sample products go to Azure Portal --> your API management instance --> Products --> Select 'Starter'/'Unlimited' Product --> Delete.",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "DP",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement",
                "APIMProducts"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_DP_Dont_Log_Sensitive_Header_Data",
            "Description": "Any header containing sensitive data such as authorization token should not be logged in Application Insights",
            "Id": "APIManagement190",
            "ControlSeverity": "Medium",
            "Automated": "Yes",
            "MethodName": "CheckApplicationInsightsEnabled",
            "Rationale": "APIM provides an option to log request and response headers in Application Insights. Any header containing sensitive data such as authorization token should not be logged. This minimizes the risk of data loss from physical theft and also helps meet regulatory compliance requirements.",
            "Recommendation": "Do not explicitly add header containing sensitive data while integrating Azure API Management with Azure Application Insights. Note: By default headers data is not logged. Please refer https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-app-insights.",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "DP",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement",
                "APIMAPIs"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_DP_Restrict_CORS_Access",
            "Description": "Ensure that CORS access is granted to a minimal set of trusted origins and only required verbs are supported",
            "Id": "APIManagement200",
            "ControlSeverity": "Medium",
            "Automated": "Yes",
            "MethodName": "CheckAPIManagementCORSAllowed",
            "Rationale": "CORS enables an operation or an API to allow cross-domain calls from browser-based clients. Using '*' (allow all) for CORS setting means that all cross-origin requests are allowed. Restricting allowed origins to the specific set that needs access aligns with the principle of least privilege.",
            "Recommendation": "For steps to add CORS policy to API's inbound policies please refer https://docs.microsoft.com/en-us/azure/api-management/api-management-cross-domain-policies#CORS. Note: No action is needed if you are not using CORS for your service.",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "DP",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement",
                "APIMAPIs"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_AuthN_Verify_Delegated_Authentication",
            "Description": "If delegated authentication is enabled, ensure that it is implemented securely",
            "Id": "APIManagement210",
            "ControlSeverity": "High",
            "Automated": "Yes",
            "MethodName": "CheckDelegatedAuthNEnabled",
            "Rationale": "Delegation allows you to use your existing website for handling developer sign-in/sign-up and subscription to products as opposed to using the built-in functionality in the developer portal. It is the API publisher's responsibility to ensure protection of user data.",
            "Recommendation": "If Delegation is enabled, APIM Publisher must take the responsibility of secure sign-in/sign-up, subscription to products and management of user data.",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "AuthN",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_NetSec_Configure_Virtual_Network_For_APIM",
            "Description": "Consider hosting APIM within a virtual network for improved isolation",
            "Id": "APIManagement220",
            "ControlSeverity": "Medium",
            "Automated": "Yes",
            "MethodName": "CheckAPIMDeployedInVNet",
            "Rationale": "Azure Virtual Network (VNet) deployment provides enhanced security and isolation for API management instance, as well as backend service, access control policies, and other features to further restrict access.",
            "Recommendation": "Where feasible/practical, host the APIM and APIs within an isolated network. For steps to deploy Azure API Management inside a Virtual Network, refer: https://docs.microsoft.com/en-us/azure/api-management/api-management-using-with-vnet.",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "NetSec",
                "PremiumSku",
                "DeveloperSku",
                "APIManagement"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_DP_Use_Custom_Domain_With_SSL",
            "Description": "Custom domain with SSL binding must be configured for Proxy and Portal endpoints of Azure API Management instance",
            "Id": "APIManagement230",
            "ControlSeverity": "Medium",
            "Automated": "No",
            "MethodName": "",
            "Rationale": "Use of custom domain protects a backend service from common attacks such as phishing, session hijacking and other DNS-related attacks.",
            "Recommendation": "Go to Azure Portal --> your API management instance --> Settings --> Custom Domains and configure a custom domain for Proxy and Portal endpoint. Please refer: https://docs.microsoft.com/en-us/azure/api-management/configure-custom-domain. To configure custom domain using PowerShell please refer : https://docs.microsoft.com/en-us/azure/api-management/scripts/powershell-setup-custom-domain",
            "Tags": [
                "SDL",
                "TCP",
                "Manual",
                "DP",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_AuthZ_Validate_JWT",
            "Description": "Ensure that JWT validation is enabled if using OAuth 2.0 or OpenID connect",
            "Id": "APIManagement240",
            "ControlSeverity": "High",
            "Automated": "Yes",
            "MethodName": "CheckJWTValidatePolicyInAPI",
            "Rationale": "If 'validate-jwt' policy is not configured, client can call the API without the OAuth/OpenID connect authorization token. This policy enforces existence and validity of a JWT extracted from either a specified HTTP Header or a specified query parameter.",
            "Recommendation": "For steps to add JWT Validate Token policy please refer: https://docs.microsoft.com/en-us/azure/api-management/api-management-access-restriction-policies#ValidateJWT and https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-protect-backend-with-aad#configure-a-jwt-validation-policy-to-pre-authorize-requests",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "AuthZ",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement",
                "APIMAPIs"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_AuthZ_Restrict_Caller_IPs",
            "Description": "Use Restrict caller IPs policies for additional protection",
            "Id": "APIManagement250",
            "ControlSeverity": "Medium",
            "Automated": "Yes",
            "MethodName": "CheckRestrictedCallerIPs",
            "Rationale": "Using the IP filter policy feature ensures that access to the backend service is restricted to a specific set/group of clients. NOTE: While this control does provide an extra layer of access control protection, it may not always be feasible to implement in all scenarios.",
            "Recommendation": "Use 'ip-filter' policy filters to allow and deny calls from specific IP addresses and/or address ranges. Do not add IP range $($this.ControlSettings.UniversalIPRange) as that allows access to all possible IPs. Please refer: https://docs.microsoft.com/en-us/azure/api-management/api-management-access-restriction-policies#RestrictCallerIPs",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "AuthZ",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_AuthN_Disable_Management_API",
            "Description": "Do not use API Management REST API",
            "Id": "APIManagement260",
            "ControlSeverity": "High",
            "Automated": "Yes",
            "MethodName": "CheckManagementAPIDisabled",
            "Rationale": "The credentials used to access API Management REST API provide admin-level access without support for role-based access control and without recording audit logs. For better security it is recommended to make calls through the ARM-based REST API",
            "Recommendation": "Disable API Management REST API and use the ARM-based REST API instead. Run command: Set-AzApiManagementTenantAccess -Context {APIContextObject} -Enabled `$false. To disable 'Enable API Management REST API' manually go to Azure Portal --> your API management instance --> Management API --> Uncheck 'Enable API Management REST API'. Use ARM based REST API mentioned in https://docs.microsoft.com/en-us/rest/api/apimanagement.",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "AuthN",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_AuthZ_Enable_User_Authorization_For_API",
            "Description": "Ensure that either OAuth 2.0 or OpenID Connect are used to authorize developer accounts in API Management",
            "Id": "APIManagement270",
            "ControlSeverity": "High",
            "Automated": "Yes",
            "MethodName": "CheckUserAuthorizationSettingInAPI",
            "Rationale": "Enabling OAuth/OpenID connect user authorization ensure that only valid users have access, and they can only access resources to which they are entitled.",
            "Recommendation": "To enable user authorization for an API go to Azure Portal --> your API management instance --> APIs --> Select API --> Settings -> User Authorization -> Enable 'OAuth 2.0' or 'OpenID connect'. Please refer https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-oauth2.",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "AuthZ",
                "APIManagement",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIMAPIs"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_AuthN_Use_AAD_for_Client_AuthN",
            "Description": "Enterprise applications using APIM must authenticate developers/applications using Azure Active Directory backed credentials",
            "Id": "APIManagement280",
            "ControlSeverity": "High",
            "Automated": "Yes",
            "MethodName": "CheckAADIdentityProviderEnabled",
            "Rationale": "Using the native enterprise directory for authentication ensures that there is a built-in high level of assurance in the user identity established for subsequent access control. All Enterprise subscriptions are automatically associated with their enterprise directory (xxx.onmicrosoft.com) and users in the native directory are trusted for authentication to enterprise subscriptions.",
            "Recommendation": "Authorize developer accounts by using Azure Active Directory in Azure API Management. For step please refer https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-aad.",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "AuthN",
                "DeveloperSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_DP_Dont_Reveal_Backend_Info",
            "Description": "Use transform policies to hide backend/implentation details in API responses",
            "Id": "APIManagement290",
            "ControlSeverity": "Medium",
            "Automated": "No",
            "MethodName": "",
            "Rationale": "Information such as technology stack that is running on the backend and the original URLs that appear in the body of API's HTTP response are private backend info and should be hidden from external customers.",
            "Recommendation": "Verify that your API's response does not reveal private backend information. To hide private information from client refer: https://docs.microsoft.com/en-us/azure/api-management/transform-api.",
            "Tags": [
                "SDL",
                "TCP",
                "Manual",
                "DP",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_DP_Dont_Checkin_Secrets_In_Source",
            "Description": "Do not include secrets directly in API configuration and policies",
            "Id": "APIManagement300",
            "ControlSeverity": "High",
            "Automated": "Yes",
            "MethodName": "CheckGitHubIsUsedInAPIM",
            "Rationale": "When using Git to save and configure your API Management service configuration, any secrets that are not defined as properties will be stored in the repository and will remain in its history until you disable and re-enable Git access. Properties (Named values) provide a secure place to manage constant string values, including secrets, across all API configuration and policies, so you don't have to store them directly in your policy statements.",
            "Recommendation": "Refer: https://docs.microsoft.com/en-us/azure/api-management/api-management-configuration-repository-git.",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "DP",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_AuthN_Secure_API_Using_Client_Certificates",
            "Description": "Use client certificates for authentication between gateway and backend APIs",
            "Id": "APIManagement310",
            "ControlSeverity": "High",
            "Automated": "Yes",
            "MethodName": "CheckClientCertAuthDisabled",
            "Rationale": "Use client certificates to secure access to the back-end service of an API and protects data in transit from network layer man-in-the-middle, eavesdropping, session-hijacking attacks.",
            "Recommendation": "To enable client certificate authentication from Azure portal please refer https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-mutual-certificates and https://docs.microsoft.com/en-us/azure/api-management/api-management-authentication-policies.",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "AuthN",
                "APIManagement",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIMAPIs"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_AuthZ_Enable_Requires_Subscription",
            "Description": "'Requires Subscription' option must be turned on for all products in an API Management instance",
            "Id": "APIManagement320",
            "ControlSeverity": "High",
            "Automated": "Yes",
            "MethodName": "CheckRequiresSubscription",
            "Rationale": "When publishing APIs through Azure API Management (APIM), the easiest and most common way to secure access to the APIs is by using Subscription Keys. To obtain a Subscription Key for accessing APIs, a Subscription is required. This ensures that a Client applications that need to consume the published APIs must subscribe before making calls to those APIs.",
            "Recommendation": "To enable 'Requires Subscription' go to Azure Portal --> your API management instance --> Products --> Settings --> 'Requires Subscription'. Refer: https://docs.microsoft.com/en-us/azure/api-management/api-management-subscriptions. To create subscription for a user directly from Azure portal refer https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-create-subscriptions",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "AuthZ",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement",
                "APIMProducts"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_DP_Restrict_Critical_APIs_Access",
            "Description": "Critical APIs must not be exposed to Guest users",
            "Id": "APIManagement330",
            "ControlSeverity": "Medium",
            "Automated": "Yes",
            "MethodName": "CheckGuestGroupUsedInProduct",
            "Rationale": "Guest users or unauthenticated developer portal users, such as prospective customers visiting the developer portal of an API Management instance can be granted certain read-only access, such as the ability to view APIs but not call them.",
            "Recommendation": "Do not associate Guest groups with products containing critical APIs. To verify access go to Azure Portal --> your API management instance --> Products --> Access Control",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "DP",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement",
                "APIMProducts"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_AuthN_Use_Managed_Service_Identity",
            "Description": "Use Managed Service Identity (MSI) for accessing other AAD-protected resources from the API management instance",
            "Id": "APIManagement340",
            "ControlSeverity": "Medium",
            "Automated": "Yes",
            "MethodName": "CheckAPIManagementMsiEnabled",
            "Rationale": "Managed Service Identity (MSI) allows your API Management instance to easily access other AAD-protected resources, such as Azure Key Vault. The identity is managed by the Azure platform and eliminates the need to provision/manage/rotate any secrets thus reducing the overall risk.",
            "Recommendation": "Go to Azure Portal --> your API management instance --> Settings --> Managed Service Identity --> Register with AAD --> ON",
            "Tags": [
                "SDL",
                "TCP",
                "Automated",
                "AuthN",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement"
            ],
            "Enabled": true
        },
        {
            "ControlID": "Azure_APIManagement_AuthZ_Enable_Requires_Approval",
            "Description": "Use the 'Requires Approval' option for APIs where additional checks/manual review is necessary",
            "Id": "APIManagement350",
            "ControlSeverity": "High",
            "Automated": "No",
            "MethodName": "",
            "Rationale": "Enabling 'Requires Approval' ensures that only users approved by API publisher can subscribe to a product.",
            "Recommendation": "To enable 'Requires Approval' go to Azure Portal --> your API management instance --> Products --> Settings --> Select 'Requires Approval'. Refer: https://docs.microsoft.com/en-us/azure/api-management/api-management-subscriptions.",
            "Tags": [
                "SDL",
                "TCP",
                "Manual",
                "AuthZ",
                "DeveloperSku",
                "BasicSku",
                "StandardSku",
                "PremiumSku",
                "APIManagement",
                "APIMProducts"
            ],
            "Enabled": true
        }
    ]
}