turbot/azure_compliance
Loading controls...

Control: 3.1 Ensure that 'Secure transfer required' is set to 'Enabled'

Description

Enable data encryption in transit.

The secure transfer option enhances the security of a storage account by only allowing requests to the storage account by a secure connection. For example, when calling REST APIs to access storage accounts, the connection must use HTTPS. Any requests using HTTP will be rejected when 'secure transfer required' is enabled. When using the Azure files service, connection without encryption will fail, including scenarios using SMB 2.1, SMB 3.0 without encryption, and some flavors of the Linux SMB client. Because Azure storage doesn’t support HTTPS for custom domain names, this option is not applied when using a custom domain name.

Remediation

From Console

  1. Login to Azure Storage Accounts
  2. For each selected storage account, navigate to settings section
  3. Click on Configuration
  4. Navigate to Security section
  5. Set Secure transfer required to Enabled

From Command Line

Use the below command to enable Secure transfer required for a Storage Account.

az storage account update --name <storageAccountName> --resource-group <resourceGroupName> --https-only true

Usage

Run the control in your terminal:

powerpipe control run azure_compliance.control.cis_v130_3_1

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run azure_compliance.control.cis_v130_3_1 --share

SQL

This control uses a named query:

storage_account_secure_transfer_required_enabled

Tags