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
Suspicion
high

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.

Sources and 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.

Open CryptUnprotectData in the interactive atlas