π Azure Storage File Shares SMB Channel Encryption is not set to AES-256-GCM or higher π’
- Contextual name: π File Shares SMB Channel Encryption is not set to AES-256-GCM or higher π’
- ID:
/ce/ca/azure/storage/smb-channel-encryption
- Located in: π Azure Storage
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
BEST_PRACTICE
- Policy Category:
SECURITY
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
Implement SMB channel encryption with AES-256-GCM for SMB file shares to ensure data confidentiality and integrity in transit. This method offers strong protection against eavesdropping and man-in-the-middle attacks, safeguarding sensitive information.
Rationaleβ
AES-256-GCM encryption enhances the security of data transmitted over SMB channels by safeguarding it from unauthorized interception and tampering.
Impactβ
Using the AES-256-GCM SMB channel encryption may impact client compatibility.
Auditβ
This policy flags an Azure Storage File as
INCOMPLIANT
ifProtocol Settings Channel Encryption
is empty or includes AES-128-CCM or AES-128-GCM.Default Valueβ
By default, the following SMB channel encryption algorithms are allowed:
- AES-128-CCM
- AES-128-GCM
- AES-256-GCM
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?tabs=azure-portal#smb-security-settings
... 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 channel encryption
, uncheck the boxes next toAES-128-CCM
andAES-128-GCM
.- 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 channel encryption:
az storage account file-service-properties update --resource-group <resource-group> --account-name <storage-account> --channel-encryption AES-256-GCM
From PowerShellβ
For each storage account requiring remediation, run the following command to set the SMB channel encryption:
Update-AzStorageFileServiceProperty -ResourceGroupName <resource-group> -StorageAccountName <storage-account> -SmbChannelEncryption AES-256-GCM
... [see more](remediation.md)
policy.yamlβ
Linked Framework Sectionsβ
Section | Sub Sections | Internal Rules | Policies | Flags |
---|---|---|---|---|
πΌ CIS Azure v4.0.0 β πΌ 10.1.3 Ensure 'SMB channel encryption' is set to 'AES-256-GCM' or higher for SMB file shares (Automated) | 1 | |||
πΌ Cloudaware Framework β πΌ Data Encryption | 40 |