π Azure Storage Account Allow Blob Anonymous Access is set enabled π’
- Contextual name: π Allow Blob Anonymous Access is set enabled π’
- ID:
/ce/ca/azure/storage/disable-allow-blob-anonymous-access
- Located in: π Azure Storage
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
Similar Policiesβ
- Cloud Conformity
- Internal
dec-x-083928f5
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-083928f5 | 1 |
Logicβ
- π§ prod.logic.yaml π’
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 Access
toDisabled
.- 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