Allexes
Query
//Lists all captures .exe's. For Sentinel or Defender Advanced Hunting
DeviceProcessEvents
| where Timestamp > ago(7d)
| where FileName endswith ".exe"
| project Timestamp, DeviceName, FileName, AccountSid, AccountName, AccountDomain
| top 100 by TimestampExplanation
This query lists all the .exe files captured by Sentinel or Defender Advanced Hunting in the past 7 days. It includes information such as the timestamp, device name, file name, account SID, account name, and account domain. The results are limited to the top 100 entries based on the timestamp.