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

DPAPI Dumping

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


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4688Process creationCriticalDetects DPAPI extraction tooling and supporting commands.
Sysmon1Process creationCriticalBest execution source for DPAPI dump utilities and command line.
Sysmon11File createHighCaptures exported blobs, masterkeys, browser credential dumps.
Sysmon10Process accessCriticalStrong signal when LSASS accessed to obtain DPAPI material.
Security4656Handle requestedHighSensitive object access if auditing enabled.
Security4663Object accessHighAccess to DPAPI directories or credential stores.
Sysmon7Image loadedMediumUseful when crypto libraries load unusually.
PowerShell4104Script block loggingCriticalCaptures DPAPI extraction scripts.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Access to Protect folderAppData\Roaming\Microsoft\ProtectCriticalCore DPAPI artifact path.
Browser credential store accessChrome / Edge / Credential filesCriticalCommon post-DPAPI target.
Masterkey + LSASS access chainFile access then LSASS readCriticalVery strong credential theft pattern.
SharpDPAPI / Mimikatz usageKnown tooling lineageCriticalCommon operator workflow.
Vault / credential file exportCredentials, Vault foldersHighSensitive DPAPI material collection.
SYSTEM + user context mixingMachine + user secretsHighBroader credential scope.

Common Tools

ToolUsage
mimikatzDPAPI credential extraction
SharpDPAPIDPAPI triage and decryption
PowerShellDPAPI script extraction
seatbeltCredential discovery support
browser dump toolsChrome / Edge secret extraction
custom scriptsBlob parsing

Relevant Artifacts

  • Sysmon Event IDs 1, 10, 11
  • Security Event IDs 4688, 4656, 4663
  • PowerShell 4104
  • DPAPI folders:
    • %APPDATA%\Microsoft\Protect\
    • %APPDATA%\Microsoft\Credentials\
    • %LOCALAPPDATA%\Microsoft\Credentials\
    • %LOCALAPPDATA%\Google\Chrome\User Data\
  • Prefetch: MIMIKATZ.EXE, SHARPDPAPI.EXE
  • Amcache execution history
  • ShimCache traces
  • MFT / USN for exported secrets

MITRE ATT&CK References

  • T1003 OS Credential Dumping
  • T1555 Credentials from Password Stores
  • T1552 Unsecured Credentials

Decision Tree

  1. Which DPAPI target accessed?

    • Protect folder
    • Credentials
    • Browser DB
  2. Which tool executed?

    • Mimikatz
    • SharpDPAPI
    • Script
  3. Was LSASS also accessed?

    • Sysmon 10
    • Token privilege
  4. Was output written?

    • Temp
    • Archive
    • Network share
  5. Expand:

    • Browser theft
    • Vault extraction
    • Lateral credential reuse
  6. Scope:

    • Single user
    • Multiple profiles
    • SYSTEM + user secrets

Example Detection Templates

KQL

Sysmon
| where EventID == 1
| where CommandLine has_any ("SharpDPAPI","dpapi","mimikatz")
| project TimeGenerated, Computer, User, CommandLine
Sysmon
| where EventID == 10
| where TargetImage has "\\lsass.exe"
| project TimeGenerated, Computer, SourceImage, GrantedAccess

EQL

process where process.command_line like "*SharpDPAPI*" or process.command_line like "*dpapi*"
sequence by host.name with maxspan=5m
  [ process where process.name in ("SharpDPAPI.exe","mimikatz.exe") ]
  [ file where file.path like "*\\Microsoft\\Protect\\*" ]

Sigma

title: DPAPI Dumping Detection
id: 1a5f44d0-dpapi-dump
status: experimental
description: Detects DPAPI extraction activity linked to credential theft
references:
  - https://attack.mitre.org/
author: Vergil
date: 2026-03-07
logsource:
  product: windows
  service: sysmon
detection:
  selection:
    CommandLine|contains:
      - 'SharpDPAPI'
      - 'dpapi'
      - 'mimikatz'
  condition: selection
fields:
  - CommandLine
  - ParentImage
falsepositives:
  - Security testing
level: high
tags:
  - attack.credential_access

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Protect LSASSRunAsPPLCriticalHarder masterkey extraction
EDR process accessMonitor LSASS readsCriticalStrong correlation point
Credential vault hardeningLimit secret storageHighReduce exposure
Sysmon file visibilityWatch Protect/Credentials accessHighStrong artifact coverage
Browser secret controlsEnterprise password policiesHighReduce DPAPI secret value