| name | cis-azure-foundations-9.1.2 |
| description | Ensure 'SMB protocol version' is set to 'SMB 3.1.1' or higher for SMB file shares |
| category | cis-azure-foundations |
| version | 5.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","azure-files","storage","smb","protocol-version","encryption"] |
| cis_id | 9.1.2 |
| cis_benchmark | CIS Microsoft Azure Foundations Benchmark v5.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Ensure 'SMB protocol version' is set to 'SMB 3.1.1' or higher for SMB file shares
Description
Ensure that SMB file shares are configured to use the latest supported SMB protocol version. Keeping the SMB protocol updated helps mitigate risks associated with older SMB versions, which may contain vulnerabilities and lack essential security controls.
Rationale
Using the latest supported SMB protocol version enhances the security of SMB file shares by preventing the exploitation of known vulnerabilities in outdated SMB versions.
Impact
Using the latest SMB protocol version may impact client compatibility.
Audit Procedure
Audit from Azure Portal
- Go to
Storage accounts.
- Click the name of a storage account.
- Under
Data storage, click File shares.
- Under
File share settings, click the link next to Security.
- Under
SMB protocol versions, ensure that SMB3.1.1 is the only checked protocol version.
- Repeat steps 1-5 for each storage account.
Audit from Azure CLI
Run the following command to list storage accounts:
az storage account list
For each storage account, run the following command:
az storage account file-service-properties show --resource-group <resource-group> --account-name <storage-account>
Ensure that under protocolSettings > smb, versions is set to SMB3.1.1; only.
Audit from PowerShell
Run the following command to list storage accounts:
Get-AzStorageAccount
Run the following command to get the file service properties for a storage account in a resource group with a given name:
$storageaccountfileservice = Get-AzStorageFileServiceProperty -ResourceGroupName <resource-group> -AccountName <storage-account>
Run the following command to get the SMB protocol version setting:
$storageaccountfileservice.ProtocolSettings.Smb.Versions
Ensure that the command returns SMB3.1.1 only.
Expected Result
SMB protocol versions should be set to SMB3.1.1 only.