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

Azure Function app configured with public network access misconfiguration detected in code

Azure Function app configured with public network access misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_AZURE_221

Category - Subcategory

Public Exposure - APIs

Provider

AZURE

Severity

MEDIUM

Framework

Terraform

Mapped CSPM/KSPM Rule

6106ed75-4236-4183-961f-1a15bc403af7

Impact

Azure Functions is a serverless compute service that enables you to run event-driven code without having to explicitly provision or manage infrastructure. It's essential to restrict public access to such applications to mitigate potential risks. This rule ensures that the public network access to Azure Function Apps is disabled.

How to Fix

Resources:

  • azurerm_linux_function_app

  • azurerm_linux_function_app_slot

  • azurerm_windows_function_app

  • azurerm_windows_function_app_slot

Arguments:

  • public_network_access_enabled [source,go]


resource "azurerm_linux_function_app" "example" { name = "example-app" resource_group_name = azurerm_resource_group.example.name location = azurerm_resource_group.example.location

... other configurations ...

  • public_network_access_enabled = false }

resource "azurerm_windows_function_app" "example" { name = "example-app" resource_group_name = azurerm_resource_group.example.name location = azurerm_resource_group.example.location

... other configurations ...

  • public_network_access_enabled = false }

... Similar configurations for other supported resources ...


Last updated

Was this helpful?