Detection rules › Sigma
Elevated System Shell Spawned From Uncommon Parent Location
Detects when a shell program such as the Windows command prompt or PowerShell is launched with system privileges from a uncommon parent location.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Execution | T1059 Command and Scripting Interpreter |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 1 | Process creation |
Stages and Predicates
Stage 1: all of selection_shell
or:
Image|endswith: '\cmd.exe'
Image|endswith: '\powershell.exe'
Image|endswith: '\powershell_ise.exe'
Image|endswith: '\pwsh.exe'
OriginalFileName: Cmd.Exe
OriginalFileName: PowerShell.EXE
OriginalFileName: powershell_ise.EXE
OriginalFileName: pwsh.dll
Stage 2: all of selection_user
or:
User|contains: AUTHORI
User|contains: AUTORI
LogonId: 0x3e7
Stage 3: not 1 of filter_main_*
or:
ParentImage: ''
ParentImage: -
ParentImage: null
ParentImage|contains: ':\Program Files (x86)\'
ParentImage|contains: ':\Program Files\'
ParentImage|contains: ':\ProgramData\'
ParentImage|contains: ':\Windows\SysWOW64\'
ParentImage|contains: ':\Windows\System32\'
ParentImage|contains: ':\Windows\Temp\'
ParentImage|contains: ':\Windows\WinSxS\'
Stage 4: not 1 of filter_optional_*
or:
CommandLine|contains: ':\IBM\SpectrumProtect\webserver\scripts\'
ParentImage|contains: ':\IBM\SpectrumProtect\webserver\scripts\'
CommandLine|contains: ':\WINDOWS\system32\cmd.exe /c "'
CurrentDirectory|contains: ':\WINDOWS\Temp\asgard2-agent\'
Image|endswith: '\cmd.exe'
ParentImage|endswith: ':\ManageEngine\ADManager Plus\pgsql\bin\postgres.exe'
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.
| Field | Kind | Values |
|---|---|---|
CommandLine | match |
|
CurrentDirectory | match |
|
Image | ends_with |
|
LogonId | eq |
|
OriginalFileName | eq |
|
ParentImage | ends_with |
|
ParentImage | eq |
|
ParentImage | match |
|
User | match |
|