Sigma rule: Registry-Free Process Scope COR_PROFILER
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-4d1e5e2bb54d, updated 2021-12-30T00:00:00.000Z.
Rule
- Title
- Registry-Free Process Scope COR_PROFILER
- Status
- test
- Level
- medium
- Author
- frack113
- Date
- 2021-12-30
- File
- rules/windows/powershell/powershell_script/posh_ps_cor_profiler.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Adversaries may leverage the COR_PROFILER environment variable to hijack the execution flow of programs that load the .NET CLR.
The COR_PROFILER is a .NET Framework feature which allows developers to specify an unmanaged (or external of .NET) profiling DLL to be loaded into each .NET process that loads the Common Language Runtime (CLR).
These profiliers are designed to monitor, troubleshoot, and debug managed code executed by the .NET CLR.
(Citation: Microsoft Profiling Mar 2017)
(Citation: Microsoft COR_PROFILER Feb 2013)
Log source
- product
- windows
- category
- ps_script
- definition
- Requirements: Script Block Logging must be enabled
Detection
selection:
ScriptBlockText|contains|all:
- '$env:COR_ENABLE_PROFILING'
- '$env:COR_PROFILER'
- '$env:COR_PROFILER_PATH'
condition: selectionFalse positives (as the rule lists them)
- Legitimate administrative script
Tags
- attack.privilege-escalation
- attack.persistence
- attack.execution
- attack.stealth
- attack.t1574.012
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_cor_profiler.yml
Sources and licences
SigmaHQ
"Registry-Free Process Scope COR_PROFILER" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_cor_profiler.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: Registry-Free Process Scope COR_PROFILER",
entity page, dataset version ref-4d1e5e2bb54d, updated 2021-12-30T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/23590215-4702-4a70-8805-8dc9e58314a2 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 23590215-4702-4a70-8805-8dc9e58314a2, 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.