🛡️ Azure Storage Account Allow Blob Anonymous Access is enabled🟢
- Contextual name: 🛡️ Allow Blob Anonymous Access is enabled🟢
- ID:
/ce/ca/azure/storage/disable-allow-blob-anonymous-access - Tags:
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logic
Similar Policies
- Cloud Conformity: Disable public access to storage accounts with blob containers
- Internal:
dec-x-083928f5
Similar Internal Rules
| Rule | Policies | Flags |
|---|---|---|
| ✉️ dec-x-083928f5 | 1 |
Description
Description
The Azure Storage setting ‘Allow Blob Anonymous Access’ (aka "allowBlobPublicAccess") controls whether anonymous access is allowed for blob data in a storage account. When this property is set to True, it enables public read access to blob data, which can be convenient for sharing data but may carry security risks. When set to False, it disallows public access to blob data, providing a more secure storage environment.
Rationale
If "Allow Blob Anonymous Access" is enabled, blobs can be accessed by adding the blob name to the URL to see the contents. An attacker can enumerate a blob using methods, such as brute force, and access them.
Exfiltration of data by brute force enumeration of items from a storage account may occur if this setting is set to 'Enabled'.
Impact
Additional consideration may be required for exceptional circumstances where elements of a storage account require public accessibility. In these circumstances, it is highly recommended that all data stored in the public facing storage account be reviewed for sensitive or potentially compromising data, and that sensitive or compromising data is never stored in these storage accounts.
... see more
Remediation
Remediation
From Azure Portal
- Go to
Storage Accounts.- For each storage account, under
Settings, clickConfiguration.- Set
Allow Blob Anonymous AccesstoDisabled.- Click
Save.From Powershell
For every storage account in scope, run the following:
$storageAccount = Get-AzStorageAccount -ResourceGroupName "<yourResourceGroup>" -Name "<yourStorageAccountName>" $storageAccount.AllowBlobPublicAccess = $false Set-AzStorageAccount -InputObject $storageAccount