Files
blue-team-tools/rules/windows/powershell/powershell_remote_powershell_session.yml
T

45 lines
1.3 KiB
YAML
Raw Normal View History

2021-08-03 10:04:15 +02:00
action: global
title: Remote PowerShell Session
2019-10-24 15:48:38 +02:00
description: Detects remote PowerShell sessions
2021-08-31 13:44:54 +02:00
status: test
2019-10-24 15:48:38 +02:00
date: 2019/08/10
modified: 2020/08/24
2019-10-24 15:48:38 +02:00
author: Roberto Rodriguez @Cyb3rWard0g
references:
2021-05-22 01:03:49 -03:00
- https://threathunterplaybook.com/notebooks/windows/02_execution/WIN-190511223310.html
tags:
- attack.execution
2020-06-16 14:46:08 -06:00
- attack.t1059.001
2021-08-22 13:57:56 +02:00
- attack.t1086 # an old one
- attack.lateral_movement
- attack.t1021.006
2021-08-22 13:57:56 +02:00
- attack.t1028 # an old one
2021-08-03 10:04:15 +02:00
falsepositives:
- Legitimate use remote PowerShell sessions
level: high
---
2021-09-02 21:16:55 +02:00
id: 96b9f619-aa91-478f-bacb-c3e50f8df575
2019-10-24 15:48:38 +02:00
logsource:
product: windows
service: powershell
2021-08-21 09:33:52 +02:00
definition: Module Logging must be enable and fields have to be extract from event
2019-10-24 15:48:38 +02:00
detection:
2020-06-16 14:46:08 -06:00
selection:
2021-08-31 13:44:54 +02:00
EventID: 4103
ContextInfo|contains|all:
- ' = ServerRemoteHost ' # HostName: 'ServerRemoteHost' french : Nom dhôte =
- 'wsmprovhost.exe' # HostApplication|contains: 'wsmprovhost.exe' french Application hôte =
2019-10-24 15:48:38 +02:00
condition: selection
2021-08-03 10:04:15 +02:00
---
2021-09-02 21:16:55 +02:00
id: 60167e5c-84b2-4c95-a7ac-86281f27c445
2021-08-03 10:04:15 +02:00
logsource:
product: windows
service: powershell-classic
2021-08-16 12:56:24 +02:00
definition: fields have to be extract from event
2021-08-03 10:04:15 +02:00
detection:
selection:
EventID: 400
HostName: 'ServerRemoteHost'
HostApplication|contains: 'wsmprovhost.exe'
2021-08-22 13:57:56 +02:00
condition: selection