Microsoft Sentinel Analytic Rules
cloudbrothers.infoAzure Sentinel RepoToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

AppServices AV Scan Failure

Back
Idc2da1106-bfe4-4a63-bf14-5ab73130ccd5
RulenameAppServices AV Scan Failure
DescriptionIdentifies if an AV scan fails in Azure App Services.
SeverityInformational
KindScheduled
Query frequency1d
Query period1d
Trigger threshold1
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Detections/AzureAppServices/AVScan_Failure.yaml
Version1.0.3
Arm templatec2da1106-bfe4-4a63-bf14-5ab73130ccd5.json
Deploy To Azure
let timeframe = ago(1d);
AppServiceAntivirusScanAuditLogs
| where ScanStatus == "Failed"
| extend timestamp = TimeGenerated
metadata:
  categories:
    domains:
    - Security - Others
    - Platform
  author:
    name: SecurityJedi
  support:
    tier: Community
  source:
    kind: Community
name: AppServices AV Scan Failure
requiredDataConnectors: []
entityMappings:
- fieldMappings:
  - identifier: AzureID
    columnName: _ResourceId
  entityType: Host
triggerThreshold: 1
id: c2da1106-bfe4-4a63-bf14-5ab73130ccd5
version: 1.0.3
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Detections/AzureAppServices/AVScan_Failure.yaml
queryPeriod: 1d
kind: Scheduled
queryFrequency: 1d
severity: Informational
description: |
    'Identifies if an AV scan fails in Azure App Services.'
query: |
  let timeframe = ago(1d);
  AppServiceAntivirusScanAuditLogs
  | where ScanStatus == "Failed"
  | extend timestamp = TimeGenerated  
triggerOperator: gt
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2024-01-01-preview",
      "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/c2da1106-bfe4-4a63-bf14-5ab73130ccd5')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/c2da1106-bfe4-4a63-bf14-5ab73130ccd5')]",
      "properties": {
        "alertRuleTemplateName": "c2da1106-bfe4-4a63-bf14-5ab73130ccd5",
        "customDetails": null,
        "description": "'Identifies if an AV scan fails in Azure App Services.'\n",
        "displayName": "AppServices AV Scan Failure",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Host",
            "fieldMappings": [
              {
                "columnName": "_ResourceId",
                "identifier": "AzureID"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Detections/AzureAppServices/AVScan_Failure.yaml",
        "query": "let timeframe = ago(1d);\nAppServiceAntivirusScanAuditLogs\n| where ScanStatus == \"Failed\"\n| extend timestamp = TimeGenerated\n",
        "queryFrequency": "P1D",
        "queryPeriod": "P1D",
        "severity": "Informational",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "templateVersion": "1.0.3",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 1
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}