Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / ACTIVE DIRECTORY / CREDENTIAL ACCESS / SECRETS

LSA

This note documents detection patterns related to LSA Secrets Extraction within Active Directory environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4688Process creationCriticalLook for execution of tools capable of extracting LSA secrets such as mimikatz, secretsdump.py, or PowerShell scripts accessing the SECURITY hive.
Security4656Handle requested to objectHighAccess to the SECURITY registry hive may indicate attempts to retrieve LSA secrets.
Security4663Object accessHighRegistry access events related to SECURITY hive or policy secrets.
Security4673Sensitive privilege usedHighSeDebugPrivilege or SeBackupPrivilege may be required to extract secrets.
Sysmon1Process creationCriticalExecution of credential dumping tools or scripts targeting LSA secrets.
Sysmon11File creationHighCreation of exported SECURITY hive files or temporary dump artifacts.
Sysmon13Registry value setMediumRegistry interactions involving SECURITY hive or LSA policy keys.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Registry hive exportCommands exporting SECURITY hive using reg saveCriticalCommon attacker technique to retrieve LSA secrets offline.
Suspicious credential toolsExecution of mimikatz or secretsdump utilitiesHighOften used to extract service account credentials stored as LSA secrets.
Temporary hive filesFiles like security.save appearing in temporary directoriesHighIndicates registry hive export prior to offline credential extraction.
Privilege escalation before accessElevation to administrative privileges prior to registry accessMediumOften required to read LSA secrets.
Post-extraction credential useAuthentication attempts using service accounts stored in LSA secretsCriticalIndicates attacker successfully extracted credentials.

Common Tools

ToolUsage
MimikatzExtracts LSA secrets and stored service credentials.
Impacket secretsdump.pyRetrieves LSA secrets from local or remote hosts.
reg.exeExports SECURITY registry hive for offline analysis.
PowerShell scriptsCustom scripts used to read registry hives or extract secrets.
Cobalt StrikeOften used to execute credential dumping modules.

Relevant Artifacts

  • Windows Security logs (4688, 4656, 4663, 4673)
  • Sysmon logs (1, 11, 13)
  • SECURITY registry hive and exported copies
  • Temporary files containing registry dumps
  • Prefetch artifacts for dumping utilities
  • MFT artifacts showing hive export creation
  • PowerShell logs (4103, 4104)
  • Endpoint telemetry identifying credential dumping behavior

MITRE ATT&CK References

  • T1003 OS Credential Dumping
  • T1003.004 LSA Secrets
  • T1078 Valid Accounts

Decision Tree

  1. Is the suspicious event present?
    • Look for process execution exporting or accessing SECURITY registry hive.
  2. What host generated the event?
    • Identify the compromised system performing registry access.
  3. Is the account expected to perform this action?
    • Access to SECURITY hive is rare outside system processes.
  4. Pivot:
    • Source host → analyze process tree and command lines.
    • Account → review privileges and group memberships.
    • Network → check for lateral movement after credential extraction.
  5. Confirm exploitation
    • Investigate whether extracted credentials were used for authentication events.

Example Detection Templates

KQL

SecurityEvent
| where EventID == 4688
| where CommandLine contains "reg save" and CommandLine contains "SECURITY"
| project TimeGenerated, Computer, NewProcessName, CommandLine, ParentProcessName
Sysmon
| where EventID == 11
| where TargetFilename contains "security"
| project TimeGenerated, Computer, TargetFilename, Image

EQL

process where process.command_line like "*reg save*SECURITY*"

Sigma

title: LSA Secrets Registry Hive Dump
id: lsa-secrets-dump
status: experimental
description: Detects attempts to export the SECURITY registry hive which may contain LSA secrets
logsource:
  product: windows
  category: process_creation
detection:
  selection:
    CommandLine|contains:
      - "reg save"
      - "SECURITY"
  condition: selection
fields:
  - CommandLine
  - ParentProcessName
falsepositives:
  - Legitimate administrative backup operations
level: high
tags:
  - attack.credential_access
  - attack.t1003.004

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Privilege restrictionLimit SeBackupPrivilege and administrative accessHighPrevents unauthorized registry hive exports.
Endpoint monitoringDeploy EDR capable of detecting credential dumping toolsHighDetects suspicious registry and process behavior.
Least privilegeRestrict local administrator rightsHighReduces ability to access SECURITY hive.
AuditingEnable registry access auditingMediumProvides visibility into SECURITY hive access attempts.
Credential hygieneAvoid storing sensitive service credentials as LSA secretsHighReduces value of extracted secrets.