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

VMware ESXi - Unexpected disk image

Back
Id395c5560-ddc2-45b2-aafe-2e3f64528d3d
RulenameVMware ESXi - Unexpected disk image
DescriptionDetects unexpected disk image for VM.
SeverityMedium
TacticsImpact
TechniquesT1496
Required data connectorsVMwareESXi
KindScheduled
Query frequency1h
Query period14d
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/VMWareESXi/Analytic Rules/ESXiUnexpectedDiskImage.yaml
Version1.0.0
Arm template395c5560-ddc2-45b2-aafe-2e3f64528d3d.json
Deploy To Azure
let img_ =
VMwareESXi
| where SyslogMessage has ('Matched discovered VM')
| extend DstHostname = extract(@'vim.VirtualMachine\S+,(.*?)\]', 1, SyslogMessage)
| extend kImageName = extract(@'ds:///vmfs/volumes/(.*)/(.*?),', 2, SyslogMessage)
| summarize img_lst = makeset(kImageName) by DstHostname;
VMwareESXi
| where SyslogMessage has ('Matched discovered VM')
| extend DstHostname = extract(@'vim.VirtualMachine\S+,(.*?)\]', 1, SyslogMessage)
| extend ImageName = extract(@'ds:///vmfs/volumes/(.*)/(.*?),', 2, SyslogMessage)
| join (img_) on DstHostname
| where img_lst !has ImageName
| extend HostCustomEntity = DstHostname
name: VMware ESXi - Unexpected disk image
triggerOperator: gt
status: Available
relevantTechniques:
- T1496
query: |
  let img_ =
  VMwareESXi
  | where SyslogMessage has ('Matched discovered VM')
  | extend DstHostname = extract(@'vim.VirtualMachine\S+,(.*?)\]', 1, SyslogMessage)
  | extend kImageName = extract(@'ds:///vmfs/volumes/(.*)/(.*?),', 2, SyslogMessage)
  | summarize img_lst = makeset(kImageName) by DstHostname;
  VMwareESXi
  | where SyslogMessage has ('Matched discovered VM')
  | extend DstHostname = extract(@'vim.VirtualMachine\S+,(.*?)\]', 1, SyslogMessage)
  | extend ImageName = extract(@'ds:///vmfs/volumes/(.*)/(.*?),', 2, SyslogMessage)
  | join (img_) on DstHostname
  | where img_lst !has ImageName
  | extend HostCustomEntity = DstHostname  
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/VMWareESXi/Analytic Rules/ESXiUnexpectedDiskImage.yaml
description: |
    'Detects unexpected disk image for VM.'
triggerThreshold: 0
id: 395c5560-ddc2-45b2-aafe-2e3f64528d3d
kind: Scheduled
severity: Medium
version: 1.0.0
entityMappings:
- fieldMappings:
  - identifier: FullName
    columnName: HostCustomEntity
  entityType: Host
queryFrequency: 1h
queryPeriod: 14d
requiredDataConnectors:
- dataTypes:
  - VMwareESXi
  connectorId: VMwareESXi
tactics:
- Impact
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2023-02-01-preview",
      "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/395c5560-ddc2-45b2-aafe-2e3f64528d3d')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/395c5560-ddc2-45b2-aafe-2e3f64528d3d')]",
      "properties": {
        "alertRuleTemplateName": "395c5560-ddc2-45b2-aafe-2e3f64528d3d",
        "customDetails": null,
        "description": "'Detects unexpected disk image for VM.'\n",
        "displayName": "VMware ESXi - Unexpected disk image",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Host",
            "fieldMappings": [
              {
                "columnName": "HostCustomEntity",
                "identifier": "FullName"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/VMWareESXi/Analytic Rules/ESXiUnexpectedDiskImage.yaml",
        "query": "let img_ =\nVMwareESXi\n| where SyslogMessage has ('Matched discovered VM')\n| extend DstHostname = extract(@'vim.VirtualMachine\\S+,(.*?)\\]', 1, SyslogMessage)\n| extend kImageName = extract(@'ds:///vmfs/volumes/(.*)/(.*?),', 2, SyslogMessage)\n| summarize img_lst = makeset(kImageName) by DstHostname;\nVMwareESXi\n| where SyslogMessage has ('Matched discovered VM')\n| extend DstHostname = extract(@'vim.VirtualMachine\\S+,(.*?)\\]', 1, SyslogMessage)\n| extend ImageName = extract(@'ds:///vmfs/volumes/(.*)/(.*?),', 2, SyslogMessage)\n| join (img_) on DstHostname\n| where img_lst !has ImageName\n| extend HostCustomEntity = DstHostname\n",
        "queryFrequency": "PT1H",
        "queryPeriod": "P14D",
        "severity": "Medium",
        "status": "Available",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "Impact"
        ],
        "techniques": [
          "T1496"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}