lacework-global-643
Ensure the web app has 'Client Certificates (Incoming client certificates)' set to 'On' (Automated)
Profile Applicability
• Level 2
Description
Client certificates allow for the app to request a certificate for incoming requests. Only clients that have a valid certificate can reach the app.
Rationale
The TLS mutual authentication technique in enterprise environments ensures the authenticity of clients to the server. If incoming client certificates are enabled, then only an authenticated client who has valid certificates can access the app.
Impact
Utilizing and maintaining client certificates will require additional work to obtain and manage replacement and key rotation.
Audit
From Azure Portal
- Login to Azure Portal using https://portal.azure.com
- Go to
App Services
- Click on each App
- Under the Settings section, Click on
Configuration
, thenGeneral settings
- Ensure that the option
Client certificate mode
located under Incoming client certificates is set toRequire
From Azure CLI
To check Incoming client certificates value for an existing app, run the following command,
az webapp show --resource-group <RESOURCE_GROUP_NAME> --name <APP_NAME> --query clientCertEnabled
The output should return true
if Incoming client certificates value is set to On
.
From Azure Powershell
List all web apps.
Get-AzWebApp
For each web app run the following command.
Get-AzWebApp -ResourceGroup <app resource group> -Name <app name>
Make sure the ClientCertEnabled
is set to True
.
Remediation
From Azure Portal
- Login to Azure Portal using https://portal.azure.com.
- Go to App Services.
- Click each App.
- Under the Settings section, click Configuration, then General settings.
- Set the option Client certificate mode located under Incoming client certificates to Require.
From Azure CLI
To set Incoming client certificates value for an existing app, run the following command:
az webapp update --resource-group <resource_group_name> --name <app_name> --set clientCertEnabled=true