2020-10-18 02:16:11 +03:00
|
|
|
action: global
|
2020-10-07 16:18:38 +03:00
|
|
|
title: PowerShell Scripts Installed as Services
|
|
|
|
|
description: Detects powershell script installed as a Service
|
|
|
|
|
status: experimental
|
|
|
|
|
author: oscd.community, Natalia Shornikova
|
|
|
|
|
date: 2020/10/06
|
2021-05-21 12:35:37 +02:00
|
|
|
modified: 2021/05/21
|
2020-10-07 16:18:38 +03:00
|
|
|
references:
|
|
|
|
|
- https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse
|
2020-10-18 02:16:11 +03:00
|
|
|
tags:
|
2020-10-07 16:18:38 +03:00
|
|
|
- attack.execution
|
|
|
|
|
- attack.t1569.002
|
|
|
|
|
detection:
|
2020-10-18 02:16:11 +03:00
|
|
|
powershell_as_service:
|
|
|
|
|
ServiceFileName|contains:
|
|
|
|
|
- 'powershell'
|
|
|
|
|
- 'pwsh'
|
|
|
|
|
condition: service_creation and powershell_as_service
|
2021-05-21 12:35:37 +02:00
|
|
|
falsepositives:
|
|
|
|
|
- Unknown
|
2020-10-12 18:23:06 +03:00
|
|
|
level: high
|
2020-10-18 02:16:11 +03:00
|
|
|
---
|
2021-09-02 21:03:25 +02:00
|
|
|
id: a2e5019d-a658-4c6a-92bf-7197b54e2cae
|
2020-10-18 02:16:11 +03:00
|
|
|
logsource:
|
|
|
|
|
product: windows
|
|
|
|
|
service: system
|
|
|
|
|
detection:
|
|
|
|
|
service_creation:
|
|
|
|
|
EventID: 7045
|
|
|
|
|
---
|
2021-09-02 21:03:25 +02:00
|
|
|
id: 46deb5e1-28c9-4905-b2df-51cdcc9e6073
|
2020-10-18 01:32:07 +02:00
|
|
|
logsource:
|
|
|
|
|
product: windows
|
|
|
|
|
service: sysmon
|
|
|
|
|
detection:
|
|
|
|
|
service_creation:
|
|
|
|
|
EventID: 6
|
|
|
|
|
---
|
2021-09-02 21:03:25 +02:00
|
|
|
id: 2a926e6a-4b81-4011-8a96-e36cc8c04302
|
2020-10-18 02:16:11 +03:00
|
|
|
logsource:
|
|
|
|
|
product: windows
|
|
|
|
|
service: security
|
|
|
|
|
detection:
|
|
|
|
|
service_creation:
|
|
|
|
|
EventID: 4697
|