Query Details
Tags: Query: DeviceProcessEvents | where FileName == @"cmd.exe" and ProcessCommandLine contains @"2>" and ProcessCommandLine contains @"$" References:
This KQL (Kusto Query Language) query is designed to search through device process events to find instances where the command prompt executable (cmd.exe) was used. Specifically, it looks for command lines that include both a redirection operator (2>) and a dollar sign ($).
In simple terms, the query is looking for instances where cmd.exe was run with commands that involve error redirection and include a dollar sign in the command line.

Ali Hussein
Released: October 11, 2023
Tables
Keywords
Operators