Skip to content

Outdated hunting query for AzureRunCommandMDELinked #11686

@mgijo

Description

@mgijo

Describe the bug
The existing hunting query for Azure VM Run Command linked with MDE located here is outdated https://github.com/Azure/Azure-Sentinel/blob/master/Hunting%20Queries/MultipleDataSources/AzureRunCommandMDELinked.yaml

To Reproduce
I tried executing this in my environment and don't see any results. I have made few changes to the query that helped me get some results. But again the KQL line that mentions | where PowershellFileCreatedTimestamp between (StartTime .. EndTime) probably needs fixing. Some other fixes I found that needs to be done with this hunting query:-

  1. From | where OperationNameValue == "Microsoft.Compute/virtualMachines/runCommand/action" to | where OperationNameValue =~ "Microsoft.Compute/virtualMachines/runCommand/action"
  2. From | where list_ActivityStatusValue has "Succeeded" to | where list_ActivityStatusValue has "Success"

This query seems to be outdated since it was built 4 years ago. I would recommend a review and fix on this.

Metadata

Metadata

Labels

HuntingHunting specialty review needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions