VeriKQL by Kaushik Saha

DeviceProcessEvents.ProcessCommandLine

45 rules filter it on a literal value.

Operators: has 30 · has_any 12 · contains 10 · !contains 4 · != 1 · !has 1 · contains_cs 1 · endswith 1 · has_cs 1 · hasprefix 1 · matches regex 1

1 rule reach it through an extend that copies or converts it (extend Country = tostring(LocationDetails.countryOrRegion)), and then filter the new column.

String match (has, contains, startswith …)

-accepteula4
-ma4
certutil4
lsass4
/w3
CL3
WEVTUTIL3
bcdedit3
config3
ipconfig3
ping3
whoami3
%temp%2
.jse2
/AddFile2
/AddFileSet2
/AddFileWithRanges2
/Transfer2
backup2
bootstatuspolicy ignoreallfailures2
catalog2
delete2
delete shadows2
deletejournal2
disabled2
http2
lsass.exe2
msexchange2
recoveryenabled no2
sc2
shadowcopy delete2
sql2
stop-service2
systeminfo2
systemstatebackup2
timeout2
usn2
wbadmin2
wget2
wmic2
wmic computersystem get domain2
/do1
/domain1
dir 1
eprod.ldf1
group 1
share 1
start 1
user 1
$b,15,$b.Length-151
-EnableControlledFolderAccess1
-ExclusionExtension1
-ExclusionPath1
-a1
-c ls1
-command1
-dll1
-e1
-exe1
-exec bypass -w 1 -enc1
-nop1
-pe641
/bin/bash1
/bin/sh1
/dll1
/exe1
/pe641
/q /c color f7&1
/tz1
DownloadFile1
FromBase64String1
HealthMailbox55x2yq1
IEX1
Invoke-Shellcode1
Invoke-WebRequest1
Net.We$()bClient1
Net.WebClient1
New-Mailbox1
Set-MpPreference1
Start-BitsTransfer1
Startup1
Update-RoleGroupMember1
UwB0AGEAcgB0AC0ASgBvAGIAIAAtAFMAYwByAGkAcAB0AEIAbABvAGMAawAgAHsAKABzAGEAcABzACAAKAAiAHAA1
\7za.exe a 1.7z 1
\aaaa\7za.exe1
\aaaa\netsess.exe1
\aaaa\procdump64.exe1
\ldifde.exe -f -n 1
\system32\drivers\1
advfirewall1
all1
arp1
arp -a1
base64 -d1
bash -i1
cat 1
cl1
cmd /c elrs.exe1
cmd /c set1
cmd.exe /c "wmic /node:[^ ]* process call create "ntdsutil snapshot \"activate instance ntds\" create quit quit > c:\windows\temp\nt.dat";1
copy .\1.7z \1
copy \client\c$\aaaa\1
create1
curl1
curl 1
eval(1
exec(1
hklm1
hklm\system\currentcontrolset\services1
ifconfig1
interface show1
ipconfig /all1
list shadows1
mpcmdrun.exe1
net group1
net localgroup1
net share1
net time /domain1
net user1
net view1
net view /all1
netstat1
netstat -nao1
nltest1
nslookup -querytype=ALL -timeout=101
onstart1
out1
p1
portproxy1
privilege::1
programdata1
python -c1
python3 -c1
r:1
reference1
return1
route print1
sam1
save1
save HKLM\SYSTEM [^ ]*_System.HIV1
sc create1
sc start1
sekurlsa1
stop1
t:1
target1
tasklist1
time1
token::1
type= kernel1
wevtutil1
wget 1
whoami /all1
windefend1
wmic datafile1

Excluded (!=, !has, !in …)

/add3
/domain2
1
1
.spl1
\1
start1

Every rule that filters it

Rules are from Azure/Azure-Sentinel (MIT licence) at commit 9ea9f7c. VeriKQL stores facts its parser read from each rule and links the rule; it does not copy rule text. Counts are what the rules do: practice, not guidance, and not Microsoft's recommendation.