Record 1486f0d8acc7bb7755c8455a · v1
Schema CheckedNot runtime validated
LemonDuck-id-generation
Source repository hunting query
Generation sourcesource-file · Limited verification
Attributionmicrosoft
Last updated12 Aug 2021, 12:33 AM IST
Last checked17 Oct 2026
Kusto query · 3 linesTable: DeviceNetworkEvents · Microsoft Defender XDR / Sentinel
DeviceNetworkEvents| where InitiatingProcessFileName =~ "powershell.exe"| where InitiatingProcessCommandLine endswith "(@($env:COMPUTERNAME,$env:USERNAME,(get-wmiobject Win32_ComputerSystemProduct).UUID,(random))-join'*'))"SecOps Signal does not execute queries against private telemetry. Paste the query into Microsoft Sentinel Log Analytics or Defender advanced hunting and review it first. Passed structure and schema checks; tenant execution is not verified.
Query anatomy
Static check against a reviewed column list— This query has no final project stage to list.
“Listed” only means the column name appears in the reviewed list for that table. It does not confirm the column exists in your tenant's current schema, and per-column purposes are not recorded.
Hunting notes
MITRE ATT&CKNot mapped
Analytical purpose
Source repository hunting query
When to use
Review the source query and adapt it to your tenant before use.
Limitations
Schema checked only. This query has not been executed against a Sentinel or Defender tenant.