Skip to content
WETNav

OperationNameValue / operationName / operationName.value / authorization.actionHigh signal

Microsoft.Compute/virtualMachines/runCommand/action: VM Run Command

A script was run inside a VM through the Azure agent.

How to read it

Runs as SYSTEM or root without RDP or SSH. Collect the script from the guest: on Windows under C:\Packages\Plugins\Microsoft.CPlat.Core.RunCommandWindows.

Find it

AzureActivity
| where OperationNameValue =~ "Microsoft.Compute/virtualMachines/runCommand/action"
| project TimeGenerated, Caller, CallerIpAddress, ActivityStatusValue, _ResourceId, Properties

ATT&CK

About OperationNameValue

Every control-plane write in an Azure subscription is an operation of the form Provider/resourceType/action. These are the ones that grant access, run code, move data out or blind logging.

Every Azure Activity Log operation value →

Questions

What does OperationNameValue Microsoft.Compute/virtualMachines/runCommand/action mean?
VM Run Command. A script was run inside a VM through the Azure agent. Runs as SYSTEM or root without RDP or SSH. Collect the script from the guest: on Windows under C:\Packages\Plugins\Microsoft.CPlat.Core.RunCommandWindows.
Is OperationNameValue Microsoft.Compute/virtualMachines/runCommand/action a sign of an attack?
Often, yes. It is a strong signal. It is associated with MITRE ATT&CK Cloud Administration Command (T1651). Confirm it with the surrounding events: who made the request, from where, and what happened next.
Where is OperationNameValue Microsoft.Compute/virtualMachines/runCommand/action recorded?
In the operationName.value field of Azure Activity Log.
How do I search for OperationNameValue Microsoft.Compute/virtualMachines/runCommand/action?
The queries on this page filter for it in PowerShell, Microsoft Sentinel and the source's own tools. Paste a full record into the WETNav decoder to see every other field explained too.