heroui logo

Enabling COR Profiler Environment Variables

Sigma Rules

View Source
Summary
This detection rule identifies configurations related to the .NET Framework and .NET Core runtimes that enable profiling features, specifically the COR_ENABLE_PROFILING and COR_PROFILER environment variables. By monitoring changes in the Windows Registry, the rule is able to detect whether these environment variables are set, indicating that profiling is active, which can be an avenue for persistence or privilege escalation when exploited by attackers. The detection logic employs regex-like string operators to ascertain if the relevant keys related to profiling have been altered or created. The rule flags an event when it notices these changes, which could enable an attacker to gather sensitive data or alter application behavior significantly. The focus on environment variables makes this rule particularly relevant in scenarios where .NET applications are deployed, as it directly ties into application security within the broad spectrum of persistence and defense evasion tactics.
Categories
  • Windows
  • Endpoint
Data Sources
  • Windows Registry
Created: 2020-09-10