Control: 4.8 Ensure 'Allow Azure services on the trusted services list to access this storage account' is Enabled for Storage Account Access
Description
NOTE: This recommendation assumes that the Public network access
parameter is set to Enabled from selected virtual networks and IP addresses
. Please ensure the prerequisite recommendation has been implemented before proceeding:
- Ensure Default Network Access Rule for Storage Accounts is Set to Deny.
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 Azure services on the trusted services list to access this storage account
exception is enabled, the following services are granted access to the storage account: Azure Backup, Azure Data Box, Azure DevTest Labs, Azure Event Grid, Azure Event Hubs, Azure File Sync, Azure HDInsight, Azure Import/Export, Azure Monitor, Azure Networking Services, and Azure Site Recovery (when registered in the subscription).
Turning on firewall rules for a storage account will block access to incoming requests for data, including from other Azure services. We can re-enable this functionality by allowing access to trusted Azure services
through networking exceptions.
Remediation
From Azure Portal
- Go to
Storage Accounts
. - For each storage account, under
Security + networking
, clickNetworking
. - Click on the
Firewalls and virtual networks
heading. - Under
Exceptions
, check the box next toAllow Azure services on the trusted services list to access this storage account
. - Click
Save
.
From Azure CLI
Use the below command to update bypass
to 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_v300_4_8
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.cis_v300_4_8 --share
SQL
This control uses a named query:
storage_account_trusted_microsoft_services_enabled