| name | cis-azure-foundations-9.3.4 |
| description | Ensure 'Secure transfer required' is set to 'Enabled' |
| category | cis-azure-foundations |
| version | 5.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","storage-accounts","https","secure-transfer","encryption-in-transit"] |
| cis_id | 9.3.4 |
| cis_benchmark | CIS Microsoft Azure Foundations Benchmark v5.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Ensure 'Secure transfer required' is set to 'Enabled'
Description
Enable data encryption in transit.
Rationale
The secure transfer option enhances the security of a storage account by only allowing requests to the storage account by a secure connection. For example, when calling REST APIs to access storage accounts, the connection must use HTTPS. Any requests using HTTP will be rejected when 'secure transfer required' is enabled. When using the Azure files service, connection without encryption will fail, including scenarios using SMB 2.1, SMB 3.0 without encryption, and some flavors of the Linux SMB client. Because Azure storage does not support HTTPS for custom domain names, this option is not applied when using a custom domain name.
Audit Procedure
Audit from Azure Portal
- Go to
Storage Accounts.
- For each storage account, under
Settings, click Configuration.
- Ensure that
Secure transfer required is set to Enabled.
Audit from Azure CLI
Use the below command to ensure the Secure transfer required is enabled for all the Storage Accounts by ensuring the output contains true for each of the Storage Accounts.
az storage account list --query "[*].[name,enableHttpsTrafficOnly]"
Expected Result
enableHttpsTrafficOnly should be true for all storage accounts.
Remediation
Remediate from Azure Portal
- Go to
Storage Accounts.
- For each storage account, under
Settings, click Configuration.
- Set
Secure transfer required to Enabled.
- Click
Save.
Remediate from Azure CLI
Use the below command to enable Secure transfer required for a Storage Account:
az storage account update --name <storageAccountName> --resource-group <resourceGroupName> --https-only true
Default Value
By default, Secure transfer required is set to Disabled.