2019-08-09 09:58:43 +00:00
|
|
|
title: Default PowerSploit and Empire Schtasks Persistence
|
2019-11-12 22:12:27 +00:00
|
|
|
id: 56c217c3-2de2-479b-990f-5c109ba8458f
|
2018-06-23 13:45:58 +00:00
|
|
|
status: experimental
|
2019-08-09 09:58:43 +00:00
|
|
|
description: Detects the creation of a schtask via PowerSploit or Empire Default Configuration.
|
2018-06-23 13:45:58 +00:00
|
|
|
references:
|
|
|
|
- https://github.com/0xdeadbeefJERKY/PowerSploit/blob/8690399ef70d2cad10213575ac67e8fa90ddf7c3/Persistence/Persistence.psm1
|
2019-08-09 09:58:43 +00:00
|
|
|
- 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
|
|
|
|
author: Markus Neis, @Karneades
|
2018-06-23 13:45:58 +00:00
|
|
|
date: 2018/03/06
|
|
|
|
logsource:
|
|
|
|
product: windows
|
2019-09-11 14:24:43 +00:00
|
|
|
category: process_creation
|
2018-06-23 13:45:58 +00:00
|
|
|
detection:
|
2020-11-28 09:29:07 +00:00
|
|
|
selection1:
|
|
|
|
ParentImage|endswith: '\powershell.exe'
|
|
|
|
Image|endswith: '\schtasks.exe'
|
|
|
|
CommandLine|contains|all:
|
|
|
|
- '/Create'
|
|
|
|
- '/SC'
|
|
|
|
selection2:
|
2020-10-15 21:22:04 +00:00
|
|
|
CommandLine|contains:
|
2020-11-28 09:29:07 +00:00
|
|
|
- 'ONLOGON'
|
|
|
|
- 'DAILY'
|
|
|
|
- 'ONIDLE'
|
|
|
|
- 'Updater'
|
|
|
|
CommandLine|contains|all:
|
|
|
|
- '/TN'
|
|
|
|
- 'Updater'
|
|
|
|
- '/TR'
|
|
|
|
- 'powershell'
|
|
|
|
condition: selection1 and selection2
|
2018-07-22 12:53:56 +00:00
|
|
|
tags:
|
|
|
|
- attack.execution
|
|
|
|
- attack.persistence
|
2019-01-22 18:26:07 +00:00
|
|
|
- attack.privilege_escalation
|
2020-09-06 22:00:41 +00:00
|
|
|
- attack.t1053 # an old one
|
|
|
|
- attack.t1086 # an old one
|
2018-07-22 12:53:56 +00:00
|
|
|
- attack.s0111
|
|
|
|
- attack.g0022
|
|
|
|
- attack.g0060
|
2019-06-14 04:15:38 +00:00
|
|
|
- car.2013-08-001
|
2020-06-16 20:46:08 +00:00
|
|
|
- attack.t1053.005
|
|
|
|
- attack.t1059.001
|
2018-06-23 13:45:58 +00:00
|
|
|
falsepositives:
|
|
|
|
- False positives are possible, depends on organisation and processes
|
|
|
|
level: high
|