π Azure Storage File Shares SMB Protocol Version is not set to SMB 3.1.1 or higher π’
- Contextual name: π File Shares SMB Protocol Version is not set to SMB 3.1.1 or higher π’
- ID:
/ce/ca/azure/storage/snb-protocol-version
- Located in: π Azure Storage
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
BEST_PRACTICE
- Policy Category:
SECURITY
RELIABILITY
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
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β
This policy flags an Azure Storage File as
INCOMPLIANT
ifProtocol Settings SMB Versions
is empty or includes SMB2.1 or SMB3.0.Default Valueβ
By default, all SMB versions are allowed.
Referencesβ
- https://learn.microsoft.com/en-us/azure/well-architected/service-guides/azure-files#recommendations-for-smb-file-shares
- https://learn.microsoft.com/en-us/azure/storage/files/files-smb-protocol#smb-security-settings
- https://learn.microsoft.com/en-us/cli/azure/storage/account/file-service-properties
... see more
Remediationβ
Remediationβ
From Azure Portalβ
- Go to
Storage accounts
.- Click the name of a storage account.
- Under
Data storage
, clickFile shares
.- Under
File share settings
, click the link next toSecurity
.- If
Profile
is set toMaximum compatibility
, click the drop-down menu and selectMaximum security
orCustom
.- If selecting
Custom
, underSMB protocol versions
, uncheck the boxes next toSMB 2.1
andSMB 3.0
.- Click
Save
.- Repeat steps 1-7 for each storage account requiring remediation.
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
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
... [see more](remediation.md)
policy.yamlβ
Linked Framework Sectionsβ
Section | Sub Sections | Internal Rules | Policies | Flags |
---|---|---|---|---|
πΌ CIS Azure v4.0.0 β πΌ 10.1.2 Ensure 'SMB protocol version' is set to 'SMB 3.1.1' or higher for SMB file shares (Automated) | 1 | |||
πΌ Cloudaware Framework β πΌ Infrastructure Modernization | 12 | |||
πΌ Cloudaware Framework β πΌ Threat Protection | 27 |