Potential In-Memory Execution Using Reflection.Assembly
Detects usage of "Reflection.Assembly" load functions to dynamically load assemblies in memory
Detection logic
selection
ScriptBlockText|contains: "[Reflection.Assembly]::load"Condition
selectionRaw YAML
title: Potential In-Memory Execution Using Reflection.Assembly
id: ddcd88cb-7f62-4ce5-86f9-1704190feb0a
status: test
description: Detects usage of "Reflection.Assembly" load functions to dynamically load assemblies in memory
references:
- https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse?slide=50
author: frack113
date: 2022-12-25
tags:
- attack.stealth
- attack.t1620
logsource:
product: windows
category: ps_script
definition: Script Block Logging must be enable
detection:
selection:
ScriptBlockText|contains: '[Reflection.Assembly]::load'
condition: selection
falsepositives:
- Legitimate use of the library
level: mediumFalse positives
- Legitimate use of the library
References
Similar rules
Potential WinAPI Calls Via PowerShell Scripts
highwindows · Shares T1620
PowerShell Base64 Encoded Reflective Assembly Load
highwindows · Shares T1620
Abuse of Service Permissions to Hide Services Via Set-Service - PS
highwindows · Same logsource category (ps_script)
Clear PowerShell History - PowerShell
mediumwindows · Same logsource category (ps_script)