For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

Anonymous blob access configured in Azure storage account misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC2_AZURE_47

Category - Subcategory

IAM - Overly Permissive

Provider

AZURE

Severity

MEDIUM

Framework

Terraform, Terraform Plan

Impact

This rule checks whether a storage account is configured to allow anonymous access to blob data. Anonymous access to blob data permits anyone on the internet to access or view the stored data without the need for any authentication. This poses a potential risk, as it exposes sensitive data to the public, increasing the likelihood of data leaks and privacy breaches.

How to Fix

Resource: azurerm_storage_account

  • Arguments: allow_nested_items_to_be_public

To fix the issue, disable anonymous access to the blob content of your storage account: Set the allow_nested_items_to_be_public attribute to false. This ensures that no one can read blob content without proper authentication and authorization.

This code sets the allow_nested_items_to_be_public attribute to false, disabling anonymous access to the blob content. [source,go]

resource "azurerm_storage_account" "storage_account" { ... allow_nested_items_to_be_public = false }

Last updated

Was this helpful?