REMOTEREGISTRY
WINREG
EVENT 7036
HIVE DUMP
DetectionBlue TeamSOCOctober 12, 2026•9 min read

Detecting Remote Registry Abuse and Hive Dumping

The RemoteRegistry service is usually off. When it starts on its own, from the network, an attacker is often reading credentials out of the hives.

Scroll

Remote registry access travels over SMB to the winreg named pipe and is served by the RemoteRegistry service, which is stopped by default on modern Windows clients and starts on demand. Tools such as Impacket’s secretsdump.py and reg.py use it to read configuration, change values and save the SAM, SYSTEM and SECURITY hives for offline cracking.

Signals at a Glance

SignalWhereATT&CK
RemoteRegistry service entering the running state, then stoppingSystem Event 7036T1012
IPC$ access to the winreg pipe from a remote clientSecurity 5145, Zeek smbT1021.002
reg.exe with a UNC host argument (reg add or reg save \\host)Sysmon 1, Event 4688T1112
Hive save: SAM, SYSTEM or SECURITY written to disk and fetched over SMBSysmon 11, Event 5145T1003.002
Registry writes made by the RemoteRegistry service hostSysmon 13T1112

Service State and Pipe Access

On Windows 10 and Server 2019 and later, RemoteRegistry is typically disabled or manual. A remote client can still start it through a trigger, so a start event on a host where the service has never run is a strong signal. Event 7036 records the transitions; the winreg pipe appears in Event 5145 against IPC$:

// Sentinel (KQL) - RemoteRegistry started shortly after a network logon from the same source
let starts = Event
| where Source == "Service Control Manager" and EventID == 7036
| where RenderedDescription has "Remote Registry" and RenderedDescription has "running"
| project StartTime=TimeGenerated, Computer;
starts
| join kind=inner (
    SecurityEvent
    | where EventID == 4624 and LogonType == 3
    | where TargetUserName !endswith "$"
    | project LogonTime=TimeGenerated, Computer, TargetUserName, SourceIp=IpAddress
) on Computer
| where LogonTime between (StartTime - 2m .. StartTime)
| project StartTime, Computer, TargetUserName, SourceIp
// tune/validate: some management and inventory tools enable RemoteRegistry; allowlist their sources.

The network view is independent of host auditing. Suricata 7 exposes the SMB pipe name, so a pipe-name match to winreg from a workstation to a server is a direct hit:

# Suricata (validate syntax against your version; requires SMB parser enabled)
alert smb any any -> $HOME_NET 445 ( \
  msg:"HUNT SMB winreg named pipe access from non-admin source"; \
  flow:established,to_server; \
  smb.named_pipe; content:"winreg"; nocase; \
  threshold:type limit, track by_src, count 1, seconds 600; \
  classtype:policy-violation; sid:9100002; rev:1; )
# tune/validate: negate approved administration networks; combine with Zeek dce_rpc.log (winreg endpoint).

Hive Saves and Credential Access

When the goal is credential theft, the client calls the registry save operation on the SAM, SYSTEM and SECURITY hives, writes them to a temporary file in the Windows directory over the remote connection, then fetches the files over SMB and deletes them. That combination is a more specific signal than RemoteRegistry alone.

Vetted sources

Use the SigmaHQ remote registry, hive-dump and secretsdump rules, Elastic and Splunk ESCU credential dumping content and MITRE CAR analytics for registry and credential access. Zeek ships dce_rpc and smb logs that cover the winreg interface, and Atomic Red Team includes registry-hive tests. Baseline your own environment: inventory, patching and some EDR tooling start RemoteRegistry legitimately.

Build Detections That Fire

Mjolnir Security helps blue teams turn threat intelligence into high-fidelity detections across endpoint, network, identity and cloud telemetry.

Detection EngineeringManaged Detection & ResponseThreat HuntingIncident ResponsePurple Teaming
  • Detection Engineering We build and tune detections mapped to ATT&CK from your own telemetry.
  • Threat Hunting as a Service Hypothesis-driven hunts for the behaviours on this page.
  • 24/7 Incident Response Containment when a detection fires. Call +1 833 403 5875.
Written by: Mjolnir Threat Research (MTAC)  |  Published: October 12, 2026  |  Last reviewed: October 12, 2026