Detection rules › Elastic

Suspicious PowerShell Execution

Source
github.com/elastic/protections-artifacts

Identifies the execution of PowerShell with suspicious argument values. This behavior is often observed during malware installation leveraging PowerShell.

MITRE ATT&CK coverage

Rule body

[rule]
description = """
Identifies the execution of PowerShell with suspicious argument values. This behavior is often observed during malware
installation leveraging PowerShell.
"""
id = "65784f6e-247a-466b-bbfb-cd92024f7e82"
license = "Elastic License v2"
name = "Suspicious PowerShell Execution"
os_list = ["windows"]
reference = [
    "https://www.elastic.co/security-labs/dipping-into-danger",
    "https://www.elastic.co/security-labs/doing-time-with-the-yipphb-dropper",
    "https://www.elastic.co/security-labs/unmasking-financial-services-intrusion-ref0657",
]
version = "1.0.53"

query = '''
process where event.action == "start" and process.name : "powershell.exe" and process.parent.executable != null and

 not user.id : "S-1-5-18" and

 /*
 following exclusions are covered by other rules
  - Suspicious Execution via Windows Management Instrumentation
  - Suspicious Windows Schedule Child Process
  - PowerShell Obfuscation Spawned via Microsoft Office
  - Suspicious PowerShell Execution via Windows Scripts
 */

 not (process.parent.executable :
              ("?:\\Windows\\System32\\svchost.exe",
               "?:\\Windows\\System32\\wbem\\WmiPrvSe.exe",
               "?:\\Program Files\\*.exe",
               "?:\\Program Files (x86)\\*.exe",
               "?:\\Users\\*\\AppData\\Local\\gitkraken\\app-*\\gitkraken.exe",
               "?:\\Windows\\System32\\taskeng.exe",
               "?:\\Windows\\cybercnsagent\\cybercnsagent.exe",
               "?:\\Windows\\SysWOW64\\WindowsPowerShell\\*\\powershell_ise.exe",
               "?:\\Windows\\System32\\WindowsPowerShell\\*\\powershell_ise.exe",
               "?:\\ProgramData\\Microsoft\\Windows Defender Advanced Threat Protection\\Platform\\*\\SenseIR.exe") and not process.parent.name : "java.exe") and

 not process.parent.name : ("wscript.exe", "cscript.exe") and

 not (process.args:"-NonInteractive" and process.args :"-InputFormat") and
 not (process.args : ("RemoteSigned", "-ExecutionPolicy", "write-host") and
      not process.parent.name : ("explorer.exe", "python.exe", "cmd.exe")) and
 not process.args : "[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String('cGFzc3dvcmQ='))" and
 not (process.command_line : "*echo ~/.ansible/tmp/ansible-tmp*" and process.parent.executable : "C:\\Windows\\System32\\OpenSSH\\sshd.exe") and
 not (process.args : "$OutputEncoding = [System.Text.Encoding]::UTF8; $b64='eyJjb252ZXJzYXRpb25faWQiOiJ*" and process.parent.name : "Cursor.exe") and 
 not process.command_line :
            ("*ConvertTo-Json*Write-Host*",
             "*BrowserExtension.dll*WebCompanion.BrowserExtension*",
             "*-ExecutionPolicy*Write-Verbose*",
             "*webClient.Headers.add*",
             "*System.Management.Automation.Host.Size*",
             "*JABQAHIAbwBnAHIAZQBzAHMAUAByAGUAZgBlAHIAZQ*",
             "*chocolatey.org*",
             "*Get-WmiObject*",
             "*artifacts.elastic.co*", 
             "*officecdn.microsoft.com*",
             "*CgAgACAAIAAgACAAIAAgACAAJABTAGMAcgBpAHAAdAAgACA*",
             "*Program Files*",
             "*).Access.IdentityReference;$defaults*",
             "*https://repo.maven.apache.org*", 
             "*\\CSIWorking\\system\\WinSCP\\winscp.com*", 
             "*@Files.onetech.cc*", 
             "*Register-AzureADConnectHealthADDSAgent*", 
             "*\\ProgramData\\Microsoft\\LogConverter\\*", 
             "*WinSCP.com*",
             "*SNC_isWmi*",
             "*--app-id=memtime-*", 
             "*BkAGEAdABhAGIAYQBzAGUALgB3AGkAbgBkAG8AdwBzAC4AbgBlAHQA*",
             "*FsAdgBlAHIAcwBpAG8AbgBdACQAbQBpAG4AaQBtAHUAbQBWAGUAcgBzAGkAbwBuACAAPQAgACcAMgAuADIALgAwACcA*",
             "*https://tshf.sas.com/techsup/download/hotfix/*",
             "*scripts\\buildsystems\\msbuild*",
             "*.vscode\\extensions\\ms-dynamics-smb*",
             "*$ErrorActionPreference*$adsiMember*",
             "*$ErrorActionPreference*$rgx_log4j*",
             "*$env:APPDATA\"+'\\Browser Assistant\\*",
             "*APPDATA\"+'/Browser Extension/BE.txt*",
             "*$env:APPDATA\"+'/BBWC/*",
             "*ReadAllBytes($w+'Newtonsoft.Json.dll*",
             "*https://go.microsoft.com/fwlink*",
             "*krsfile:////LOBCS*",
             "*ProgramData\\VinitySoft Data\\MariaDb\\*",
             "*\\Temp\\claude\\claude-pwd-ps-*",
             "*https://10.55.138.214:443/downloads/*",
             "\"C:\\Windows\\SysWOW64\\WindowsPowerShell\\v1.0\\powershell.exe\" -noexit -command \"[reflection.assembly]::loadFrom('.\\RD-PSAPI.dll') | import-module\"",
             "*-noni -nop -w 1 -enc *AEUAbABhAHMAdABpAGMAfABUAHIAZQBsAGwAaQB4ACIA*",
             "*-noni -nop -w 1 -enc *AEUAbABhAHMAdABpAGMAIABBAGcAZQBuAHQAIgA=*",
             "*JABjAGwAcwA9ACcATQBvAHUAcwBlACcAOwAKACAAIABHAGUAdAAtAEMAaQBtAEkAbgBzAHQAYQBuAGMAZQAgAFcAaQBuADMAMgBfAFAAbgBQAEUAbgB0AGkAdAB5ACAALQBGAGkAb*",
             "*JABjAGwAcwA9ACcASwBlAHkAYgBvAGEAcgBkACcAOwAKACAAIABHAGUAdAAtAEMAaQBtAEkAbgBzAHQAYQBuAGMAZQAgAFcAaQBuADMAMgBfAFAAbgBQAEUAbgB0AGkAdAB5ACAALQBGAGkAb*",
             "*JABjAHYAIAA9ACAARwBlAHQALQBJAHQAZQBtAFAAcgBvAHAAZQByAHQAeQAgACcASABLAEwATQA6AFwAUwBPAEYAVABXAEEAUgBFAFwATQBpAGMAcgBvAHMAbwBmAHQAXABXAGkAbgBkAG8AdwBzACAATgBUAFwAQwB1AHIAcgBlAG4AdABWAGUAcgBzAGkAbwBuACcACgAiACQAKAAkAGMAdgAuAFAAcgBvAGQAdQBjAHQATgBhAG0AZQApAHwAJAAoACQAYwB2AC4ARABpAHMAcABsAGEAeQBWAGUAcgBzAGkAbwBuACkAf*",
             /* inventory tooling checking the installed Chrome version: $ErrorActionPreference='silentlycontinue'; $tmp = (Get-Item -Path "$env:PROGRAMFILES\Google\Chrome\Application\chrome.exe") */
             "*JABFAHIAcgBvAHIAQQBjAHQAaQBvAG4AUAByAGUAZgBlAHIAZQBuAGMAZQA9ACcAcwBpAGwAZQBuAHQAbAB5AGMAbwBuAHQAaQBuAHUAZQAnADsAIAAkAHQAbQBwACAAPQAgACgARwBlAHQALQBJAHQAZQBtACAALQBQAGEAdABoACAAIgAkAGUAbgB2ADoAUABSAE8ARwBSAEEATQBGAEkATABFAFMAXABHAG8AbwBnAGwAZQBcAEMAaAByAG8AbQBlAFwA*",
             /* base64 alignment variant of the Az.Accounts minimum version check already excluded above: \n$ErrorActionPreference = 'Stop'\n[version]$minimumVersion = '2.2.0' */
             "*CgAkAEUAcgByAG8AcgBBAGMAdABpAG8AbgBQAHIAZQBmAGUAcgBlAG4AYwBlACAAPQAgACcAUwB0AG8AcAAnAAoAWwB2AGUAcgBzAGkAbwBuAF0AJABtAGkAbgBpAG0AdQBtAFYAZQByAHMAaQBvAG4A*") and
 not process.parent.args : "([Datetime]::ParseExact($_.InstalledOn," and
 not process.command_line : ("PowerShell*hkguTzSCb75g7sJ9ChMcmAOPpeBL9ZJy/tejnoCjT+E=*", "*.LastWriteTime.ToFileTime*", "*New-Object*Net.Mail.SmtpClien*") and
 not (process.parent.name : "cmd.exe" and
      (process.parent.command_line : "*\\WindowsPowershell\\*\\powershell*" or process.parent.args : ("-Command", "-OutputFormat", "-InputFormat"))) and

 not process.parent.name : "powershell.exe" and

 not (process.parent.name : "cmd.exe" and process.parent.args : ("*.cmd", "*.bat") and process.command_line: "*Get-Content*Set-Content*") and

 not (process.args : "NT\\CurrentVersion').InstallationType;" and process.args : "[System.Text.Encoding]::UTF8.GetBytes($OutStr);") and

 not (process.parent.code_signature.trusted == true and process.parent.code_signature.subject_name in ("ControlCase LLC", "HashiCorp, Inc.", "JetBrains s.r.o.", "Johannes Schindelin", "Anomaly Innovations, Inc https://anoma.ly/", "Anthropic, PBC", "Anysphere, Inc.", "Denver Technologies, Inc. dba Warp")) and

 not process.parent.command_line :  "\"C:\\Windows\\system32\\cmd.exe\" " and

 not (process.parent.name : "Cursor.exe" and process.command_line : "* dotnet csharpier format*") and 

 not (process.parent.name : "codex*.exe" and process.args : "[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;*") and 

 not process.working_directory : "C:\\ProgramData\\VinitySoft Data\\MariaDb\\" and

 not process.parent.executable : ("C:\\Users\\*\node_modules\\@openai\\codex\\bin\\codex-x86_64-pc-windows-msvc.exe",
                                  "C:\\Users\\*\\extensions\\openai.chatgpt-*\\bin\\windows-x86_64\\codex.exe",
                                  "C:\\Users\\*\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",
                                  "C:\\Users\\*\\@openai\\*\\x86_64-pc-windows-msvc\\codex\\codex.exe",
                                  "C:\\Python312\\python.exe",
                                  "?:\\Users\\*\\AppData\\Local\\Programs\\Antigravity\\resources\\app\\extensions\\antigravity\\bin\\language_server_windows_x64.exe",
                                  "?:\\Users\\*\\AppData\\Local\\Python\\bin\\python.exe",
                                  "?:\\Users\\*\\AppData\\Local\\Programs\\Python\\Python*\\python.exe",
                                  "?:\\Users\\*\\AppData\\Local\\Python\\pythoncore-*\\python.exe", 
                                  "D:\\Antigravity\\resources\\app\\extensions\\antigravity\\bin\\language_server_windows_x64.exe",  
                                  "?:\\Users\\*\\.codex\\.sandbox-bin\\codex-command-runner-*.exe") and

 not process.args :  ("$w=$env:LOCALAPPDATA+'/OPWC/';[Reflection.Assembly]::Load([System.IO.File]::ReadAllBytes($w+'OperaSharpDLL.dll'));[OperaSharpDLL.Helper]::Startup()",
                      "IEX (New-Object Net.WebClient).DownloadString('https://install.demo-toolkit.de/dtkupdater.ps1?apikey=*",
                      "D:\\PowerShell\\webclient.cmd",
                      "Invoke-WebRequest -Uri https://www.7-zip.org/a/7zr.exe -o '7zr.exe';",
                      "\"& 'C:\\Program Files (x86)\\combit\\*",
                      "Get-CimInstance -Namespace root\\wmi -ClassName WmiMonitorID | *",
                      "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::CreateFromDirectory*") and

 not (process.parent.name : "cmd.exe" and
      process.parent.args : ("D:\\PowerShell\\webclient.cmd",  
                             "C:\\Temp\\FST-Robocopy-wEmailNotif.cmd", 
                             "C:\\istip-installation\\install.bat", 
                             "'C:\\ProgramData\\PatchBot\\data\\windows-health-after.json';", 
                             "'C:\\ProgramData\\PatchBot\\data\\windows-updates.json';", 
                             "'C:\\ProgramData\\PatchBot\\data\\windows-updates.json')")) and

 not (process.parent.executable : "C:\\Users\\*\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe" and process.command_line : "*Windows.UI.Notifications*") and

 not (process.parent.executable : "C:\\Users\\*\\.vscode\\extensions\\openai.chatgpt*-win32-x64\\bin\\windows-x86_64\\codex.exe" and process.parent.args == "mcp") and

 not (process.parent.executable : "C:\\Windows\\System32\\msiexec.exe" and process.args : "https://go.microsoft.com/fwlink/p/?LinkId=*" and
      process.args :"$env:TEMP\\MicrosoftEdgeWebview2Setup.exe") and

 not process.args : "chcp 65001;[System.Reflection.Assembly]::LoadWithPartialName('System.Drawing');(New-Object System.Drawing.Text.InstalledFontCollection).Families" and

 (
  process.command_line :
        (
          "*^*^*^*^*^*^*^*^*^*",
          "*`*`*`*`*",
          "*+*+*+*+*+*+*",
          "*[char[]](*)*-join*",
          "*Base64String*",
          "*[*Convert]*",
          "*.Compression.*",
          "*-join($*",
          "*.replace*",
          "*MemoryStream*",
          "*WriteAllBytes*",
          "* -enc *",
          "* -ec *",
          "* /e *",
          "* /enc *",
          "* /ec *",
          "*WebClient*",
          "*DownloadFile*",
          "*DownloadString*",
          "* iex*",
          "*;iex*",
          "* iwr*",
          "*;iwr *",
          "*;saps *",
          "* aQB3AHIAIABpA*",
          "*Reflection.Assembly*",
          "*Assembly.GetType*",
          "*$env:temp\\*start*",
          "*powercat*",
          "*nslookup -q=txt*",
          "*$host.UI.PromptForCredential*",
          "*Net.Sockets.TCPClient*",
          "*curl *;Start*",
          "powershell.exe \"<#*",
          "*ssh -p *",
          "*http*|iex*",
          "*@SSL\\DavWWWRoot\\*.ps1*",
          "*.lnk*.Seek(0x*",
          "*[string]::join(*",
          "*[Array]::Reverse($*",
          "* hidden $(gc *",
          "*=wscri& set*",
          "*http'+'s://*",
          "*.content|i''Ex*",
          "*//:sptth*",
          "*//:ptth*",
          "*h''t''t''p*",
          "*'tp'':''/'*",
          "*$env:T\"E\"MP*",
          "*;cmd /c $?",
          "*s''t''a''r*",
          "*$*=Get-Content*AppData*.SubString(*$*",
          "*=cat *AppData*.substring(*);*$*",
          "*-join'';*|powershell*",
          "*.Content;sleep *|powershell*",
          "*h\''t\''tp:\''*",
          "*-e aQB3AHIAIABp*",
          "*iwr *https*).Content*",
          "*$env:computername*http*",
          "*;InVoKe-ExpRESsIoN $COntent.CONTENt;*",
          "*WebClient*example.com*",
          "*=iwr $*;iex $*",
          "*gc *:*|sc *",
          "*gci *-Recurse*start*",
          "*Invoke-WebRequest*Start-Process*Hidden*",
          "*Invoke-WebRequest*msiexec*"
        ) or

      (process.command_line regex~ """.*p\"?o\"?w\"?e\"?r\"?s\"?h\"?e\"?l\"?l.*""" and not process.command_line : "*powershell*") or

      (process.args: "bypass" and process.args : "hidden" and process.command_line : "*start-process*appdata*") or

      (process.args : "-c" and process.args : "&{'*") or

      (process.args : "-Outfile" and process.args : "Start*") or 
      
      (process.args : "-bxor" and process.args : "0x*") or 

      process.args : "$*$*;set-alias" or

      (process.command_line : ("*-encodedCommand*", "*Invoke-webrequest*", "*WebClient*", "*Reflection.Assembly*") and
       (process.parent.name : ("explorer.exe", "python*.exe") or
        (process.parent.name : "cmd.exe" and
         descendant of [process where event.action == "start" and process.name : ("explorer.exe", "python*.exe")])))
     )
'''

min_endpoint_version = "8.10.0"
[[actions]]
action = "kill_process"
field = "process.entity_id"
state = 0

[[optional_actions]]
action = "rollback"
field = "process.entity_id"
state = 0

[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1059"
name = "Command and Scripting Interpreter"
reference = "https://attack.mitre.org/techniques/T1059/"
[[threat.technique.subtechnique]]
id = "T1059.001"
name = "PowerShell"
reference = "https://attack.mitre.org/techniques/T1059/001/"



[threat.tactic]
id = "TA0002"
name = "Execution"
reference = "https://attack.mitre.org/tactics/TA0002/"

[internal]
min_endpoint_version = "8.10.0"

Stages and Predicates

Stage 1: process

process where event.action == "start" and process.name : "powershell.exe" and process.parent.executable != null and
 not user.id : "S-1-5-18" and
 /*
 following exclusions are covered by other rules
  - Suspicious Execution via Windows Management Instrumentation
  - Suspicious Windows Schedule Child Process
  - PowerShell Obfuscation Spawned via Microsoft Office
  - Suspicious PowerShell Execution via Windows Scripts
 */
 not (process.parent.executable :
              ("?:\\Windows\\System32\\svchost.exe",
               "?:\\Windows\\System32\\wbem\\WmiPrvSe.exe",
               "?:\\Program Files\\*.exe",
               "?:\\Program Files (x86)\\*.exe",
               "?:\\Users\\*\\AppData\\Local\\gitkraken\\app-*\\gitkraken.exe",
               "?:\\Windows\\System32\\taskeng.exe",
               "?:\\Windows\\cybercnsagent\\cybercnsagent.exe",
               "?:\\Windows\\SysWOW64\\WindowsPowerShell\\*\\powershell_ise.exe",
               "?:\\Windows\\System32\\WindowsPowerShell\\*\\powershell_ise.exe",
               "?:\\ProgramData\\Microsoft\\Windows Defender Advanced Threat Protection\\Platform\\*\\SenseIR.exe") and not process.parent.name : "java.exe") and
 not process.parent.name : ("wscript.exe", "cscript.exe") and
 not (process.args:"-NonInteractive" and process.args :"-InputFormat") and
 not (process.args : ("RemoteSigned", "-ExecutionPolicy", "write-host") and
      not process.parent.name : ("explorer.exe", "python.exe", "cmd.exe")) and
 not process.args : "[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String('cGFzc3dvcmQ='))" and
 not (process.command_line : "*echo ~/.ansible/tmp/ansible-tmp*" and process.parent.executable : "C:\\Windows\\System32\\OpenSSH\\sshd.exe") and
 not (process.args : "$OutputEncoding = [System.Text.Encoding]::UTF8; $b64='eyJjb252ZXJzYXRpb25faWQiOiJ*" and process.parent.name : "Cursor.exe") and
 not process.command_line :
            ("*ConvertTo-Json*Write-Host*",
             "*BrowserExtension.dll*WebCompanion.BrowserExtension*",
             "*-ExecutionPolicy*Write-Verbose*",
             "*webClient.Headers.add*",
             "*System.Management.Automation.Host.Size*",
             "*JABQAHIAbwBnAHIAZQBzAHMAUAByAGUAZgBlAHIAZQ*",
             "*chocolatey.org*",
             "*Get-WmiObject*",
             "*artifacts.elastic.co*",
             "*officecdn.microsoft.com*",
             "*CgAgACAAIAAgACAAIAAgACAAJABTAGMAcgBpAHAAdAAgACA*",
             "*Program Files*",
             "*).Access.IdentityReference;$defaults*",
             "*https://repo.maven.apache.org*",
             "*\\CSIWorking\\system\\WinSCP\\winscp.com*",
             "*@Files.onetech.cc*",
             "*Register-AzureADConnectHealthADDSAgent*",
             "*\\ProgramData\\Microsoft\\LogConverter\\*",
             "*WinSCP.com*",
             "*SNC_isWmi*",
             "*--app-id=memtime-*",
             "*BkAGEAdABhAGIAYQBzAGUALgB3AGkAbgBkAG8AdwBzAC4AbgBlAHQA*",
             "*FsAdgBlAHIAcwBpAG8AbgBdACQAbQBpAG4AaQBtAHUAbQBWAGUAcgBzAGkAbwBuACAAPQAgACcAMgAuADIALgAwACcA*",
             "*https://tshf.sas.com/techsup/download/hotfix/*",
             "*scripts\\buildsystems\\msbuild*",
             "*.vscode\\extensions\\ms-dynamics-smb*",
             "*$ErrorActionPreference*$adsiMember*",
             "*$ErrorActionPreference*$rgx_log4j*",
             "*$env:APPDATA\"+'\\Browser Assistant\\*",
             "*APPDATA\"+'/Browser Extension/BE.txt*",
             "*$env:APPDATA\"+'/BBWC/*",
             "*ReadAllBytes($w+'Newtonsoft.Json.dll*",
             "*https://go.microsoft.com/fwlink*",
             "*krsfile:////LOBCS*",
             "*ProgramData\\VinitySoft Data\\MariaDb\\*",
             "*\\Temp\\claude\\claude-pwd-ps-*",
             "*https://10.55.138.214:443/downloads/*",
             "\"C:\\Windows\\SysWOW64\\WindowsPowerShell\\v1.0\\powershell.exe\" -noexit -command \"[reflection.assembly]::loadFrom('.\\RD-PSAPI.dll') | import-module\"",
             "*-noni -nop -w 1 -enc *AEUAbABhAHMAdABpAGMAfABUAHIAZQBsAGwAaQB4ACIA*",
             "*-noni -nop -w 1 -enc *AEUAbABhAHMAdABpAGMAIABBAGcAZQBuAHQAIgA=*",
             "*JABjAGwAcwA9ACcATQBvAHUAcwBlACcAOwAKACAAIABHAGUAdAAtAEMAaQBtAEkAbgBzAHQAYQBuAGMAZQAgAFcAaQBuADMAMgBfAFAAbgBQAEUAbgB0AGkAdAB5ACAALQBGAGkAb*",
             "*JABjAGwAcwA9ACcASwBlAHkAYgBvAGEAcgBkACcAOwAKACAAIABHAGUAdAAtAEMAaQBtAEkAbgBzAHQAYQBuAGMAZQAgAFcAaQBuADMAMgBfAFAAbgBQAEUAbgB0AGkAdAB5ACAALQBGAGkAb*",
             "*JABjAHYAIAA9ACAARwBlAHQALQBJAHQAZQBtAFAAcgBvAHAAZQByAHQAeQAgACcASABLAEwATQA6AFwAUwBPAEYAVABXAEEAUgBFAFwATQBpAGMAcgBvAHMAbwBmAHQAXABXAGkAbgBkAG8AdwBzACAATgBUAFwAQwB1AHIAcgBlAG4AdABWAGUAcgBzAGkAbwBuACcACgAiACQAKAAkAGMAdgAuAFAAcgBvAGQAdQBjAHQATgBhAG0AZQApAHwAJAAoACQAYwB2AC4ARABpAHMAcABsAGEAeQBWAGUAcgBzAGkAbwBuACkAf*",
             "*JABFAHIAcgBvAHIAQQBjAHQAaQBvAG4AUAByAGUAZgBlAHIAZQBuAGMAZQA9ACcAcwBpAGwAZQBuAHQAbAB5AGMAbwBuAHQAaQBuAHUAZQAnADsAIAAkAHQAbQBwACAAPQAgACgARwBlAHQALQBJAHQAZQBtACAALQBQAGEAdABoACAAIgAkAGUAbgB2ADoAUABSAE8ARwBSAEEATQBGAEkATABFAFMAXABHAG8AbwBnAGwAZQBcAEMAaAByAG8AbQBlAFwA*",
             "*CgAkAEUAcgByAG8AcgBBAGMAdABpAG8AbgBQAHIAZQBmAGUAcgBlAG4AYwBlACAAPQAgACcAUwB0AG8AcAAnAAoAWwB2AGUAcgBzAGkAbwBuAF0AJABtAGkAbgBpAG0AdQBtAFYAZQByAHMAaQBvAG4A*") and
 not process.parent.args : "([Datetime]::ParseExact($_.InstalledOn," and
 not process.command_line : ("PowerShell*hkguTzSCb75g7sJ9ChMcmAOPpeBL9ZJy/tejnoCjT+E=*", "*.LastWriteTime.ToFileTime*", "*New-Object*Net.Mail.SmtpClien*") and
 not (process.parent.name : "cmd.exe" and
      (process.parent.command_line : "*\\WindowsPowershell\\*\\powershell*" or process.parent.args : ("-Command", "-OutputFormat", "-InputFormat"))) and
 not process.parent.name : "powershell.exe" and
 not (process.parent.name : "cmd.exe" and process.parent.args : ("*.cmd", "*.bat") and process.command_line: "*Get-Content*Set-Content*") and
 not (process.args : "NT\\CurrentVersion').InstallationType;" and process.args : "[System.Text.Encoding]::UTF8.GetBytes($OutStr);") and
 not (process.parent.code_signature.trusted == true and process.parent.code_signature.subject_name in ("ControlCase LLC", "HashiCorp, Inc.", "JetBrains s.r.o.", "Johannes Schindelin", "Anomaly Innovations, Inc https://anoma.ly/", "Anthropic, PBC", "Anysphere, Inc.", "Denver Technologies, Inc. dba Warp")) and
 not process.parent.command_line :  "\"C:\\Windows\\system32\\cmd.exe\" " and
 not (process.parent.name : "Cursor.exe" and process.command_line : "* dotnet csharpier format*") and
 not (process.parent.name : "codex*.exe" and process.args : "[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;*") and
 not process.working_directory : "C:\\ProgramData\\VinitySoft Data\\MariaDb\\" and
 not process.parent.executable : ("C:\\Users\\*\node_modules\\@openai\\codex\\bin\\codex-x86_64-pc-windows-msvc.exe",
                                  "C:\\Users\\*\\extensions\\openai.chatgpt-*\\bin\\windows-x86_64\\codex.exe",
                                  "C:\\Users\\*\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",
                                  "C:\\Users\\*\\@openai\\*\\x86_64-pc-windows-msvc\\codex\\codex.exe",
                                  "C:\\Python312\\python.exe",
                                  "?:\\Users\\*\\AppData\\Local\\Programs\\Antigravity\\resources\\app\\extensions\\antigravity\\bin\\language_server_windows_x64.exe",
                                  "?:\\Users\\*\\AppData\\Local\\Python\\bin\\python.exe",
                                  "?:\\Users\\*\\AppData\\Local\\Programs\\Python\\Python*\\python.exe",
                                  "?:\\Users\\*\\AppData\\Local\\Python\\pythoncore-*\\python.exe",
                                  "D:\\Antigravity\\resources\\app\\extensions\\antigravity\\bin\\language_server_windows_x64.exe",
                                  "?:\\Users\\*\\.codex\\.sandbox-bin\\codex-command-runner-*.exe") and
 not process.args :  ("$w=$env:LOCALAPPDATA+'/OPWC/';[Reflection.Assembly]::Load([System.IO.File]::ReadAllBytes($w+'OperaSharpDLL.dll'));[OperaSharpDLL.Helper]::Startup()",
                      "IEX (New-Object Net.WebClient).DownloadString('https://install.demo-toolkit.de/dtkupdater.ps1?apikey=*",
                      "D:\\PowerShell\\webclient.cmd",
                      "Invoke-WebRequest -Uri https://www.7-zip.org/a/7zr.exe -o '7zr.exe';",
                      "\"& 'C:\\Program Files (x86)\\combit\\*",
                      "Get-CimInstance -Namespace root\\wmi -ClassName WmiMonitorID | *",
                      "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::CreateFromDirectory*") and
 not (process.parent.name : "cmd.exe" and
      process.parent.args : ("D:\\PowerShell\\webclient.cmd",
                             "C:\\Temp\\FST-Robocopy-wEmailNotif.cmd",
                             "C:\\istip-installation\\install.bat",
                             "'C:\\ProgramData\\PatchBot\\data\\windows-health-after.json';",
                             "'C:\\ProgramData\\PatchBot\\data\\windows-updates.json';",
                             "'C:\\ProgramData\\PatchBot\\data\\windows-updates.json')")) and
 not (process.parent.executable : "C:\\Users\\*\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe" and process.command_line : "*Windows.UI.Notifications*") and
 not (process.parent.executable : "C:\\Users\\*\\.vscode\\extensions\\openai.chatgpt*-win32-x64\\bin\\windows-x86_64\\codex.exe" and process.parent.args == "mcp") and
 not (process.parent.executable : "C:\\Windows\\System32\\msiexec.exe" and process.args : "https://go.microsoft.com/fwlink/p/?LinkId=*" and
      process.args :"$env:TEMP\\MicrosoftEdgeWebview2Setup.exe") and
 not process.args : "chcp 65001;[System.Reflection.Assembly]::LoadWithPartialName('System.Drawing');(New-Object System.Drawing.Text.InstalledFontCollection).Families" and
 (
  process.command_line :
        (
          "*^*^*^*^*^*^*^*^*^*",
          "*`*`*`*`*",
          "*+*+*+*+*+*+*",
          "*[char[]](*)*-join*",
          "*Base64String*",
          "*[*Convert]*",
          "*.Compression.*",
          "*-join($*",
          "*.replace*",
          "*MemoryStream*",
          "*WriteAllBytes*",
          "* -enc *",
          "* -ec *",
          "* /e *",
          "* /enc *",
          "* /ec *",
          "*WebClient*",
          "*DownloadFile*",
          "*DownloadString*",
          "* iex*",
          "*;iex*",
          "* iwr*",
          "*;iwr *",
          "*;saps *",
          "* aQB3AHIAIABpA*",
          "*Reflection.Assembly*",
          "*Assembly.GetType*",
          "*$env:temp\\*start*",
          "*powercat*",
          "*nslookup -q=txt*",
          "*$host.UI.PromptForCredential*",
          "*Net.Sockets.TCPClient*",
          "*curl *;Start*",
          "powershell.exe \"<#*",
          "*ssh -p *",
          "*http*|iex*",
          "*@SSL\\DavWWWRoot\\*.ps1*",
          "*.lnk*.Seek(0x*",
          "*[string]::join(*",
          "*[Array]::Reverse($*",
          "* hidden $(gc *",
          "*=wscri& set*",
          "*http'+'s://*",
          "*.content|i''Ex*",
          "*//:sptth*",
          "*//:ptth*",
          "*h''t''t''p*",
          "*'tp'':''/'*",
          "*$env:T\"E\"MP*",
          "*;cmd /c $?",
          "*s''t''a''r*",
          "*$*=Get-Content*AppData*.SubString(*$*",
          "*=cat *AppData*.substring(*);*$*",
          "*-join'';*|powershell*",
          "*.Content;sleep *|powershell*",
          "*h\''t\''tp:\''*",
          "*-e aQB3AHIAIABp*",
          "*iwr *https*).Content*",
          "*$env:computername*http*",
          "*;InVoKe-ExpRESsIoN $COntent.CONTENt;*",
          "*WebClient*example.com*",
          "*=iwr $*;iex $*",
          "*gc *:*|sc *",
          "*gci *-Recurse*start*",
          "*Invoke-WebRequest*Start-Process*Hidden*",
          "*Invoke-WebRequest*msiexec*"
        ) or
      (process.command_line regex~ """.*p\"?o\"?w\"?e\"?r\"?s\"?h\"?e\"?l\"?l.*""" and not process.command_line : "*powershell*") or
      (process.args: "bypass" and process.args : "hidden" and process.command_line : "*start-process*appdata*") or
      (process.args : "-c" and process.args : "&{'*") or
      (process.args : "-Outfile" and process.args : "Start*") or
      (process.args : "-bxor" and process.args : "0x*") or
      process.args : "$*$*;set-alias" or
      (process.command_line : ("*-encodedCommand*", "*Invoke-webrequest*", "*WebClient*", "*Reflection.Assembly*") and
       (process.parent.name : ("explorer.exe", "python*.exe") or
        (process.parent.name : "cmd.exe" and
         descendant of [process where event.action == "start" and process.name : ("explorer.exe", "python*.exe")])))
     )

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
process.parent.argseq-Command, -OutputFormat, -InputFormatexcludes:process.parent.args field:"process.parent.args" value:"-Command" field:"process.parent.args" value:"-OutputFormat" field:"process.parent.args" value:"-InputFormat"
process.parent.command_linewildcard*\WindowsPowershell\*\powershell*excludes:process.parent.command_line field:"process.parent.command_line" value:"*\WindowsPowershell\*\powershell*"
process.parent.nameeqcmd.exeexcludes:process.parent.name field:"process.parent.name" value:"cmd.exe"
process.parent.nameeqexplorer.exe, python.exe, cmd.exeexcludes:process.parent.name field:"process.parent.name" value:"explorer.exe" field:"process.parent.name" value:"python.exe" field:"process.parent.name" value:"cmd.exe"
process.argseqRemoteSigned, -ExecutionPolicy, write-hostexcludes:process.args field:"process.args" value:"RemoteSigned" field:"process.args" value:"-ExecutionPolicy" field:"process.args" value:"write-host"
process.parent.nameeqjava.exeexcludes:process.parent.name field:"process.parent.name" value:"java.exe"
process.parent.executablewildcard?:\Windows\System32\svchost.exe, ?:\Windows\System32\wbem\WmiPrvSe.exe, ?:\Program Files\*.exe, ?:\Program Files (x86)\*.exe, ?:\Users\*\AppData\Local\gitkraken\app-*\gitkraken.exe, ?:\Windows\System32\taskeng.exe, ?:\Windows\cybercnsagent\cybercnsagent.exe, ?:\Windows\SysWOW64\WindowsPowerShell\*\powershell_ise.exe, ?:\Windows\System32\WindowsPowerShell\*\powershell_ise.exe, ?:\ProgramData\Microsoft\Windows Defender Advanced Threat Protection\Platform\*\SenseIR.exeexcludes:process.parent.executable
process.argseq$env:TEMP\MicrosoftEdgeWebview2Setup.exeexcludes:process.args field:"process.args" value:"$env:TEMP\MicrosoftEdgeWebview2Setup.exe"
process.argsstarts_withhttps://go.microsoft.com/fwlink/p/?LinkId=excludes:process.args field:"process.args" value:"https://go.microsoft.com/fwlink/p/?LinkId="
process.parent.executableeqC:\Windows\System32\msiexec.exeexcludes:process.parent.executable field:"process.parent.executable" value:"C:\Windows\System32\msiexec.exe"
process.argseq-InputFormatexcludes:process.args field:"process.args" value:"-InputFormat"
process.argseq-NonInteractiveexcludes:process.args field:"process.args" value:"-NonInteractive"
process.argseqNT\CurrentVersion').InstallationType;excludes:process.args field:"process.args" value:"NT\CurrentVersion').InstallationType;"
process.argseq[System.Text.Encoding]::UTF8.GetBytes($OutStr);excludes:process.args field:"process.args" value:"[System.Text.Encoding]::UTF8.GetBytes($OutStr);"
process.argsstarts_with$OutputEncoding = [System.Text.Encoding]::UTF8; $b64='eyJjb252ZXJzYXRpb25faWQiOiJexcludes:process.args field:"process.args" value:"$OutputEncoding = [System.Text.Encoding]::UTF8; $b64='eyJjb252ZXJzYXRpb25faWQiOiJ"
process.parent.nameeqCursor.exeexcludes:process.parent.name field:"process.parent.name" value:"Cursor.exe"
process.argsstarts_with[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;excludes:process.args field:"process.args" value:"[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;"
process.parent.namewildcardcodex*.exeexcludes:process.parent.name field:"process.parent.name" value:"codex*.exe"
process.command_linematch dotnet csharpier formatexcludes:process.command_line field:"process.command_line" value:" dotnet csharpier format"
process.command_linematchWindows.UI.Notificationsexcludes:process.command_line field:"process.command_line" value:"Windows.UI.Notifications"
process.parent.executablewildcardC:\Users\*\AppData\Local\Programs\Microsoft VS Code\Code.exeexcludes:process.parent.executable field:"process.parent.executable" value:"C:\Users\*\AppData\Local\Programs\Microsoft VS Code\Code.exe"
process.command_linematchecho ~/.ansible/tmp/ansible-tmpexcludes:process.command_line field:"process.command_line" value:"echo ~/.ansible/tmp/ansible-tmp"
process.parent.executableeqC:\Windows\System32\OpenSSH\sshd.exeexcludes:process.parent.executable field:"process.parent.executable" value:"C:\Windows\System32\OpenSSH\sshd.exe"
process.command_linewildcard*Get-Content*Set-Content*excludes:process.command_line field:"process.command_line" value:"*Get-Content*Set-Content*"
process.parent.argsends_with.cmd, .batexcludes:process.parent.args field:"process.parent.args" value:".cmd" field:"process.parent.args" value:".bat"
process.parent.argseqD:\PowerShell\webclient.cmd, C:\Temp\FST-Robocopy-wEmailNotif.cmd, C:\istip-installation\install.bat, 'C:\ProgramData\PatchBot\data\windows-health-after.json';, 'C:\ProgramData\PatchBot\data\windows-updates.json';, 'C:\ProgramData\PatchBot\data\windows-updates.json')excludes:process.parent.args
process.parent.argseqmcpexcludes:process.parent.args field:"process.parent.args" value:"mcp"
process.parent.executablewildcardC:\Users\*\.vscode\extensions\openai.chatgpt*-win32-x64\bin\windows-x86_64\codex.exeexcludes:process.parent.executable field:"process.parent.executable" value:"C:\Users\*\.vscode\extensions\openai.chatgpt*-win32-x64\bin\windows-x86_64\codex.exe"
process.parent.code_signature.subject_nameinAnomaly Innovations, Inc https://anoma.ly/, Anthropic, PBC, Anysphere, Inc., ControlCase LLC, Denver Technologies, Inc. dba Warp, HashiCorp, Inc., JetBrains s.r.o., Johannes Schindelinexcludes:process.parent.code_signature.subject_name
process.parent.code_signature.trustedeqtrueexcludes:process.parent.code_signature.trusted field:"process.parent.code_signature.trusted" value:"true"
process.argseq[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String('cGFzc3dvcmQ='))excludes:process.args field:"process.args" value:"[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String('cGFzc3dvcmQ='))"
process.argseqchcp 65001;[System.Reflection.Assembly]::LoadWithPartialName('System.Drawing');(New-Object System.Drawing.Text.InstalledFontCollection).Familiesexcludes:process.args field:"process.args" value:"chcp 65001;[System.Reflection.Assembly]::LoadWithPartialName('System.Drawing');(New-Object System.Drawing.Text.InstalledFontCollection).Families"
process.argswildcard$w=$env:LOCALAPPDATA+'/OPWC/';[Reflection.Assembly]::Load([System.IO.File]::ReadAllBytes($w+'OperaSharpDLL.dll'));[OperaSharpDLL.Helper]::Startup(), IEX (New-Object Net.WebClient).DownloadString('https://install.demo-toolkit.de/dtkupdater.ps1?apikey=*, D:\PowerShell\webclient.cmd, Invoke-WebRequest -Uri https://www.7-zip.org/a/7zr.exe -o '7zr.exe';, "& 'C:\Program Files (x86)\combit\*, Get-CimInstance -Namespace root\wmi -ClassName WmiMonitorID | *, & { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::CreateFromDirectory*excludes:process.args
process.command_linewildcard*ConvertTo-Json*Write-Host*, *BrowserExtension.dll*WebCompanion.BrowserExtension*, *-ExecutionPolicy*Write-Verbose*, *webClient.Headers.add*, *System.Management.Automation.Host.Size*, *JABQAHIAbwBnAHIAZQBzAHMAUAByAGUAZgBlAHIAZQ*, *chocolatey.org*, *Get-WmiObject*, *artifacts.elastic.co*, *officecdn.microsoft.com*, *CgAgACAAIAAgACAAIAAgACAAJABTAGMAcgBpAHAAdAAgACA*, *Program Files*, *).Access.IdentityReference;$defaults*, *https://repo.maven.apache.org*, *\CSIWorking\system\WinSCP\winscp.com*, *@Files.onetech.cc*, *Register-AzureADConnectHealthADDSAgent*, *\ProgramData\Microsoft\LogConverter\*, *WinSCP.com*, *SNC_isWmi*, *--app-id=memtime-*, *BkAGEAdABhAGIAYQBzAGUALgB3AGkAbgBkAG8AdwBzAC4AbgBlAHQA*, *FsAdgBlAHIAcwBpAG8AbgBdACQAbQBpAG4AaQBtAHUAbQBWAGUAcgBzAGkAbwBuACAAPQAgACcAMgAuADIALgAwACcA*, *https://tshf.sas.com/techsup/download/hotfix/*, *scripts\buildsystems\msbuild*, *.vscode\extensions\ms-dynamics-smb*, *$ErrorActionPreference*$adsiMember*, *$ErrorActionPreference*$rgx_log4j*, *$env:APPDATA"+'\Browser Assistant\*, *APPDATA"+'/Browser Extension/BE.txt*, *$env:APPDATA"+'/BBWC/*, *ReadAllBytes($w+'Newtonsoft.Json.dll*, *https://go.microsoft.com/fwlink*, *krsfile:////LOBCS*, *ProgramData\VinitySoft Data\MariaDb\*, *\Temp\claude\claude-pwd-ps-*, *https://10.55.138.214:443/downloads/*, "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe" -noexit -command "[reflection.assembly]::loadFrom('.\RD-PSAPI.dll') | import-module", *-noni -nop -w 1 -enc *AEUAbABhAHMAdABpAGMAfABUAHIAZQBsAGwAaQB4ACIA*, *-noni -nop -w 1 -enc *AEUAbABhAHMAdABpAGMAIABBAGcAZQBuAHQAIgA=*, *JABjAGwAcwA9ACcATQBvAHUAcwBlACcAOwAKACAAIABHAGUAdAAtAEMAaQBtAEkAbgBzAHQAYQBuAGMAZQAgAFcAaQBuADMAMgBfAFAAbgBQAEUAbgB0AGkAdAB5ACAALQBGAGkAb*, *JABjAGwAcwA9ACcASwBlAHkAYgBvAGEAcgBkACcAOwAKACAAIABHAGUAdAAtAEMAaQBtAEkAbgBzAHQAYQBuAGMAZQAgAFcAaQBuADMAMgBfAFAAbgBQAEUAbgB0AGkAdAB5ACAALQBGAGkAb*, *JABjAHYAIAA9ACAARwBlAHQALQBJAHQAZQBtAFAAcgBvAHAAZQByAHQAeQAgACcASABLAEwATQA6AFwAUwBPAEYAVABXAEEAUgBFAFwATQBpAGMAcgBvAHMAbwBmAHQAXABXAGkAbgBkAG8AdwBzACAATgBUAFwAQwB1AHIAcgBlAG4AdABWAGUAcgBzAGkAbwBuACcACgAiACQAKAAkAGMAdgAuAFAAcgBvAGQAdQBjAHQATgBhAG0AZQApAHwAJAAoACQAYwB2AC4ARABpAHMAcABsAGEAeQBWAGUAcgBzAGkAbwBuACkAf*, *JABFAHIAcgBvAHIAQQBjAHQAaQBvAG4AUAByAGUAZgBlAHIAZQBuAGMAZQA9ACcAcwBpAGwAZQBuAHQAbAB5AGMAbwBuAHQAaQBuAHUAZQAnADsAIAAkAHQAbQBwACAAPQAgACgARwBlAHQALQBJAHQAZQBtACAALQBQAGEAdABoACAAIgAkAGUAbgB2ADoAUABSAE8ARwBSAEEATQBGAEkATABFAFMAXABHAG8AbwBnAGwAZQBcAEMAaAByAG8AbQBlAFwA*, *CgAkAEUAcgByAG8AcgBBAGMAdABpAG8AbgBQAHIAZQBmAGUAcgBlAG4AYwBlACAAPQAgACcAUwB0AG8AcAAnAAoAWwB2AGUAcgBzAGkAbwBuAF0AJABtAGkAbgBpAG0AdQBtAFYAZQByAHMAaQBvAG4A*excludes:process.command_line
process.command_linewildcardPowerShell*hkguTzSCb75g7sJ9ChMcmAOPpeBL9ZJy/tejnoCjT+E=*, *.LastWriteTime.ToFileTime*, *New-Object*Net.Mail.SmtpClien*excludes:process.command_line field:"process.command_line" value:"PowerShell*hkguTzSCb75g7sJ9ChMcmAOPpeBL9ZJy/tejnoCjT+E=*" field:"process.command_line" value:"*.LastWriteTime.ToFileTime*" field:"process.command_line" value:"*New-Object*Net.Mail.SmtpClien*"
process.parent.argseq([Datetime]::ParseExact($_.InstalledOn,excludes:process.parent.args field:"process.parent.args" value:"([Datetime]::ParseExact($_.InstalledOn,"
process.parent.command_lineeq"C:\Windows\system32\cmd.exe" excludes:process.parent.command_line
process.parent.executablewildcardC:\Users\* ode_modules\@openai\codex\bin\codex-x86_64-pc-windows-msvc.exe, C:\Users\*\extensions\openai.chatgpt-*\bin\windows-x86_64\codex.exe, C:\Users\*\AppData\Local\Programs\Microsoft VS Code\Code.exe, C:\Users\*\@openai\*\x86_64-pc-windows-msvc\codex\codex.exe, C:\Python312\python.exe, ?:\Users\*\AppData\Local\Programs\Antigravity\resources\app\extensions\antigravity\bin\language_server_windows_x64.exe, ?:\Users\*\AppData\Local\Python\bin\python.exe, ?:\Users\*\AppData\Local\Programs\Python\Python*\python.exe, ?:\Users\*\AppData\Local\Python\pythoncore-*\python.exe, D:\Antigravity\resources\app\extensions\antigravity\bin\language_server_windows_x64.exe, ?:\Users\*\.codex\.sandbox-bin\codex-command-runner-*.exeexcludes:process.parent.executable
process.parent.nameeqpowershell.exeexcludes:process.parent.name field:"process.parent.name" value:"powershell.exe"
process.parent.nameeqwscript.exe, cscript.exeexcludes:process.parent.name field:"process.parent.name" value:"wscript.exe" field:"process.parent.name" value:"cscript.exe"
process.working_directoryeqC:\ProgramData\VinitySoft Data\MariaDb\excludes:process.working_directory field:"process.working_directory" value:"C:\ProgramData\VinitySoft Data\MariaDb\"
user.ideqS-1-5-18excludes:user.id field:"user.id" value:"S-1-5-18"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
event.actioneq
  • start corpus 391 (elastic 391)
field:"EventType" kind:eq value:"start"
process.argswildcard
  • $*$*;set-alias corpus 2 (elastic 2)
  • &{'* corpus 2 (elastic 2)
  • -Outfile corpus 2 (elastic 2)
  • -bxor corpus 2 (elastic 2)
  • -c corpus 107 (elastic 107)
  • 0x* corpus 2 (elastic 2)
  • Start* corpus 2 (elastic 2)
  • bypass
  • hidden
field:"process.args" kind:wildcard
process.command_lineregex_match
  • .*p\"?o\"?w\"?e\"?r\"?s\"?h\"?e\"?l\"?l.*
field:"CommandLine" kind:regex_match
process.command_linewildcard
  • * -ec * corpus 2 (sigma 2)
  • * -enc * corpus 8 (sigma 6, elastic 2)
  • * /e * corpus 3 (sigma 3)
  • * /ec *
  • * /enc *
  • * aQB3AHIAIABpA*
  • * hidden $(gc *
  • * iex*
  • * iwr*
  • *$*=Get-Content*AppData*.SubString(*$* corpus 2 (elastic 2)
  • *$env:T"E"MP*
  • *$env:computername*http* corpus 2 (elastic 2)
  • *$env:temp\*start* corpus 2 (elastic 2)
  • *$host.UI.PromptForCredential*
  • *'tp'':''/'*
  • *+*+*+*+*+*+* corpus 2 (elastic 2)
  • *-e aQB3AHIAIABp*
  • *-encodedCommand* corpus 4 (elastic 2, sigma 1, kusto 1)
  • *-join'';*|powershell* corpus 2 (elastic 2)
  • *-join($*
  • *.Compression.*
  • *.Content;sleep *|powershell* corpus 2 (elastic 2)
  • *.content|i''Ex*
  • *.lnk*.Seek(0x* corpus 2 (elastic 2)
  • *.replace*
  • *//:ptth*
  • *//:sptth*
  • *;InVoKe-ExpRESsIoN $COntent.CONTENt;*
  • *;cmd /c $?
  • *;iex*
  • *;iwr *
  • *;saps *
  • *=cat *AppData*.substring(*);*$* corpus 2 (elastic 2)
  • *=iwr $*;iex $* corpus 2 (elastic 2)
  • *=wscri& set*
  • *@SSL\DavWWWRoot\*.ps1* corpus 2 (elastic 2)
  • *Assembly.GetType*
  • *Base64String*
  • *DownloadFile* corpus 6 (sigma 4, elastic 1, chronicle 1)
  • *DownloadString* corpus 9 (sigma 7, elastic 1, kusto 1)
  • +29 more values (see full rule source)
field:"CommandLine" kind:wildcard
process.namewildcard
  • powershell.exe corpus 184 (elastic 140, splunk 44)
field:"process_name" kind:wildcard value:"powershell.exe"
process.parent.executableis_not_null
  • (no value, null check)
field:"ParentImage" kind:is_not_null
process.parent.namewildcard
  • cmd.exe corpus 36 (elastic 31, splunk 4, kusto 1)
  • explorer.exe corpus 51 (elastic 50, splunk 1)
  • java.exe corpus 3 (elastic 2, kusto 1)
  • python*.exe corpus 2 (elastic 2)
  • python.exe corpus 4 (elastic 4)
field:"parent_process_name" kind:wildcard