Suspicious PowerShell Invocation From Script Engines


Description

Detects suspicious powershell invocations from interpreters or unusual programs

Query · sigma

selection:
  ParentImage|endswith:
  - \wscript.exe
  - \cscript.exe
  Image|endswith:
  - \powershell.exe
  - \pwsh.exe
filter_health_service:
  CurrentDirectory|contains: \Health Service State\
condition: selection and not 1 of filter_*

Known false positives

  • Microsoft Operations Manager (MOM)
  • Other scripts
Raw source Suspicious PowerShell Invocation From Script Engines · Sigma
Esc
Published by SigmaHQ/sigma ↗, licensed under Detection Rule License 1.1 ↗. Reproduced here unmodified.
title: Suspicious PowerShell Invocation From Script Engines
id: 95eadcb2-92e4-4ed1-9031-92547773a6db
status: test
description: Detects suspicious powershell invocations from interpreters or unusual programs
references:
    - https://www.securitynewspaper.com/2017/03/20/attackers-leverage-excel-powershell-dns-latest-non-malware-attack/
author: Florian Roth (Nextron Systems)
date: 2019-01-16
modified: 2023-01-05
tags:
    - attack.execution
    - attack.t1059.001
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith:
            - '\wscript.exe'
            - '\cscript.exe'
        Image|endswith:
            - '\powershell.exe'
            - '\pwsh.exe'
    filter_health_service:
        CurrentDirectory|contains: '\Health Service State\'
    condition: selection and not 1 of filter_*
falsepositives:
    - Microsoft Operations Manager (MOM)
    - Other scripts
level: medium

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.