DPAPI Abuse
Also called Data Protection API abuse.
Decrypting secrets the Windows Data Protection API protected.
What it is
The decryption of secrets that Windows protected with the Data Protection API (saved browser passwords, credentials, and vault entries) by recovering the user's master key or the domain DPAPI backup key. With those keys an attacker unlocks the protected blobs offline.
Why it matters
DPAPI underpins a great deal of stored credential protection, so recovering its keys exposes a trove of saved passwords and tokens at once, and the domain backup key can decrypt any user's secrets. Access to that backup key is a domain-wide credential exposure.
In practice
After compromising a workstation, an attacker uses the user's master key to decrypt DPAPI-protected browser logins and pivot with the recovered passwords.
What to look for
- Access to Credentials and Protect folders under user profiles by unusual processes.
- Domain backup key retrieval from a domain controller.
- Browser credential files read by tools other than the browser.
Common mistake
Assuming DPAPI data is safe because it is encrypted. With the user's context or the domain backup key, it decrypts.
Practice it nearby
CyberKit has no tool for this term itself. These are the closest places to practice it.
- Cloud Identity Case
A cloud account acting out of character: read its CloudTrail records and sign-ins, name the attack, and pick the containment.
- Event Log Reader
Read a binary .evtx file or pasted event XML, with logon types, NTSTATUS codes and the Keywords mask decoded.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
CrowdStrike Falcon Commercial
An EDR agent that records process, file and network activity on each host and flags this kind of behavior.
-
Microsoft Defender for Endpoint Commercial
Microsoft's EDR, with advanced hunting tables you can query for this activity across Windows, macOS and Linux.
-
Velociraptor Open source
Collects and hunts for artifacts across many hosts at once, often during live response. Our notes.
-
Sysmon Free
Free Windows logging of process starts, network connections and more, which many detections rely on. Our notes.
Read next
- LSASS Credential Theft: Scraping passwords, hashes, and tickets from the LSASS process.
- Pass-the-Cookie: Replaying a stolen session cookie to hijack an authenticated session.
- SAM/LSA Secrets Extraction: Pulling local hashes and service secrets from the registry.