Sigma rule: Potential In-Memory Execution Using Reflection.Assembly
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-8877ea8bb6fe, updated 2026-10-19T00:00:00.000Z.
Rule
- Title
- Potential In-Memory Execution Using Reflection.Assembly
- Status
- test
- Level
- medium
- Author
- frack113
- Date
- 2022-12-25
- Modified
- 2026-10-19
- File
- rules/windows/powershell/powershell_script/posh_ps_dotnet_assembly_from_file.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects usage of "Reflection.Assembly" load functions to dynamically load assemblies in memory
Log source
- product
- windows
- category
- ps_script
- definition
- Script Block Logging must be enable
Detection
selection:
ScriptBlockText|contains: '[Reflection.Assembly]::load'
filter_optional_sqlserver:
Path|startswith:
- 'C:\Program Files (x86)\Microsoft SQL Server\'
- 'C:\Program Files\Microsoft SQL Server\'
Path|endswith: '\Tools\PowerShell\Modules\SQLPS\SqlPsPostScript.ps1'
ScriptBlockText|contains: 'SQLSERVER: { Set-Location'
condition: selection and not 1 of filter_optional_*False positives (as the rule lists them)
- Legitimate use of the library
Tags
- attack.stealth
- attack.t1620
MITRE ATT&CK ids this rule names
References
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_dotnet_assembly_from_file.yml
Sources and licences
SigmaHQ
"Potential In-Memory Execution Using Reflection.Assembly" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_dotnet_assembly_from_file.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Potential In-Memory Execution Using Reflection.Assembly",
entity page, dataset version ref-8877ea8bb6fe, updated 2026-10-19T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/ddcd88cb-7f62-4ce5-86f9-1704190feb0a (accessed 2026-11-03).
Underlying source: SigmaHQ rule ddcd88cb-7f62-4ce5-86f9-1704190feb0a, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.