module/ConfigurationProvider/ControlConfigurations/Services/APIManagement.json
{
"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", "APIManagement" ], "Enabled": false, "CustomTags": [ "StandardSku", "PremiumSku" ] }, { "ControlID": "Azure_APIManagement_Audit_Enable_Alerts", "Description": "Metric alert rules must be configured for critical actions on API Management service", "DisplayName": "Metric alert rules must be configured for critical actions on API Management service", "Id": "APIManagement120", "ControlSeverity": "Medium", "Automated": "Yes", "MethodName": "CheckMetricAlerts", "Rationale": "Metric alert for occurrence of unauthorized gateway requests help the admin to identify security breach attempts.", "Category": "Monitoring must be correctly configured", "ControlRequirements": "Monitoring and auditing must be enabled and correctly configured according to prescribed organizational guidance", "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 'Requests' -> In 'Split by dimensions', in 'Dimension name', select 'Gateway Response Code Category'. In 'Dimension values', select 4xx. If this option is not listed in the drop-down, click 'Add custom value' and add '4xx' for 'Gateway Response Code Category'. Configure 'Alert logic' as follows: a. Operator = 'Greater Than' b. Aggregation type = 'Total' c. Threshold value = '0' and d. Aggregation granularity (Period) = '1 hour' (3) Select an existing Action Group or create a new one of type 'Email/SMS message/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 for instructions to configure this alert.", "Tags": [ "SDL", "TCP", "Automated", "Audit", "DeveloperSku", "BasicSku", "APIManagement", "Baseline", "Weekly" ], "Enabled": true, "CustomTags": [ "StandardSku", "PremiumSku" ], "ControlSettings": { "MetricAlerts": [ { "Criteria": [ { "MetricName": "Requests", "Dimensions": [ { "Name": "GatewayResponseCodeCategory", "Operator": "Include", "Values": [ "4xx" ] } ], "Operator": "GreaterThan", "Threshold": "0", "TimeAggregation": "Total" } ] } ] } }, { "ControlID": "Azure_APIManagement_Audit_Enable_Diagnostics_Log", "Description": "Diagnostics logs must be enabled for API Management service", "Id": "APIManagement130", "ControlSeverity": "Medium", "Automated": "Yes", "MethodName": "CheckDiagnosticsSettings", "DisplayName": "Diagnostics logs must be enabled for API Management service", "Category": "Monitoring must be correctly configured", "ControlRequirements": "Monitoring and auditing must be enabled and correctly configured according to prescribed organizational guidance", "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 365 -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/azure-monitor/essentials/diagnostic-settings.", "Tags": [ "SDL", "TCP", "Diagnostics", "Automated", "Audit", "APIManagement", "Baseline", "Weekly" ], "ControlEvaluationDetails": { "RequiredProperties": [ "DiagnosticSetting" ] }, "Enabled": true, "ControlSettings": { "DiagnosticForeverRetentionValue": "0", "DiagnosticMinRetentionPeriod": "365", "DiagnosticLogs": [ "GatewayLogs", "WebSocketConnectionLogs" ] }, "CustomTags": [] }, { "ControlID": "Azure_APIManagement_DP_Use_HTTPS_URL_Scheme", "Description": "Ensure API Management service is accessible only over HTTPS", "Id": "APIManagement140", "ControlSeverity": "High", "Automated": "Yes", "MethodName": "CheckAPIMURLScheme", "DisplayName": "Ensure API Management service is accessible only over HTTPS", "Category": "Encrypt data in transit", "ControlRequirements": "Data must be encrypted in transit and at rest", "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", "APIManagement", "APIMAPIs", "Baseline", "Daily", "CSEOPilotSub" ], "ControlEvaluationDetails": { "RequiredProperties": [ "TotalApiCount" ] }, "Enabled": true, "PolicyDefinitionGuid": "APIManagement140", "CustomTags": [ "StandardSku", "PremiumSku", "TenantBaseline", "CSEOBaseline", "MSD", "Prod", "P2", "Wave6", "ShadowITActiveBaseline", "CSEOPilot", "SN:API_HTTPS" ] }, { "ControlID": "Azure_APIManagement_DP_Use_HTTPS_URL_Scheme_Trial", "Description": "[Trial] Ensure API Management service is accessible only over HTTPS", "Id": "APIManagement360", "ControlSeverity": "High", "Automated": "Yes", "MethodName": "CheckAPIMURLSchemeTrial", "DisplayName": "[Trial] Ensure API Management service is accessible only over HTTPS", "Category": "Encrypt data in transit", "ControlRequirements": "Data must be encrypted in transit and at rest", "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", "APIManagement", "APIMAPIs", "Baseline", "Daily" ], "ControlEvaluationDetails": { "RequiredProperties": [ "TotalApiCount" ] }, "Enabled": true, "PolicyDefinitionGuid": "APIManagement140", "CustomTags": [ "StandardSku", "PremiumSku", "Trial" ] }, { "ControlID": "Azure_APIManagement_DP_Use_HTTPS_URL_Scheme_ServiceUrl_contains_HTTPS_Trial", "Description": "[Trial] Ensure traffic forwarded on from the API Service Management to the backend web server is encrypted", "Id": "APIManagement370", "ControlSeverity": "High", "Automated": "Yes", "MethodName": "CheckAPIMURLServiceUrlTrial", "DisplayName": "[Trial] Ensure traffic forwarded on from the API Service Management to the backend web server is encrypted", "Category": "Encrypt data in transit", "ControlRequirements": "Data must be encrypted in transit and at rest", "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 '{UpatedServiceURLWithHTTPS}'. 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", "APIManagement", "APIMAPIs", "Baseline", "Daily" ], "ControlEvaluationDetails": { "RequiredProperties": [ "TotalApiCount" ] }, "Enabled": true, "PolicyDefinitionGuid": "APIManagement140", "CustomTags": [ "StandardSku", "PremiumSku", "Trial" ] }, { "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", "APIManagement" ], "Enabled": false, "CustomTags": [ "StandardSku", "PremiumSku" ] }, { "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.", "Category": "", "ControlRequirements": "", "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", "APIManagement" ], "Enabled": false, "CustomTags": [ "StandardSku", "PremiumSku" ] }, { "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", "DisplayName": "Use Approved TLS version in your APIM", "Category": "Encrypt data in transit", "ControlRequirements": "Data must be encrypted in transit and at rest", "MethodName": "CheckAPIMUnsecureProtocolsAndCiphersConfiguration", "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 -> Security section -> Protocols + ciphers -> Protocols tab and ensure only TLS 1.2 is enabled and all other protocols are disabled for both Client protocol and Backend protocol. Also, ensure TripleDes168 is disabled under Ciphers tab. For disabling insecure ciphers using PowerShell, refer: https://github.com/azsk/DevOpsKit-docs/blob/master/00c-Addressing-Control-Failures/Readme.md#how-do-i-remediate-failing-control-azure_apimanagement_dp_use_secure_tls_version", "Tags": [ "SDL", "TCP", "Automated", "DP", "DeveloperSku", "BasicSku", "APIManagement", "Baseline", "Daily", "CSEOPilotSub" ], "Enabled": true, "ControlSettings": { "UnsecureProtocolsAndCiphersConfiguration": [ { "Key": "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10", "DisplayName": "TLS 1.0 (HTTP/1.x only)", "Type": "Client protocol" }, { "Key": "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11", "DisplayName": "TLS 1.1 (HTTP/1.x only)", "Type": "Client protocol" }, { "Key": "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30", "DisplayName": "SSL 3.0 (HTTP/1.x only)", "Type": "Client protocol" }, { "Key": "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10", "DisplayName": "TLS 1.0", "Type": "Backend protocol" }, { "Key": "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11", "DisplayName": "TLS 1.1", "Type": "Backend protocol" }, { "Key": "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30", "DisplayName": "SSL 3.0", "Type": "Backend protocol" }, { "Key": "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168", "DisplayName": "TripleDes168", "Type": "Cipher" } ] }, "CustomTags": [ "StandardSku", "PremiumSku", "CSEOBaseline", "MSD", "TenantBaseline", "Prod", "CSEOPilot", "Wave8", "SN:APIM_Use_TLS" ] }, { "ControlID": "Azure_APIManagement_DP_Remove_Default_Products", "Description": "Delete the two sample products 'Starter' and 'Unlimited' to avoid accidental exposure of APIs", "DisplayName": "Delete the two sample products 'Starter' and 'Unlimited' to avoid accidental exposure of APIs", "Category": "TBD", "ControlRequirements": "TBD", "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", "APIManagement", "APIMProducts", "Baseline", "Weekly" ], "ControlSettings": { "SampleProductId": [ "starter", "unlimited" ] }, "ControlEvaluationDetails": { "RequiredProperties": [ "APIMProduct" ] }, "Enabled": true, "CustomTags": [ "StandardSku", "PremiumSku" ] }, { "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", "APIManagement", "APIMAPIs" ], "Enabled": false, "CustomTags": [ "StandardSku", "PremiumSku" ] }, { "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": "Run command 'Get-AzApiManagementPolicy' to check CORS setting for your APIM service. 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", "APIManagement", "APIMAPIs" ], "Enabled": false, "CustomTags": [ "StandardSku", "PremiumSku" ] }, { "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.", "DisplayName": "Delegated authentication should be implemented securely", "Category": "Authentication must be enabled on all user accounts and services", "ControlRequirements": "Access to data, networks, services, utilities, tools, and applications must be controlled by authentication and authorization mechanisms", "Recommendation": "To disable delegation, go to APIM service --> Developer portal --> Delegation --> Uncheck the two check boxes (a) Delegate sign-in & sign-up (b) Delegate product subscription. Read more about delegation here https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-setup-delegation", "Tags": [ "SDL", "TCP", "Automated", "AuthN", "DeveloperSku", "BasicSku", "APIManagement", "Baseline", "Weekly" ], "ControlEvaluationDetails": { "RequiredProperties": [ "IsDelegatedAuthNEnabled" ] }, "Enabled": true, "CustomTags": [ "StandardSku", "PremiumSku" ] }, { "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", "DeveloperSku", "APIManagement" ], "Enabled": false, "CustomTags": [ "PremiumSku" ] }, { "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", "APIManagement" ], "Enabled": false, "CustomTags": [ "StandardSku", "PremiumSku" ] }, { "ControlID": "Azure_APIManagement_AuthZ_Validate_JWT", "Description": "Ensure that JWT validation is enabled if using OAuth 2.0 or OpenID connect", "DisplayName": "Ensure that JWT validation is enabled if using OAuth 2.0 or OpenID connect", "Category": "Authentication must be enabled on all user accounts and services", "ControlRequirements": "Access to data, networks, services, utilities, tools, and applications must be controlled by authentication and authorization mechanisms", "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", "APIManagement", "APIMAPIs", "Baseline", "Weekly" ], "Enabled": true, "CustomTags": [ "StandardSku", "PremiumSku" ] }, { "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": "a) Run command 'Get-AzApiManagementPolicy' to check IP addresses filter configured in your APIM service. b) Use 'ip-filter' policy filters to allow and deny calls from specific IP addresses and/or address ranges. c) Do not add IP range 0.0.0.0-255.255.255.255 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", "APIManagement" ], "Enabled": false, "CustomTags": [ "StandardSku", "PremiumSku" ] }, { "ControlID": "Azure_APIManagement_AuthN_Disable_Management_API", "Description": "Do not use Management REST API in APIM", "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", "DisplayName": "Do not use Management REST API in APIM", "Category": "Authentication must be enabled on all user accounts and services", "ControlRequirements": "Access to data, networks, services, utilities, tools, and applications must be controlled by authentication and authorization mechanisms", "Recommendation": "To disable API Management REST API, go to APIM service --> Deployment and infrastructure --> Management API --> Enable Management REST API --> No. For better security it is recommended to make calls through the ARM based REST API mentioned in https://docs.microsoft.com/en-us/rest/api/apimanagement.", "Tags": [ "SDL", "TCP", "Automated", "AuthN", "DeveloperSku", "BasicSku", "APIManagement", "Baseline", "Daily", "CSEOPilotSub" ], "ControlEvaluationDetails": { "RequiredProperties": [ "IsManagementAPIEnabled" ] }, "Enabled": true, "CustomTags": [ "StandardSku", "PremiumSku", "CSEOBaseline", "MSD", "TenantBaseline", "Prod", "CSEOPilot", "Wave8", "SN:APIM_MgmtAPI" ] }, { "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", "DisplayName": "Ensure that either OAuth 2.0 or OpenID Connect are used to authorize developer accounts in API Management", "Category": "Authentication must be enabled on all user accounts and services", "ControlRequirements": "Access to data, networks, services, utilities, tools, and applications must be controlled by authentication and authorization mechanisms", "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", "APIMAPIs", "Baseline", "Weekly" ], "ControlEvaluationDetails": { "RequiredProperties": [ "APIUserAuth" ] }, "Enabled": true, "CustomTags": [ "StandardSku", "PremiumSku" ] }, { "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.", "DisplayName": "Enterprise applications using APIM must authenticate developers/applications using Azure Active Directory backed credentials", "Category": "Authentication must be enabled on all user accounts and services", "ControlRequirements": "Access to data, networks, services, utilities, tools, and applications must be controlled by authentication and authorization mechanisms", "Recommendation": "For steps to use Azure Active Directory (Azure AD) please refer https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-aad.", "Tags": [ "SDL", "TCP", "Automated", "AuthN", "DeveloperSku", "APIManagement", "Baseline", "Daily", "CSEOPilotSub" ], "Enabled": true, "ControlEvaluationDetails": { "RequiredProperties": [ "IdentityProviderType", "IsBasicRegistrationEnabled" ] }, "ControlSettings": { "AllowedIdentityProvider": [ "Aad" ] }, "CustomTags": [ "StandardSku", "PremiumSku", "CSEOBaseline", "MSD", "TenantBaseline", "Prod", "CSEOPilot", "Wave8", "SN:APIM_AADAuth" ] }, { "ControlID": "Azure_APIManagement_DP_Dont_Reveal_Backend_Info", "Description": "Use transform policies to hide backend/implementation 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", "APIManagement" ], "Enabled": false, "CustomTags": [ "StandardSku", "PremiumSku" ] }, { "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.", "DisplayName": "Do not include secrets directly in API configuration and policies", "Category": "", "ControlRequirements": "", "Recommendation": "Please refer: https://docs.microsoft.com/en-us/azure/api-management/api-management-configuration-repository-git.", "Tags": [ "SDL", "TCP", "Automated", "DP", "DeveloperSku", "BasicSku", "APIManagement" ], "Enabled": false, "ControlEvaluationDetails": { "RequiredProperties": [ "IsGitHubUsed" ] }, "CustomTags": [ "StandardSku", "PremiumSku" ] }, { "ControlID": "Azure_APIManagement_AuthN_Secure_API_Using_Client_Certificates", "Description": "Use client certificates for authentication between gateway and backend APIs", "DisplayName": "Use client certificates for authentication between gateway and backend APIs", "Category": "Authentication must be enabled on all user accounts and services", "ControlRequirements": "Access to data, networks, services, utilities, tools, and applications must be controlled by authentication and authorization mechanisms", "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", "APIMAPIs", "Baseline", "Weekly" ], "ControlEvaluationDetails": { "RequiredProperties": [ "APIPolicy" ] }, "Enabled": true, "CustomTags": [ "StandardSku", "PremiumSku" ] }, { "ControlID": "Azure_APIManagement_AuthZ_Enable_Requires_Subscription", "Description": "'Requires Subscription' option must be turned on for all products in an API Management instance", "DisplayName": "'Requires Subscription' option must be turned on for all products in an API Management instance", "Category": "Authentication must be enabled on all user accounts and services", "ControlRequirements": "Access to data, networks, services, utilities, tools, and applications must be controlled by authentication and authorization mechanisms", "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 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", "APIManagement", "APIMProducts", "Baseline", "Weekly" ], "ControlSettings": { "State": "published" }, "Enabled": true, "CustomTags": [ "StandardSku", "PremiumSku" ] }, { "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", "APIManagement", "APIMProducts" ], "Enabled": false, "CustomTags": [ "StandardSku", "PremiumSku" ] }, { "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", "DisplayName": "Use Managed Service Identity (MSI) for accessing other AAD-protected resources from the API management instance", "Category": "Authentication must be enabled on all user accounts and services", "ControlRequirements": "Access to data, networks, services, utilities, tools, and applications must be controlled by authentication and authorization mechanisms", "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", "APIManagement", "Baseline", "Weekly" ], "ControlSettings": { "RequiredIdentityType": [ "SystemAssigned", "UserAssigned" ] }, "Enabled": true, "CustomTags": [ "StandardSku", "PremiumSku" ] }, { "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", "APIManagement", "APIMProducts" ], "Enabled": false, "CustomTags": [ "StandardSku", "PremiumSku" ] } ] } |