15.1 Ensure 'Public network access' is set to 'Disabled' on Azure Elastic SAN (Automated)
Description
Azure Elastic SAN is a scalable, high-performance cloud-based storage solution. Disabling public network access at the SAN level ensures that Elastic SAN resources are accessible only through private networks.
Rationale
Disabling public network access for Azure Elastic SAN at the SAN level enhances security by preventing unauthorized external access to sensitive storage resources.
Impact
Disabling public network access at the SAN level incurs no direct cost. However, there may be costs and configuration overhead associated with setting up and managing private network access to securely connect to Azure Elastic SAN resources.
Audit Procedure
Audit from Azure Portal
- Go to
Elastic SANs. - Click the name of an Elastic SAN.
- Under
Settings, clickNetworking. - Ensure that
Public network accessis set toDisabled. - Repeat steps 1-4 for each Elastic SAN.
Audit from Azure CLI
Run the following command to list Elastic SANs:
az elastic-san list
For each Elastic SAN, run the following command:
az elastic-san show --resource-group <resource-group> --name <elastic-san>
Ensure that publicNetworkAccess is set to Disabled.
Audit from PowerShell
Run the following command to list Elastic SANs:
Get-AzElasticSan
Run the following command to get the Elastic SAN in a resource group with a given name:
$elasticsan = Get-AzElasticSan -ResourceGroupName <resource-group> -Name <elastic-san>
Run the following command to get the public network access setting for the Elastic SAN:
$elasticsan.PublicNetworkAccess
Ensure that the command returns Disabled.
Expected Result
For each Elastic SAN, publicNetworkAccess (CLI) or PublicNetworkAccess (PowerShell) should return Disabled. In the Azure Portal, the Public network access setting under Networking should be set to Disabled.
Remediation
Remediate from Azure Portal
- Go to
Elastic SANs. - Click the name of an Elastic SAN.
- Under
Settings, clickNetworking. - Under
Public network access, click the radio button next toDisabled. - Click
Apply. - Repeat steps 1-5 for each Elastic SAN.
Remediate from Azure CLI
For each Elastic SAN requiring remediation, run the following command to disable public network access:
az elastic-san update --resource-group <resource-group> --name <elastic-san> --public-network-access Disabled
Remediate from PowerShell
For each Elastic SAN requiring remediation, run the following command to disable public network access:
Update-AzElasticSan -ResourceGroupName <resource-group> -Name <elastic-san> -PublicNetworkAccess Disabled
Default Value
Public network access at the SAN level is enabled by default, but access to individual volume groups is denied unless explicitly configured.
References
- https://learn.microsoft.com/en-us/azure/storage/elastic-san/elastic-san-networking
- https://learn.microsoft.com/en-us/cli/azure/elastic-san
- https://learn.microsoft.com/en-us/powershell/module/az.elasticsan/get-azelasticsan
- https://learn.microsoft.com/en-us/powershell/module/az.elasticsan/update-azelasticsan
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 3.3 Configure Data Access Control Lists - Configure data access control lists based on a user's need to know. Apply data access control lists, also known as access permissions, to local and remote file systems, databases, and applications. | X | X | X |
| v7 | 14.6 Protect Information through Access Control Lists - Protect all information stored on systems with file system, network share, claims, application, or database specific access control lists. These controls will enforce the principle that only authorized individuals should have access to the information based on their need to access the information as a part of their responsibilities. | X | X | X |
Profile
Level 2 | Automated