π Azure App Service Remote Debugging is not disabled π’
- Contextual name: π Remote Debugging is not disabled π’
- ID:
/ce/ca/azure/app-service/disable-remote-debugging
- Located in: π Azure App Service
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-bbfcf890
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-bbfcf890 | 1 |
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
Remote Debugging allows Azure App Service to be debugged in real-time directly on the Azure environment. When remote debugging is enabled, it opens a communication channel that could potentially be exploited by unauthorized users if not properly secured.
Rationaleβ
Disabling remote debugging on Azure App Service is primarily about enhancing security.
Remote debugging opens a communication channel that can be exploited by attackers. By disabling it, you reduce the number of potential entry points for unauthorized access.
If remote debugging is enabled without proper access controls, it can allow unauthorized users to connect to your application, potentially leading to data breaches or malicious code execution.
During a remote debugging session, sensitive information might be exposed. Disabling remote debugging helps ensure that such data remains secure. This minimizes the use of remote access tools to reduce risk.
Impactβ
You will not be able to connect to your application from a remote location to diagnose and fix issues in real-time. You will not be able to step through code, set breakpoints, or inspect variables and the call stack while the application is running on the server. Remote debugging is particularly useful for diagnosing issues that only occur in the production environment. Without it, you will need to rely on logs and other diagnostic tools.
... see more
Remediationβ
Remediationβ
From Azure Portalβ
- Login to Azure Portal using https://portal.azure.com.
- Go to
App Services
.- Click on each App.
- Under
Setting
section, Click onConfiguration
.- Under the
General settings
tab, set theRemote debugging
option toOff
.From Azure CLIβ
To set remote debugging status to off, run the following command:
az webapp config set --resource-group <resource_group_name> --name <app_name> --remote-debugging-enabled false
From PowerShellβ
To set remote debugging status to off, run the following commandΠ
Set-AzWebApp -ResourceGroupName <resource_group_name> -Name <app_name> -RemoteDebuggingEnabled $false
policy.yamlβ
Linked Framework Sectionsβ
Section | Sub Sections | Internal Rules | Policies | Flags |
---|---|---|---|---|
πΌ CIS Azure v3.0.0 β πΌ 9.12 Ensure that 'Remote debugging' is set to 'Off' (Automated) | 1 | |||
πΌ Cloudaware Framework β πΌ Threat Protection | 27 | |||
πΌ NIST SP 800-53 Revision 4 β πΌ SC-17 PUBLIC KEY INFRASTRUCTURE CERTIFICATES | 2 | 2 | ||
πΌ NIST SP 800-53 Revision 5 β πΌ SI-7(12) Software, Firmware, and Information Integrity _ Integrity Verification | 19 | 21 |