Files
blue-team-tools/rules/windows/process_creation/proc_creation_win_susp_pester.yml
T

37 lines
964 B
YAML
Raw Normal View History

2020-10-07 15:19:45 +03:00
title: Execute Code with Pester.bat
id: 59e938ff-0d6d-4dc3-b13f-36cc28734d4e
2021-11-27 11:33:14 +01:00
status: test
description: Detects code execution via Pester.bat (Pester - Powershell Modulte for testing)
2020-10-07 15:19:45 +03:00
author: Julia Fomina, oscd.community
2021-11-27 11:33:14 +01:00
references:
- https://twitter.com/Oddvarmoe/status/993383596244258816
2020-10-08 10:01:41 +03:00
date: 2020/10/08
2021-11-27 11:33:14 +01:00
modified: 2021/11/27
2020-10-07 15:19:45 +03:00
logsource:
2021-11-27 11:33:14 +01:00
category: process_creation
product: windows
2020-10-07 15:19:45 +03:00
detection:
2021-11-27 11:33:14 +01:00
powershell_module:
Image|endswith: '\powershell.exe'
CommandLine|contains|all:
- 'Pester'
- 'Get-Help'
cmd_execution:
Image|endswith: '\cmd.exe'
CommandLine|contains|all:
- 'pester'
- ';'
get_help:
CommandLine|contains:
- 'help'
- '?'
condition: powershell_module or (cmd_execution and get_help)
2020-10-07 15:19:45 +03:00
falsepositives:
2021-11-27 11:33:14 +01:00
- Legitimate use of Pester for writing tests for Powershell scripts and modules
level: medium
tags:
- attack.execution
- attack.t1059.001
- attack.defense_evasion
- attack.t1216