Check provider logo

Storage account uses Microsoft Entra authorization by default

storage_default_to_entra_authorization_enabled

Severitymedium
Servicestorage
by Prowler

Azure Storage accounts with Default to Microsoft Entra authorization in the Azure portal use token-based Microsoft Entra ID (Azure RBAC) by default to access blobs, files, queues, and tables, rather than account keys

Risk

Defaulting to access keys/Shared Key enables broad, non-scoped access and weak auditing. A stolen key grants full data access, risking confidentiality (exfiltration), integrity (unauthorized writes/deletes), and availability (destructive actions). It can also bypass least privilege and enable lateral movement via key reuse.

Run this check with Prowler CLI

prowler azure --checks storage_default_to_entra_authorization_enabled

Recommendation

Enable this setting so the portal uses Microsoft Entra ID by default. Apply least privilege with Azure RBAC, prefer managed identities and user-delegation SAS, and where feasible disable Shared Key use. Rotate any existing keys, and monitor access with logs to enforce defense in depth.

Remediation

CLI

az storage account update -g <resource-group-name> -n <storage-account-name> --set defaultToOAuthAuthentication=true

Native IaC
Terraform
Other
  1. In the Azure portal, go to Storage accounts and select your account
  2. Under Settings, select Configuration
  3. Set "Default to Microsoft Entra authorization in the Azure portal" to Enabled
  4. Click Save

Source Code

Resource Type

microsoft.storage/storageaccounts

References