SecurityEvent.CommandLine
41 rules filter it on a literal value.
String match (has, contains, startswith …)
.decode('base64')2
.decode64(2
TVqQAAMAAAAEAAA2
\Microsoft\Windows\CurrentVersion2
base64 --decode2
cmd.exe2
rundll322
$b,15,$b.Length-151
$client = New-Object System.Net.Sockets.TCPClient1
(.*)>(.*)1
-[Ee^]{1,2}[NnCcOoDdEeMmAaPpHh^`]+\s+"?[a-zA-Z0-9+/=]{6,}1
-encodedCommand1
-exec bypass -w 1 -enc1
-k GPSvcGroup1
.onion1
/q /c color f7&1
Add-PSSnapin Microsoft.Exchange.Management.Powershell.Snapin1
Administrators1
Checkpoint-Computer1
Clear-History1
DisableRealtimeMonitoring1
Domain Admins1
Downloads1
EnableBDEWithNoTPM1
Enterprise Admins1
FromBase64String1
HealthMailbox55x2yq1
Hyper-V Administrators1
Invoke-RestMethod1
Invoke-WebRequest1
Net.We$()bClient1
New-MailboxExportRequest1
RecoveryKeyMessageSource1
Remove-Item (Get-PSReadlineOption).HistorySavePath1
Remove-MailboxExportRequest1
Schema Admins1
Set-MpPreference1
Set-PSReadlineOption -HistorySaveStyle SaveNothing1
Start-BitsTransfer1
SysAidServer1
System.Net.Http.HttpClient1
System.Net.WebClient1
Update-RoleGroupMember1
UseAdvancedStartup1
UseTPMKey1
UseTPMKeyPIN1
UwB0AGEAcgB0AC0ASgBvAGIAIAAtAFMAYwByAGkAcAB0AEIAbABvAGMAawAgAHsAKABzAGEAcABzACAAKAAiAHAA1
\/[Cc] +[Ss][Tt][Aa][Rr][Tt].*\.exe1
backup1
bcdedit1
bootstatuspolicy ignoreallfailures1
catalog1
cdn.discordapp.com1
clear-log1
create1
del (Get-PSReadlineOption).HistorySavePath*1
delete shadows1
ghostbin1
github1
githubusercontent1
hastebin1
hatebin1
integratorLogin1
klgrth1
moc.ppadrocsid.ndc1
paste.1
pastebin1
powercat.ps11
powershell1
privatebin1
recoveryenabled no1
rm (Get-PSReadlineOption).HistorySavePath1
set-log1
shadowcopy delete1
systemstatebackup1
termbin1
wbadmin1
wmic computersystem get domain1
zerobin1
Excluded (!=, !has, !in …)
sdelete1
Every rule that filters it
- Unusual identity creation using exchange powershell
- Gain Code Execution on ADFS Server via Remote WMI Execution
- Identify Mango Sandstorm powershell commands
- Midnight Blizzard - Script payload stored in Registry
- Powershell Empire Cmdlets Executed in Command Line
- PowerShell Pastebin Download
- Powershell Encoded Command Execution
- Proxy VBScript Execution via CurrentVersion Registry Key
- Rundll32 or cmd Executing Application from Explorer - Potential Malware Execution Chain
- Dev-0270 Registry IOC - September 2022
- Dev-0270 WMIC Discovery
- Base64 encoded Windows process command-lines
- Process executed from binary hidden in Base64 encoded file
- Backup Deletion
- Download of New File Using Curl
- Potential Microsoft Security Services Tampering
- Creating a Shadow Copy
- Dump LSASS via Renamed procdump
- Execution BAT Script to Unpack Payload
- MeshAgent Suspicious Child Process - Potential Malicious RMM Tool Usage
- Methods for Downloading Files with PowerShell
- Powershell History Modification or Deletion
- Remote Atera Agent Download - Command Line
- Shadow Copies Deletion Using Operating Systems Utilities
- User Added to Default Privileged Windows Security Groups
- Wevtutil Cleared Log
- Dev-0056 Command Line Activity November 2021
- Identify SysAid Server web shell creation
- NRT Base64 Encoded Windows Process Command-lines
- NRT Process executed from binary hidden in Base64 encoded file
- Potential re-named sdelete usage
- Sdelete deployed via GPO and run recursively
- Discord download invoked from cmd line
- Exchange PowerShell Snapin Added
- Host Exporting Mailbox and Removing Export
- Invoke-PowerShellTcpOneLine Usage.
- Nishang Reverse TCP Shell in Base64
- Powercat Download
- Remote Task Creation/Update using Schtasks Process
- Suspicious Enumeration using Adfind Tool
- Summary of users created using uncommon/undocumented commandline switches
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.