KQL Challenge Solutions
Challenge #1; Create a query that uses a watchlist let attack=_GetWatchlist(‘attack’); SecurityAlert |extend Severity = “T1040” |join attack on $left.Severity == $right.Tactic |distinct Defense Challenge #2: Create a timechart based query Event | where Source == “Microsoft-Windows-Sysmon” |where EventID <> 255 | where TimeGenerated >= ago(180d) | summarize count() by bin(TimeGenerated, 1d) |render columnchart Chalenge #3: use mv-expand to view the entities fields SecurityAlert | extend Entities = iff(isempty(Entities), todynamic(’[{“dummy” : “”}]’), todynamic(Entities)) |mv-expand Entities |extend HostName_ = tostring(Entities.HostName) |where HostName_ <> "" |where HostName_ contains “{Hostname}” |project HostName_ ...