Files
blue-team-tools/rules/windows/powershell/powershell_script/posh_ps_trigger_profiles.yml
T
frack113 7060db3d47 Promotion rules (#3821)
* Promotion rules

* fix missing null

* fix: modified date

Co-authored-by: Nasreddine Bencherchali <8741929+nasbench@users.noreply.github.com>
2022-12-27 12:29:10 +01:00

30 lines
916 B
YAML

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