SigmaHQ/rules/windows/powershell/powershell_alternate_powershell_hosts.yml
2021-08-18 15:18:29 +02:00

43 lines
1.3 KiB
YAML

action: global
title: Alternate PowerShell Hosts
id: 64e8e417-c19a-475a-8d19-98ea705394cc
description: Detects alternate PowerShell hosts potentially bypassing detections looking for powershell.exe
status: test
date: 2019/08/11
modified: 2021/08/18
author: Roberto Rodriguez @Cyb3rWard0g
references:
- https://threathunterplaybook.com/notebooks/windows/02_execution/WIN-190815181010.html
tags:
- attack.execution
- attack.t1059.001
- attack.t1086 # an old one
falsepositives:
- Programs using PowerShell directly without invocation of a dedicated interpreter
- MSP Detection Searcher
- Citrix ConfigSync.ps1
level: medium
---
logsource:
product: windows
service: powershell
definition: ModuleLogging must be enable
detection:
selection:
EventID: 4103
ContextInfo: '*'
filter:
ContextInfo|contains: 'powershell.exe' # Host Application=...powershell.exe or Application hote=...powershell.exe in French Win10 event
condition: selection and not filter
---
logsource:
product: windows
service: powershell-classic
definition: fields have to be extract from event
detection:
selection:
EventID: 400
HostApplication: '*'
filter:
HostApplication|endswith: 'powershell.exe'
condition: selection and not filter