Files
hayabusa/rules/sigma/process_creation/win_powersploit_empire_schtasks.yml
2021-11-23 15:04:03 +09:00

57 lines
1.6 KiB
YAML

title: Default PowerSploit and Empire Schtasks Persistence
author: Markus Neis, @Karneades
date: 2018/03/06
description: Detects the creation of a schtask via PowerSploit or Empire Default Configuration.
detection:
SELECTION_1:
EventID: 1
SELECTION_10:
CommandLine: '*powershell*'
SELECTION_2:
ParentImage: '*\powershell.exe'
SELECTION_3:
Image: '*\schtasks.exe'
SELECTION_4:
CommandLine: '*/Create*'
SELECTION_5:
CommandLine: '*/SC*'
SELECTION_6:
CommandLine:
- '*ONLOGON*'
- '*DAILY*'
- '*ONIDLE*'
- '*Updater*'
SELECTION_7:
CommandLine: '*/TN*'
SELECTION_8:
CommandLine: '*Updater*'
SELECTION_9:
CommandLine: '*/TR*'
condition: (SELECTION_1 and SELECTION_2 and SELECTION_3 and SELECTION_4 and SELECTION_5
and SELECTION_6 and SELECTION_7 and SELECTION_8 and SELECTION_9 and SELECTION_10)
falsepositives:
- False positives are possible, depends on organisation and processes
id: 56c217c3-2de2-479b-990f-5c109ba8458f
level: high
logsource:
category: process_creation
product: windows
references:
- https://github.com/0xdeadbeefJERKY/PowerSploit/blob/8690399ef70d2cad10213575ac67e8fa90ddf7c3/Persistence/Persistence.psm1
- https://github.com/EmpireProject/Empire/blob/master/lib/modules/powershell/persistence/userland/schtasks.py
- https://github.com/EmpireProject/Empire/blob/master/lib/modules/powershell/persistence/elevated/schtasks.py
status: experimental
tags:
- attack.execution
- attack.persistence
- attack.privilege_escalation
- attack.t1053
- attack.t1086
- attack.s0111
- attack.g0022
- attack.g0060
- car.2013-08-001
- attack.t1053.005
- attack.t1059.001