5.2.5 Ensure public network access on Recovery Services vaults is Disabled (Automated)
Description
Disable public network access on Recovery Services vaults to prevent exposure to the internet and reduce the risk of unauthorized access. Use private endpoints and Azure Role-Based Access Control (RBAC) to securely manage access within trusted networks.
Rationale
Disabling public network access improves security by ensuring that a Recovery Services vault is not exposed on the public internet.
Impact
Disabling public network access on Recovery Services vaults restricts access to the vault. This enhances security but may require the configuration of private endpoints for any services or users needing access within trusted networks.
Audit Procedure
Audit from Azure Portal
- Go to
Recovery Servicesvaults. - Click the name of a vault.
- Under
Settings, clickNetworking. - Under
Public access, ensure thatPublic network accessis set toDeny. - Repeat steps 1-4 for each Recovery Services vault.
Audit from Azure CLI
Run the following command to list Recovery Services vaults:
az backup vault list
For each Recovery Services vault, run the following command:
az backup vault show --resource-group <resource-group> --name <recovery-services-vault>
Ensure that under properties, publicNetworkAccess is set to Disabled.
Audit from PowerShell
Run the following command to list Recovery Services vaults:
Get-AzRecoveryServicesVault
Run the following command to get the vault in a resource group with a given name:
$vault = Get-AzRecoveryServicesVault -ResourceGroupName <resource-group> -Name <recovery-services-vault>
Run the following command to get the public network access setting for the vault:
$vault.Properties.PublicNetworkAccess
Ensure that the command returns Disabled.
Repeat for each Recovery Services vault.
Expected Result
properties.publicNetworkAccessis set toDisabled- In Azure Portal,
Public network accessis set toDeny - PowerShell returns
Disabledfor$vault.Properties.PublicNetworkAccess
Remediation
Remediate from Azure Portal
- Go to
Recovery Servicesvaults. - Click the name of a vault.
- Under
Settings, clickNetworking. - Under
Public access, click the radio button next toDeny. - Click
Apply. - Repeat steps 1-5 for each Recovery Services vault requiring remediation.
Remediate from Azure CLI
For each Recovery Services vault requiring remediation, run the following command to disable public network access:
az backup vault update --resource-group <resource-group> --name <recovery-services-vault> --public-network-access Disable
Remediate from PowerShell
For each Recovery Services vault requiring remediation, run the following command to disable public network access:
Update-AzRecoveryServicesVault -ResourceGroupName <resource-group> -Name <recovery-services-vault> -PublicNetworkAccess "Disabled"
Default Value
Public network access is enabled by default on Recovery Services vaults.
References
- https://learn.microsoft.com/en-us/azure/backup/private-endpoints#deny-public-network-access-to-the-vault
- https://learn.microsoft.com/en-us/cli/azure/backup/vault?view=azure-cli-latest#az-backup-vault-list
- https://learn.microsoft.com/en-us/cli/azure/backup/vault?view=azure-cli-latest#az-backup-vault-show
- https://learn.microsoft.com/en-us/cli/azure/backup/vault?view=azure-cli-latest#az-backup-vault-update
- https://learn.microsoft.com/en-us/powershell/module/az.recoveryservices/get-azrecoveryservicesvault?view=azps-12.4.0
- https://learn.microsoft.com/en-us/powershell/module/az.recoveryservices/update-azrecoveryservicesvault?view=azps-12.4.0
Additional Information
Private endpoints for Backup can be only created for Recovery Services vaults that don't have any items protected to it. Azure recommends creating a new vault, and outlines a recommended workflow for disabling public network access and creating private endpoints in the following guides:
- Create and use private endpoints (v1 experience) for Azure Backup
- Create and use private endpoints (v2 experience) for Azure Backup
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 1 | Automated