T1574.012sub-technique of T1574 Hijack Execution Flow
COR_PROFILER
Windowsnothing on this site yetT1574.012 on attack.mitre.org
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 profilers are designed to monitor, troubleshoot, and debug managed code executed by the.NET CLR.
If this is happening now
Checklists and playbooks to open while the alert is still live.
Playbook for this stage
Suspicious execution on an endpoint
An EDR alert, an unexplained process, or a user reporting something odd.
how MITRE says to see it
Detection Strategy for Hijack Execution Flow using the Windows COR_PROFILER.
- Modification of COR_PROFILER-related environment variables or Registry keys (COR_ENABLE_PROFILING, COR_PROFILER, COR_PROFILER_PATH), combined with anomalous.NET process creation or unmanaged DLL loads.
what reduces it
- M1038 Execution Prevention. Identify and block potentially malicious unmanaged COR_PROFILER profiling DLLs by using application control solutions like AppLocker that are capable of auditing and/or blocking unapproved DLLs.
- M1018 User Account Management. Limit the privileges of user accounts so that only authorized administrators can edit system environment variables.
- M1024 Restrict Registry Permissions. Ensure proper permissions are set for Registry hives to prevent users from modifying keys associated with COR_PROFILER.
the rest of T1574
- T1574.001 DLL
- T1574.004 Dylib Hijacking
- T1574.005 Executable Installer File Permissions Weakness
- T1574.006 Dynamic Linker Hijacking
- T1574.007 Path Interception by PATH Environment Variable
- T1574.008 Path Interception by Search Order Hijacking
- T1574.009 Path Interception by Unquoted Path
- T1574.010 Services File Permissions Weakness
- T1574.011 Services Registry Permissions Weakness
- T1574.013 KernelCallbackTable
- T1574.014 AppDomainManager