-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
HuntingHunting specialty review neededHunting specialty review needed
Description
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:-
- From | where OperationNameValue == "Microsoft.Compute/virtualMachines/runCommand/action" to | where OperationNameValue =~ "Microsoft.Compute/virtualMachines/runCommand/action"
- 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
HuntingHunting specialty review neededHunting specialty review needed