2021-08-18 14:29:50 +02:00
|
|
|
title: Powershell Trigger Profiles by Add_Content
|
|
|
|
|
id: 05b3e303-faf0-4f4a-9b30-46cc13e69152
|
2022-12-27 12:29:10 +01:00
|
|
|
status: test
|
2021-08-18 14:29:50 +02:00
|
|
|
description: Adversaries may gain persistence and elevate privileges by executing malicious content triggered by PowerShell profiles.
|
|
|
|
|
references:
|
2022-07-11 14:11:53 +01:00
|
|
|
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1546.013/T1546.013.md
|
2022-10-26 09:43:39 +02:00
|
|
|
author: frack113
|
|
|
|
|
date: 2021/08/18
|
2022-12-27 12:29:10 +01:00
|
|
|
modified: 2022/12/25
|
2021-08-18 14:29:50 +02:00
|
|
|
tags:
|
|
|
|
|
- attack.privilege_escalation
|
|
|
|
|
- attack.t1546.013
|
|
|
|
|
logsource:
|
|
|
|
|
product: windows
|
2021-10-16 08:18:49 +02:00
|
|
|
category: ps_script
|
2022-07-07 19:13:01 +01:00
|
|
|
definition: Script block logging must be enabled
|
2021-08-18 14:29:50 +02:00
|
|
|
detection:
|
|
|
|
|
selection:
|
|
|
|
|
ScriptBlockText|contains|all:
|
|
|
|
|
- 'Add-Content'
|
|
|
|
|
- '$profile'
|
2022-07-07 19:13:01 +01:00
|
|
|
- '-Value'
|
|
|
|
|
ScriptBlockText|contains:
|
2021-08-18 14:29:50 +02:00
|
|
|
- 'Start-Process'
|
|
|
|
|
- '""' #cleanup action
|
|
|
|
|
condition: selection
|
|
|
|
|
falsepositives:
|
|
|
|
|
- Unknown
|
2022-07-11 14:11:53 +01:00
|
|
|
level: medium
|