| name | cis-azure-database-9.2 |
| description | Ensure that 'Public Network Access' is set to 'Disable' |
| category | cis-azure-database |
| version | 2.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","sql-database","sql-server"] |
| cis_id | 9.2 |
| cis_benchmark | CIS Microsoft Azure Database Services Benchmark v2.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
9.2 Ensure that 'Public Network Access' is set to 'Disable' (Automated)
Profile Applicability
Description
Disabling public network access restricts the service from accessing public networks.
Rationale
A secure network architecture requires carefully constructed network segmentation. Public network access is overly permissive and introduces unintended vectors for threat activity.
Impact
Disabling 'Public Network Access' forces the requirement of the use of Private Endpoints for network connectivity which will require some additional consideration from a network architecture perspective and will introduce cost based on the inbound/outbound data being processed by the Private Endpoint.
Audit Procedure
Audit from Azure Portal
- Go to
SQL servers.
- For each SQL server, under
Security, click Networking.
- Ensure that
Public network access is set to Disable.
Audit from Azure CLI
List all SQL Servers and ensure publicNetworkAccess is not Enabled:
az sql server list --query "[].{name:name, resourceGroup:resourceGroup, publicNetworkAccess:publicNetworkAccess}"
Audit from PowerShell
List all SQL Servers and ensure PublicNetworkAccess is not Enabled:
Get-AzSqlServer | Select-Object -Property ServerName, ResourceGroupName, PublicNetworkAccess
Audit from Azure Policy
Policy ID: 1b8ca024-1d5c-4dec-8995-b1a932b41780
Name: 'Public network access on Azure SQL Database should be disabled'
Expected Result
Public network access should be set to Disable.
Remediation
Remediate from Azure Portal
- Go to
SQL servers.
- For each SQL server, under
Security, click Networking.
- Set
Public network access to Disable.
- Click
Save.
Remediate from Azure CLI
For each SQL server with publicNetworkAccess , set it to :