Control: 3.9 Ensure 'Allow Azure services on the trusted services list to access this storage account' is Enabled for Storage Account Access
Description
Some Azure services that interact with storage accounts operate from networks that can't be granted access through network rules. To help this type of service work as intended, allow the set of trusted Azure services to bypass the network rules. These services will then use strong authentication to access the storage account. If the Allow trusted Azure services exception is enabled, the following services are granted access to the storage account: Azure Backup, Azure Site Recovery, Azure DevTest Labs, Azure Event Grid, Azure Event Hubs, Azure Networking, Azure Monitor, and Azure SQL Data Warehouse (when registered in the subscription).
Turning on firewall rules for storage account will block access to incoming requests for data, including from other Azure services. We can re-enable this functionality by enabling "Trusted Azure Services" through networking exceptions.
Remediation
From Azure Console
- Go to
Storage Accounts
- For each storage account, Click on the
Networking
blade - Click on the
Firewalls and virtual networks
heading. - Ensure that
Enabled from selected virtual networks and IP addresses
is selected. - Under the 'Exceptions' label, enable check box for
Allow Azure services on the trusted services list to access this storage account
. - Click Save to apply your changes.
From Azure CLI
Use the below command to update Azure services.
az storage account update --name <StorageAccountName> --resource-group<resourceGroupName> --bypass AzureServices
Default Value
By default, Storage Accounts will accept connections from clients on any network.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.cis_v150_3_9
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.cis_v150_3_9 --share
SQL
This control uses a named query:
storage_account_trusted_microsoft_services_enabled