Project: KICS (Provisioning / Security & Compliance)
File: 92302b47-b0cc-46cb-a28f-5610ecda140b.md

title: Website with Client Certificate Auth Disabled hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: 92302b47-b0cc-46cb-a28f-5610ecda140b Query name: Website with Client Certificate Auth Disabled Platform: AzureResourceManager Severity: <span style="color:#ff7213">Medium</span> Category: Networking and Firewall URL: 'Microsoft.Web/sites' should have client certificate authentication enabled<br> ```json title="Positive test num. 1 - json file" hl_lines="15" { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "webSite", "type": "Microsoft.Web/sites", "apiVersion": "2020-12-01", "location": "location1", "tags": {}, "properties": { "enabled": true }, "resources": [] } ], "outputs": {} } ``` ```json title="Positive test num. 2 - json file" hl_lines="17" { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "webSite", "type": "Microsoft.Web/sites", "apiVersion": "2020-12-01", "location": "location1", "tags": {}, "properties": { "enabled": true, "clientCertEnabled": false }, "resources": [] } ], "outputs": {} } ``` ```json title="Positive test num. 3 - json file" hl_lines="17" { "properties": { "template": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "webSite", "type": "Microsoft.Web/sites", "apiVersion": "2020-12-01", "location": "location1", "tags": {}, "properties": { "enabled": true }, "resources": [] } ], "outputs": {} }, "parameters": {} }, "kind": "template", "type": "Microsoft.Blueprint/blueprints/artifacts", "name": "myTemplate" } ``` <details><summary>Positive test num. 4 - json file</summary> ```json hl_lines="19" { "properties": { "template": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "webSite", "type": "Microsoft.Web/sites", "apiVersion": "2020-12-01", "location": "location1", "tags": {}, "properties": { "enabled": true, "clientCertEnabled": false }, "resources": [] } ], "outputs": {} }, "parameters": {} }, "kind": "template", "type": "Microsoft.Blueprint/blueprints/artifacts", "name": "myTemplate" } ``` </details> ```json title="Negative test num. 1 - json file" { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "webSite", "type": "Microsoft.Web/sites", "apiVersion": "2020-12-01", "location": "location1", "tags": {}, "properties": { "enabled": true, "clientCertEnabled": true }, "resources": [] } ], "outputs": {} } ``` ```json title="Negative test num. 2 - json file" { "properties": { "template": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "webSite", "type": "Microsoft.Web/sites", "apiVersion": "2020-12-01", "location": "location1", "tags": {}, "properties": { "enabled": true, "clientCertEnabled": true }, "resources": [] } ], "outputs": {} }, "parameters": {} }, "kind": "template", "type": "Microsoft.Blueprint/blueprints/artifacts", "name": "myTemplate" } ```