Back to controls

Ensure Azure Function Apps have remote debugging disabled

Remote debugging opens additional management access paths to the Function App runtime and should only be enabled temporarily during active troubleshooting. Leaving it enabled in production increases the blast radius of compromised developer credentials or exposed management endpoints.

Category

Controls

Medium

Applies to

Microsoft Azure

Coverage

1 queries

Asset types

1 covered

Overview

Remote debugging opens additional management access paths to the Function App runtime and should only be enabled temporarily during active troubleshooting. Leaving it enabled in production increases the blast radius of compromised developer credentials or exposed management endpoints.

Disable remote debugging except for short, approved maintenance windows.

Remediation guidance

Remediation

Disable remote debugging on the Function App.

Azure CLI

az resource update \
  --ids {{asset.idFromProvider}}/config/web \
  --set properties.remoteDebuggingEnabled=false

Validate the setting:

az resource show \
  --ids {{asset.idFromProvider}}/config/web \
  --query 'properties.remoteDebuggingEnabled'

References

  • https://learn.microsoft.com/en-us/azure/azure-functions/security-concepts
  • https://learn.microsoft.com/en-us/azure/app-service/configure-common

Query logic

These are the stored checks tied to this control.

Azure Function Apps with remote debugging enabled

Connectors

Microsoft Azure

Covered asset types

FunctionApp

Expected check: eq []

{
  functionApps(
    where: {
      configs_SOME: {
        remoteDebuggingEnabled: { eq: true }
      }
    }
  ) {
    ...AssetFragment
  }
}
Cyscale Logo
Cyscale is an agentless cloud-native application protection platform (CNAPP) that automates the contextual analysis of cloud misconfigurations, vulnerabilities, access, and data, to provide an accurate and actionable assessment of risk.

Stay connected

Receive new blog posts and product updates from Cyscale

By clicking Subscribe, I agree to Cyscale’s Privacy Policy


© 2026 Cyscale Limited

LinkedIn icon
Twitter icon
Facebook icon
crunch base icon
angel icon