DeviceProcessEvents
DeviceProcessEvents contains process creation and related endpoint process activity available for advanced hunting.
tablesCurrent
Relationships
Microsoft Defender for Endpoint
Source productproductMicrosoft Defender for Endpoint P2
Required licenselicenseMicrosoft Graph Security API
API accessapiMicrosoft Defender for Endpoint APIs
API accessapiLegacy Microsoft Defender XDR APIs
API accessapiDeviceEvents
Related tabletableDeviceFileEvents
Related tabletableDeviceNetworkEvents
Related tabletableDeviceRegistryEvents
Related tabletableDeviceImageLoadEvents
Related tabletable
Source productproductMicrosoft Defender for Endpoint P2
Required licenselicenseMicrosoft Graph Security API
API accessapiMicrosoft Defender for Endpoint APIs
API accessapiLegacy Microsoft Defender XDR APIs
API accessapiDeviceEvents
Related tabletableDeviceFileEvents
Related tabletableDeviceNetworkEvents
Related tabletableDeviceRegistryEvents
Related tabletableDeviceImageLoadEvents
Related tabletable
Schema
| Field | Type | Description | Copy |
|---|---|---|---|
Timestamp | datetime | Date and time when the event was recorded. | |
DeviceId | string | Unique identifier for the device in the service. | |
DeviceName | string | Fully qualified domain name of the device. | |
ActionType | string | Type of activity that triggered the event. | |
FileName | string | Name of the file that the recorded action was applied to. | |
ProcessCommandLine | string | Command line used to create the new process. | |
InitiatingProcessAccountSid | string | Security identifier of the account context that initiated the process. |
Sample KQL
Suspicious PowerShell process creation
Find recent PowerShell executions with command-line indicators commonly used during hands-on-keyboard activity.
kql
DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName =~ "powershell.exe"
| where ProcessCommandLine has_any ("-enc", "EncodedCommand", "Invoke-WebRequest", "DownloadString")
| project Timestamp, DeviceName, InitiatingProcessAccountSid, FileName, ProcessCommandLine
| order by Timestamp desc