Detection rules › Kusto Query Language

Windows Binaries Executed from Non-Default Directory

Source
upstream

'The query detects Windows binaries, that can be executed from a non-default directory (e.g. C:\Windows, C:\Windows\System32 etc.). Ref: https://lolbas-project.github.io/'

MITRE ATT&CK coverage

TacticTechniques
ExecutionT1059 Command and Scripting Interpreter

Event coverage

ProviderEvent IDTitle
Security-Auditing4688A new process has been created.

Stages and Predicates

Stage 1: source

SecurityEvent

Stage 2: where

and
  not
    NewProcessName match "C:\\\\Windows\\\\"
  EventID eq "4688"
  Process match "procList"

Stage 3: summarize

Stage 4: extend

Stage 5: extend

Exclusions

Top-level NOT(...) conjuncts — predicates this rule actively suppresses.

StageFieldKindExcluded values
1ImagematchC:\\Windows\\

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
EventIDeq
  • 4688
Processmatch
  • procList