Suspicious PowerShell Parent Process


Description

Detects a suspicious or uncommon parent processes of PowerShell

Query · sigma

selection_parent:
- ParentImage|contains: tomcat
- ParentImage|endswith:
  - \amigo.exe
  - \browser.exe
  - \chrome.exe
  - \firefox.exe
  - \httpd.exe
  - \iexplore.exe
  - \jbosssvc.exe
  - \microsoftedge.exe
  - \microsoftedgecp.exe
  - \MicrosoftEdgeSH.exe
  - \mshta.exe
  - \nginx.exe
  - \outlook.exe
  - \php-cgi.exe
  - \regsvr32.exe
  - \rundll32.exe
  - \safari.exe
  - \services.exe
  - \sqlagent.exe
  - \sqlserver.exe
  - \sqlservr.exe
  - \vivaldi.exe
  - \w3wp.exe
selection_powershell:
- Image|endswith:
  - \powershell.exe
  - \pwsh.exe
- CommandLine|contains:
  - /c powershell
  - /c pwsh
- Description: Windows PowerShell
- Product: PowerShell Core 6
- OriginalFileName:
  - PowerShell.EXE
  - pwsh.dll
condition: all of selection_*

Known false positives

  • Other scripts
Raw source Suspicious PowerShell Parent Process · Sigma
Esc
Published by SigmaHQ/sigma ↗, licensed under Detection Rule License 1.1 ↗. Reproduced here unmodified.
title: Suspicious PowerShell Parent Process
id: 754ed792-634f-40ae-b3bc-e0448d33f695
related:
    - id: 692f0bec-83ba-4d04-af7e-e884a96059b6
      type: derived
status: test
description: Detects a suspicious or uncommon parent processes of PowerShell
references:
    - https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse?slide=26
author: Teymur Kheirkhabarov, Harish Segar
date: 2020-03-20
modified: 2023-02-04
tags:
    - attack.execution
    - attack.t1059.001
logsource:
    category: process_creation
    product: windows
detection:
    selection_parent:
        - ParentImage|contains: 'tomcat'
        - ParentImage|endswith:
              - '\amigo.exe'
              - '\browser.exe'
              - '\chrome.exe'
              - '\firefox.exe'
              - '\httpd.exe'
              - '\iexplore.exe'
              - '\jbosssvc.exe'
              - '\microsoftedge.exe'
              - '\microsoftedgecp.exe'
              - '\MicrosoftEdgeSH.exe'
              - '\mshta.exe'
              - '\nginx.exe'
              - '\outlook.exe'
              - '\php-cgi.exe'
              - '\regsvr32.exe'
              - '\rundll32.exe'
              - '\safari.exe'
              - '\services.exe'
              - '\sqlagent.exe'
              - '\sqlserver.exe'
              - '\sqlservr.exe'
              - '\vivaldi.exe'
              - '\w3wp.exe'
    selection_powershell:
        - Image|endswith:
              - '\powershell.exe'
              - '\pwsh.exe'
        - CommandLine|contains:
              - '/c powershell'  # FPs with sub processes that contained "powershell" somewhere in the command line
              - '/c pwsh'
        - Description: 'Windows PowerShell'
        - Product: 'PowerShell Core 6'
        - OriginalFileName:
              - 'PowerShell.EXE'
              - 'pwsh.dll'
    condition: all of selection_*
falsepositives:
    - Other scripts
level: high

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.