Enabling COR Profiler Environment Variables
Detects .NET Framework CLR and .NET Core CLR "cor_enable_profiling" and "cor_profiler" variables being set and configured.
Sigma rule (View on GitHub)
1title: Enabling COR Profiler Environment Variables
2id: ad89044a-8f49-4673-9a55-cbd88a1b374f
3status: test
4description: Detects .NET Framework CLR and .NET Core CLR "cor_enable_profiling" and "cor_profiler" variables being set and configured.
5references:
6 - https://twitter.com/jamieantisocial/status/1304520651248668673
7 - https://www.slideshare.net/JamieWilliams130/started-from-the-bottom-exploiting-data-sources-to-uncover-attck-behaviors
8 - https://www.sans.org/cyber-security-summit/archives
9 - https://learn.microsoft.com/en-us/dotnet/core/runtime-config/debugging-profiling
10author: Jose Rodriguez (@Cyb3rPandaH), OTR (Open Threat Research), Jimmy Bayne (@bohops)
11date: 2020-09-10
12modified: 2023-11-24
13tags:
14 - attack.persistence
15 - attack.privilege-escalation
16 - attack.execution
17 - attack.stealth
18 - attack.t1574.012
19logsource:
20 category: registry_set
21 product: windows
22detection:
23 selection_1:
24 TargetObject|endswith:
25 - '\COR_ENABLE_PROFILING'
26 - '\COR_PROFILER'
27 - '\CORECLR_ENABLE_PROFILING'
28 selection_2:
29 TargetObject|contains: '\CORECLR_PROFILER_PATH'
30 condition: 1 of selection_*
31level: medium
References
Related rules
- Registry-Free Process Scope COR_PROFILER
- APT27 - Emissary Panda Activity
- AWS IAM S3Browser LoginProfile Creation
- AWS IAM S3Browser Templated S3 Bucket Policy Creation
- AWS IAM S3Browser User or AccessKey Creation