rules/findings/azure/appservices/azure-app-service-basic-publishing-credentials-enabled.json
|
{
"args": [], "provider": "Azure", "serviceType": "_ARG_0_", "serviceName": "Hosted Services", "displayName": "Ensure 'Basic Authentication Publishing Credentials' are 'Disabled'", "description": "Basic Authentication Publishing Credentials provides the ability to publish— or deploy to—an App Service app without a centralized Identity Provider. For a more effective, capable, and secure solution for Identity, Authentication, Authorization, and Accountability, a centralized Identity Provider such as Entra ID is strongly advised.", "rationale": "Basic Authentication introduces an identity silo for privileged access to a resource and produces logging which may not provide a full chain of accountability. This can be exploited in numerous ways and represents a significant vulnerability and attack vector.", "impact": "Disabling 'Basic Auth Publishing Credentials' will prevent the following deployment methods from working:\nFTP Basic Auth Publishing Credentials:\n• FTP\n• FTPS SCM Basic Auth Publishing Credentials:\n• Local Git\n• GitHub\n• Azure Repos\n• Bitbucket\n• Visual Studio (Version 17.12 and earlier) If this recommendation cannot be implemented because one of the above listed deployment methods is necessary and cannot be adapted, compensating controls (e.g. using FTPS Only and disabling only \"SCM Basic Auth Publishing Credentials\") are recommended to reduce potential attack surface.<br/><br/>An Identity Provider that can be used by the App Service app for authenticating users is required.", "remediation": { "text": " #### Remediate from Azure Portal 1. Search for, and open App Services from the search bar. 2. For each App Service listed: 3. Click on the App Service name. 4. Under the Settings menu item, click on Configuration 5. Under the General settings tab, scroll down to locate the two Basic Auth settings: * Set the SCM Basic Auth Publishing Credentials radio button to Off * Set the FTP Basic Auth Publishing Credentials radio button to Off *CAUTION*: The new settings are not yet applied. Applying them may cause your App Service resource to restart - proceed with caution. Click the Save button, then click Continue to apply the updated configuration. Repeat this procedure for each App Service. ", "code": { "powerShell": null, "iac": null, "terraform": null, "other": null } }, "recommendation": null, "references": [ "https://learn.microsoft.com/en-us/azure/app-service/configure-basic-auth-disable?tabs=portal", "https://learn.microsoft.com/en-us/cli/azure/webapp", "https://learn.microsoft.com/en-us/cli/azure/resource?view=azure-cli-latest" ], "compliance": [ { "name": "_ARG_1_", "version": "_ARG_2_", "reference": "_ARG_3_", "profile": [ "Level 1" ] } ], "level": "medium", "tags": [], "rule": { "path": "az_app_services", "subPath": null, "selectCondition": {}, "query": [ { "filter": [ { "conditions": [ [ "basicPublishingCredentialsPolicies.properties.allow", "ne", "false" ] ] } ] }, { "connectOperator": "and", "filter": [ { "include": "_ARG_4_" } ] } ], "shouldExist": null, "returnObject": null, "removeIfNotExists": null }, "output": { "html": { "data": { "properties": { "name": "Name", "location": "location", "resourceGroupName": "Resource Group Name", "basicPublishingCredentialsPolicies.properties.allow":"Basic Authentication Publishing Credentials" }, "expandObject": null }, "table": "default", "decorate": [], "emphasis": [], "actions": { "objectData": { "properties": [ "name", "location", "resourceGroupName", "basicPublishingCredentialsPolicies" ], "expandObject": null, "limit": null }, "showGoToButton": "True", "showModalButton": "True", "directLink": null } }, "text": { "data": { "properties": { "name": "Name", "location": "location", "resourceGroupName": "Resource Group Name", "basicPublishingCredentialsPolicies.properties.allow":"Basic Authentication Publishing Credentials" }, "expandObject": null }, "status": { "keyName": ["name"], "message": "Ensure 'Basic Authentication Publishing Credentials' are 'Disabled' for {name}", "defaultMessage": null }, "properties": { "resourceName": "name", "resourceId": "id", "resourceType": "type" }, "onlyStatus": false } }, "idSuffix": "azure__ARG_0__basic_publishing_credentials_enabled", "notes": [], "categories": [], "immutable_properties": [ "name", "id" ], "id": "azure_app_service__ARG_5_" } |