Skip to main content

🛡️ 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/smb-protocol-version
  • Tags:
  • Policy Type: BEST_PRACTICE
  • Policy Categories: SECURITY

Stats​

not available

Logic​

Description​

Open File

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 if Protocol Settings SMB Versions is empty or includes SMB2.1 or SMB3.0.

Default Value​

By default, all SMB versions are allowed.

References​

  1. https://learn.microsoft.com/en-us/azure/well-architected/service-guides/azure-files#recommendations-for-smb-file-shares
  2. https://learn.microsoft.com/en-us/azure/storage/files/files-smb-protocol#smb-security-settings
  3. https://learn.microsoft.com/en-us/cli/azure/storage/account/file-service-properties

... see more

Remediation​

Open File

Remediation​

From Azure Portal​

  1. Go to Storage accounts.
  2. Click the name of a storage account.
  3. Under Data storage, click File shares.
  4. Under File share settings, click the link next to Security.
  5. If Profile is set to Maximum compatibility, click the drop-down menu and select Maximum security or Custom.
  6. If selecting Custom, under SMB protocol versions, uncheck the boxes next to SMB 2.1 and SMB 3.0.
  7. Click Save.
  8. 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-name}} \
--account-name {{storage-account-name}} \
--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-name}} `

... [see more](remediation.md)

policy.yaml​

Open File

Linked Framework Sections​

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
💼 CIS Azure v5.0.0 → 💼 9.1.2 Ensure 'SMB protocol version' is set to 'SMB 3.1.1' or higher for SMB file shares (Automated)1no data
💼 CIS Azure v6.0.0 → 💼 9.1.2 Ensure 'SMB protocol version' is Set to 'SMB 3.1.1' or Higher for SMB file shares (Automated)1no data
💼 Cloudaware Framework → 💼 Cryptographic Configuration18no data