Windows API reference
CryptUnprotectData
Decrypts a DPAPI-protected data blob using the current user master key, or the machine scope when CRYPTPROTECT_LOCAL_MACHINE is specified.
- Library
- Crypt32.dll
- Category
- Credential Access, Crypto
- Suspicion
- high
- MITRE ATT&CK
- T1555 Credentials from Password Stores
Detection summary
DPAPI credential theft: decrypt browser cookies/passwords, Credential Manager blobs or application secrets after obtaining the user master key; detect access to %APPDATA%\Microsoft\Protect and browser Local State/Login Data files, Microsoft-Windows-Crypto-DPAPI master-key/data-protection events, EDR hooks on crypt32!CryptUnprotectData, and processes reading multiple DPAPI blobs. Scope by target files and process context because the API is ubiquitous.
- Sysmon: No Sysmon event mapped
- ETW: Microsoft-Windows-Crypto-DPAPI
- Notes: DPAPI ETW success coverage varies and does not name the API; Sysmon has no DPAPI event. Correlate Protect-folder and browser credential-store access with the calling process.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Windows Credential Manager, browsers, Outlook, password managers, scheduled tasks, services and user-mode apps storing secrets.
Related APIs
- CryptProtectData — Crypt32.dll