ExtraHop named a Leader in the 2025 Forrester Wave™: Network Analysis And Visibility Solutions

Search
  • Platformchevron right
  • Solutionschevron right
  • Modern NDRchevron right
  • Resourceschevron right
  • Companychevron right

DETECTION OVERVIEW

DPAPI Masterkey Export Attempt

Risk Factors

An attacker must have domain administrator privileges, knowledge of Active Directory (AD), and know how to decrypt Data Protection API (DPAPI) secrets. Attackers with sufficient privileges can export masterkeys from domain controllers (DCs) with public attack tools. Attackers that successfully retrieve a masterkey can decrypt sensitive data for any domain user.

Kill Chain

Actions on Objective
Detection diagram
Next in Actions on Objective: Data Exfiltration Activity

Attack Background

The DPAPI is built into Windows operating systems and enables fast encryption of sensitive data. The DPAPI creates a unique masterkey for each user. In an AD environment, the masterkey can be decrypted with a user domain password to access sensitive data, such as system passwords or certificates.

An attacker with domain administrator privileges can leverage attack tools such as SharpDPAPI to export the masterkey from a DC. The attacker sends an SMB READ request to the victim device that targets the DPAPI masterkey location for the user. The DPAPI also creates a backup key, which decrypts the masterkey for any user in an AD domain. Because this attack is often performed after a backup key is stolen, the remote retrieval of a masterkey indicates a broader compromise is occurring.

Mitigation Options

Enforce strong user authentication and endpoint security policies

MITRE ATT&CK ID

What else can RevealX do for you?