Modification of CurrentControlSet Registry Autorun Extensibility Points
Detects unauthorized modification of Windows Registry keys within CurrentControlSet used for persistent execution via system extensibility points.
This brief addresses the monitoring of critical Windows Registry keys within 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control' that act as Autostart Extensibility Points (ASEPs). Threat actors frequently target these keys to achieve persistence or perform privilege escalation by ensuring malicious code executes during system startup or service initialization. Because these locations are rarely modified by standard user activity, changes to these keys by non-system processes or unexpected binaries often indicate malicious intent. Defenders should monitor these registry paths to identify unauthorized persistence mechanisms that survive reboots and bypass common user-land startup detection.
Attack Chain
- Attacker gains administrative access to the target host.
- Attacker identifies a registry-based persistence target, such as 'Lsa\Notification Packages' or 'Print\Monitors'.
- Attacker develops or drops a malicious DLL or executable intended for persistence.
- Attacker uses legitimate tools (e.g., reg.exe) or custom scripts to modify the targeted registry key.
- The Windows system reads the registry configuration upon the next boot or service restart.
- The system executes the path or loads the DLL specified in the modified registry key with system-level privileges.
- The malicious code achieves execution in a privileged context, completing the persistence cycle.
Impact
Successful manipulation of these keys allows attackers to maintain long-term, stealthy access to a compromised system with high-level privileges. Because these points execute early in the OS lifecycle, they can be used to inject code into critical system processes, potentially leading to full system compromise, data exfiltration, or further lateral movement within the network.
Recommendation
- Deploy the provided Sigma rule to monitor for 'registry_set' activity targeting the 'CurrentControlSet\Control' hive.
- Baseline your environment by identifying legitimate installers or administrative tools that modify these keys to reduce noise.
- Investigate any process other than trusted system installers (e.g., spoolsv.exe with legitimate drivers) that performs write operations to these specific registry paths.
Immediate actions
Deploy Sigma rules to SIEM to detect unauthorized registry modifications
Threat Hunt
Search for non-standard processes modifying registry keys in CurrentControlSet
Data: Sysmon registry events
Mitigations
Implement strict change management for system-level registry modifications
Unauthorized registry persistence
Detection coverage 1
Detect Modification of ASEP Registry Keys in CurrentControlSet
mediumDetects modification of autostart extensibility point (ASEP) keys in the CurrentControlSet registry hive
Detection queries are available on the platform. Get full rules →