Skip to main content

Overview

The search command searches for potential DPAPI blobs in the Windows registry, files, folders, and base64-encoded strings. It identifies data containing DPAPI blob headers, helping discover hidden or non-standard DPAPI-protected data.
The search command looks for the DPAPI blob header signature to identify encrypted data that can then be decrypted with the blob command.

Basic Usage

Command Arguments

Search Types

Additional Arguments

DPAPI Blob Header Signature

The search command looks for this byte sequence:
This represents:
  • Version: 0x01000000 (Version 1)
  • Provider GUID: DF9D8CD0-0115-D111-8C7A-00C04FC297EB

Search Type: Registry

Registry Search Behavior:
  • Searches HKLM and HKU hives by default
  • Recursively enumerates all subkeys
  • Checks all registry values for DPAPI headers
  • /showErrors displays access denied and other errors
Example Output:

Search Type: Folder

Folder Search Behavior:
  • Recursively searches all files in folder
  • Reads up to /maxBytes from beginning of each file (default: 1024)
  • Searches read bytes for DPAPI blob header
  • /showErrors displays file access errors
Example Output:
Use /maxBytes to increase search depth for larger files, but be aware this increases search time.

Search Type: File

File Search Behavior:
  • Reads up to /maxBytes from beginning of file (default: 1024)
  • Searches read bytes for DPAPI blob header
  • Reports offset and approximate size
Example Output:

Search Type: Base64

Base64 Search Behavior:
  • Decodes base64 string
  • Checks for DPAPI blob header signature
  • Validates blob structure
Example Output:

Common Search Scenarios

Search common application directories:
Find DPAPI usage in custom applications:
Comprehensive DPAPI discovery:
Analyze extracted data:

Using Search Results

Once DPAPI blobs are found, decrypt them with the blob command:
1

Search for Blobs

2

Note File Paths

Record paths of files containing DPAPI blobs
3

Decrypt Discovered Blobs

Registry Search Targets

High-value registry locations for DPAPI blobs:
Specific Applications:
  • Custom enterprise software
  • Third-party credential managers
  • Backup/sync applications
  • Remote access tools
  • Automation software

File System Search Targets

Common locations containing DPAPI blobs:
File Types:
  • Configuration files (.config, .xml, .json)
  • Database files (.db, .sqlite)
  • Binary data files (.dat, .bin)
  • Application-specific formats

Performance Considerations

Registry and folder searches can be time-consuming on large systems. Target specific paths when possible.
Optimization Tips:
  • Use specific /path instead of full searches
  • Reduce /maxBytes for faster file scanning
  • Target known application directories
  • Use /showErrors only when troubleshooting
  • Search user-specific locations instead of system-wide

Detection Considerations

Host-Based Indicators:
  • Bulk registry enumeration
  • File system traversal patterns
  • High volume of file reads
  • Access to protected registry keys
  • Systematic directory enumeration
Defensive Monitoring:
  • Monitor for registry enumeration tools
  • Alert on bulk file access patterns
  • Track process accessing many files quickly
  • Detect systematic directory traversal
  • Monitor protected registry key access

blob

Decrypt discovered DPAPI blobs

credentials

Decrypt Credential Manager files

vaults

Decrypt Windows Vault data

masterkeys

Decrypt user masterkeys

Tips

  • Start with known application directories
  • Use registry searches for custom software
  • Increase /maxBytes for large configuration files
  • Combine with file system analysis tools
  • Document all discovered blob locations
  • Targeted searches are less noisy than full scans
  • Consider time-of-day for extensive searches
  • File system searches generate disk I/O patterns
  • Registry enumeration may trigger alerts
  • Use /showErrors sparingly (generates noise)
No blobs found:
  • Application may not use DPAPI
  • Blobs may be in non-standard locations
  • Check file encoding (may need larger /maxBytes)
  • Verify search path is correct
  • Try searching parent directories
Access denied errors:
  • Need elevation for protected registry keys
  • Some files require admin access
  • System directories may be restricted
  • Use /showErrors to see all errors
Search takes too long:
  • Reduce scope to specific directories
  • Lower /maxBytes value
  • Target specific registry paths
  • Exclude large directories

Advanced Usage