Home > Products > Windows Passwords > Windows Password Recovery > Screenshots > Forensic tools > DPAPI > DPAPI blob analysis
DPAPI blob analysis
25.04.2017
Reset Windows Password v7.1.0
RWP now can create new SAM user accounts and supports for Win 10 Creators Update
29.03.2017
Wireless Password Recovery v4.0.3
Some problems and bugs were fixed
17.03.2017
Windows Password Recovery 11.2
Some improvements and speed optimization
27.01.2017
Wireless Password Recovery v4.0
This version can recover multiple handshakes simultaneously almost without speed loss

Articles and video

You may find it helpful to read our articles on Windows security and password recovery examples. Video section contains a number of movies about our programs in action

Windows Password Recovery - DPAPI blob analysis


 A DPAPI blob is an opaque binary structure, which contains application's private data encrypted using DPAPI. Many Windows applications and subsystems store passwords, secrets and private data in DPAPI blobs. To create files with DPAPI blobs (for further analysis), use our DPAPI blob look-up utility.

Specify path to DPAPI blob
Selecting DPAPI blob

This is the file that was created by the blob search tool.
 

And proceed to analyzing data
Analysing DPAPI blob encryption

DPAPI blob is a binary data structure, which consists of the following consecutive attributes:

  • dwVersion - data structure version. Current data version - 1.
  • guidDefaultProvider - data encryption provider, used in encryption function calls, ensures compatibility of versions and organizes simple cryptological primitives. For example, you can set Blowfish or RC5 as a block cipher. Currently, Windows has the following default crypto provider: df9d8cd0-1501-11d1-8c7a-00c04fc297eb, which corresponds with the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Protect\Providers\df9d8cd0-1501-11d1-8c7a-00c04fc297eb.
  • guidMasterKey - Master Key GUID, which data is encrypted with. To decrypt data within a DPAPI blob, first of all you must decrypt the Master Key with the name set in the binary structure guidMasterKey. Only one Master Key can be attached to a DPAPI blob.
  • dwFlags - various flags. For example, the bit 3 indicates that the decryption of the data is to be carried out under the SYSTEM account. The bit (dwFlags&0x20000000) seems to be always on. Etc.
  • szDataDescription - data descriptor, which is set by the optional parameter LPCWSTR szDataDescr in the function CryptProtectData.
  • algCrypt - data encryption algorithm. By default, Windows 7 uses AES 256 (which corresponds to 0х6610 in the hexadecimal or 26128 in the decimal notation), Windows XP - 3DES, Windows 2000 - RC4.
  • dwCryptAlgLen - key length in the encryption algorithm.
  • pHMACKey - HMAC key 1.
  • pSalt - salt (optional).
  • algHash - hashing algorithm. By default, Windows 7 uses SHA 512, Windows XP and Windows 2000 - SHA1.
  • dwHashAlgLen - hash length in the hashing function.
  • pHMACKey2 - HMAC key 2.
  • pData - actual encrypted data.
  • pSignHash - digital signature for verifying data integrity.