Skip to content
Threat Feed
medium advisory

Suspicious Registry Manipulation via reg.exe

Detection of reg.exe execution spawned via non-interactive command prompts to identify unauthorized registry modifications associated with persistence or defense evasion.

This threat brief focuses on the behavioral detection of unauthorized registry modifications performed via the Windows system utility 'reg.exe'. Attackers frequently use reg.exe to modify registry keys for establishing persistence, disabling security tools, or facilitating privilege escalation. The specific indicator of concern is the execution of 'reg.exe' as a child process of 'cmd.exe' when that 'cmd.exe' instance was not launched by the standard user shell 'explorer.exe'. This pattern typically signifies that the command processor was invoked by a secondary process, such as a malicious script, service, or exploitation payload. Monitoring this execution chain helps security operations centers identify potentially anomalous configuration changes on Windows endpoints that may bypass traditional file-based detection.

Attack Chain

  1. Attacker gains initial execution through a vulnerability, malicious macro, or sideloaded utility.
  2. The malicious process launches 'cmd.exe' to execute shell commands, bypassing standard shell-level audit triggers.
  3. The attacker utilizes the spawned 'cmd.exe' to interface with the Windows Registry.
  4. 'cmd.exe' invokes 'reg.exe' with arguments to modify specific system configuration keys.
  5. Registry values are altered to create new services or modify existing Run keys (T1112).
  6. The target system state is changed to allow persistence or disable EDR features.
  7. Attacker activity continues with increased privileges or persistent access.

Impact

Successful exploitation allows for arbitrary modification of Windows Registry keys, potentially leading to the disabling of security software, persistent backdoor installation, and privilege escalation. This technique is observed across various intrusion sets targeting the Windows platform, including those documented in DHS report TA18-074A.

Recommendation

Deploy the provided Sigma rules to identify non-standard 'reg.exe' execution chains. Ensure that process creation logging (Sysmon Event ID 1 or Windows Event 4688) is enabled and includes command-line arguments to allow for contextual analysis of registry modifications.


Immediate actions

Deploy Sigma detection rule to SIEM/EDR platform.

Detection Engineering 48h

Threat Hunt

Identify all instances of reg.exe execution where parent is cmd.exe.

T1112 medium high confidence convert to detection

Data: Process lineage logs

Detection coverage 1

Detect Suspicious reg.exe Execution from Non-Interactive cmd.exe

medium

Detects reg.exe spawned by cmd.exe where the cmd.exe parent is not explorer.exe, indicating potential automated or malicious registry modification.

sigma tactics: defense_evasion techniques: T1112 sources: process_creation, windows

Detection queries are available on the platform. Get full rules →