Information
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.
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.
NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.
Solution
Remediate 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
- If Profile is set to Maximum compatibility click the drop-down menu and select Maximum security or Custom
- If selecting Custom under SMB protocol versions uncheck the boxes next to SMB 2.1 and SMB 3.0
- Click Save
- Repeat steps 1-7 for each storage account requiring remediation.
Remediate from Azure CLI
For each storage account requiring remediation, run the following command to set the SMB protocol version:
az storage account file-service-properties update --resource-group <resource-group> --account-name <storage-account> --versions SMB3.1.1
Remediate from PowerShell
For each storage account requiring remediation, run the following command to set the SMB protocol version:
Update-AzStorageFileServiceProperty -ResourceGroupName <resource-group> -StorageAccountName <storage-account> -SmbProtocolVersion SMB3.1.1
Impact:
Using the latest SMB protocol version may impact client compatibility.