| name | cis-azure-database-5.8 |
| description | Ensure server parameter 'require_secure_transport' is set to 'ON' for MySQL Server |
| category | cis-azure-database |
| version | 2.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","mysql","database"] |
| cis_id | 5.8 |
| cis_benchmark | CIS Microsoft Azure Database Services Benchmark v2.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
5.8 Ensure server parameter 'require_secure_transport' is set to 'ON' for MySQL Server (Automated)
Profile Applicability
Description
Enable require_secure_transport on MySQL flexible servers.
Rationale
The Secure Sockets Layer (SSL) protocol encrypts network traffic transiting between server and client. Enforcing SSL connections between database server and client applications helps protect against "man in the middle" attacks by encrypting the data stream between the server and application.
Impact
None specified.
Audit
Audit from Azure Portal
- Login to Azure Portal using https://portal.azure.com.
- Go to
Azure Database for MySQL flexible servers.
- For each database, under
Settings, click Server parameters.
- In the filter bar, type
require_secure_transport.
- Ensure that the value for
require_secure_transport is ON.
Audit from Azure CLI
Ensure the below command returns a value of on:
az mysql flexible-server parameter show --resource-group <resourceGroup> --server-name <serverName> --name require_secure_transport
Audit from PowerShell
Ensure the below command returns a Value of on:
Get-AzMySqlFlexibleServerConfiguration -ResourceGroupName <resourceGroup> -ServerName <serverName> -Name require_secure_transport
Expected Result
The require_secure_transport server parameter should return a value of ON.
Remediation
Remediate from Azure Portal
- Login to Azure Portal using https://portal.azure.com.
- Go to
Azure Database for MySQL flexible servers.
- For each database, under
Settings, click Server parameters.
- In the filter bar, type
require_secure_transport.
- Set the
VALUE for require_secure_transport to .