Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / WINDOWS / EXFILTRATION

Registry Dumping

This note documents detection patterns related to Registry Dumping within Windows environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4688Process creationCriticalDetects reg.exe, reg save, PowerShell export commands, or custom dumping tools.
Sysmon1Process creationCriticalBest execution source for registry dump tooling and command line visibility.
Sysmon11File createCriticalCaptures hive dump files such as SAM, SYSTEM, SECURITY, NTUSER.DAT copies.
Sysmon12Registry object create/deleteHighRegistry object interaction near dump operations.
Sysmon13Registry value setMediumSupports adjacent tampering before or after dump.
Security4656Handle requested to objectHighSensitive hive access if auditing enabled.
Security4663Object accessHighDetects hive read operations under audit coverage.
Sysmon10Process accessMediumUseful if dump precedes LSASS access in credential chain.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
reg save on SAM/SYSTEM/SECURITYCredential extraction preparationCriticalClassic local credential theft chain.
Hive dumped to Temp/AppDataSuspicious dump locationCriticalCommon attacker staging path.
Backup file shortly followed by archiveDump prepared for exfiltrationCriticalStrong collection indicator.
Shadow copy + hive dumpLocked hive bypassHighAdvanced attacker pattern.
SYSTEM + SAM paired accessOffline hash extractionCriticalVery strong credential theft signal.
Remote registry interactionRegistry dump over remote adminHighLateral collection clue.

Common Tools

ToolUsage
reg.exereg save hive dumping
regedit.exeExport registry data
PowerShellRegistry export or hive copy
esentutl.exeLocked file copy
vssadmin.exeShadow copy for hive access
diskshadow.exeVolume shadow dump path
secretsdump.pyOffline hive extraction

Relevant Artifacts

  • Sysmon Event IDs 1, 11, 12, 13
  • Security Event IDs 4688, 4656, 4663
  • Prefetch: REG.EXE, REGEDIT.EXE, VSSADMIN.EXE, DISKSHADOW.EXE
  • Amcache for dump tooling
  • ShimCache traces
  • MFT / USN Journal for hive dump files
  • Dumped files: SAM / SYSTEM / SECURITY
  • EDR lineage around dump + archive

MITRE ATT&CK References

  • T1003.002 Security Account Manager
  • T1003.004 LSA Secrets
  • T1003 OS Credential Dumping
  • T1112 Modify Registry

Decision Tree

  1. Which hive was dumped?

    • SAM
    • SYSTEM
    • SECURITY
    • User hive
  2. Which process performed dump?

    • reg.exe
    • PowerShell
    • Shadow copy tooling
  3. Dump location suspicious?

    • Temp
    • Public
    • Network share
  4. Follow-up activity?

    • Archive
    • Exfiltration
    • Hash cracking prep
  5. Expand:

    • LSASS access
    • Privilege escalation
    • Lateral movement
  6. Scope:

    • Single host
    • Multiple hives
    • Enterprise collection

Example Detection Templates

KQL

Sysmon
| where EventID == 1
| where CommandLine has_any ("reg save","reg export","SAM","SYSTEM","SECURITY")
| project TimeGenerated, Computer, User, CommandLine
Sysmon
| where EventID == 11
| where TargetFilename has_any ("SAM","SYSTEM","SECURITY")
| project TimeGenerated, Computer, TargetFilename

EQL

process where process.command_line like "*reg save*" or process.command_line like "*SAM*"
sequence by host.name with maxspan=5m
  [ process where process.name == "reg.exe" ]
  [ file where file.path like "*SAM*" ]

Sigma

title: Registry Dumping Detection
id: 7f4e2b81-registry-dump
status: experimental
description: Detects registry hive dumping linked to credential theft
references:
  - https://attack.mitre.org/
author: Vergil
date: 2026-03-07
logsource:
  product: windows
  service: sysmon
detection:
  selection:
    CommandLine|contains:
      - 'reg save'
      - 'SAM'
      - 'SYSTEM'
      - 'SECURITY'
  condition: selection
fields:
  - CommandLine
  - ParentImage
falsepositives:
  - Legitimate backup operations
level: high
tags:
  - attack.credential_access
  - attack.t1003

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Restrict hive accessLimit backup rightsCriticalReduce dump ability
Sysmon file monitoringTrack hive copiesCriticalDetect dump output
Shadow copy monitoringAlert on VSS abuseHighCommon locked hive bypass
EDR command-line coveragePreserve reg.exe visibilityCriticalCore triage source
Credential hygieneLAPS / strong local admin controlsHighReduce post-dump value