1. Resources
  2. Detection sources
  3. Event ID 4692

Event ID 4692: Backup of data protection master key was attempted

Written on a domain member when DPAPI backs up one of a user's master keys with the domain's DPAPI key on a domain controller, at every new master key. Context for password resets (4724) and for the logon session behind it.

Log source
Windows Security log
Detection value
Context
Volume
Low
Last updated
Audit subcategory
Audit DPAPI Activity (Detailed Tracking, Success and Failure)
Logged on
All Windows computers
Event versions
0
Detects
Not read by our detection rules yet

When it is written

Windows writes 4692 when the Data Protection API (DPAPI) backs up a master key, if Audit DPAPI Activity is on. A master key is the secret DPAPI derives the keys from that protect a user's saved credentials, private keys and other protected data; it is itself encrypted with the user's password. On a domain member, DPAPI also encrypts each new master key with the public half of a key pair that the domain controllers keep for DPAPI alone, obtained over an authenticated and encrypted RPC call, and stores that backup copy next to the master key in the user's profile. Microsoft says the event is written for every backup attempt, including the one made whenever a new master key is generated, and that a domain member also retries the backup periodically.

The event is written on the computer whose DPAPI client makes the backup, so domain controllers, member servers and workstations all write it; Recovery Server names the domain controller that was contacted. A backup that fails is an Audit Failure event with the error in Status Code.

How to turn it on

Advanced audit policy subcategory Audit DPAPI Activity, Success and Failure. Set it in a Group Policy object linked to the computers that write the event:

Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Policy Configuration > Audit Policies > Detailed Tracking > Audit DPAPI Activity
Microsoft's recommendation per computer role
ComputerAuditNote
Domain controllersSuccess if needed and Failure if neededOnly if needed, in both baselines. Microsoft says the events are mostly informational and used mainly to troubleshoot DPAPI, and that malicious activity is hard to detect with them.
Member serversSuccess if needed and Failure if neededOnly if needed, in both baselines. Microsoft says the events are mostly informational and used mainly to troubleshoot DPAPI, and that malicious activity is hard to detect with them.
WorkstationsSuccess if needed and Failure if neededOnly if needed, in both baselines. Microsoft says the events are mostly informational and used mainly to troubleshoot DPAPI, and that malicious activity is hard to detect with them.
Check the current setting
auditpol /get /subcategory:"DPAPI Activity"
Based on vendor documentation.
Turn it on (local policy; a domain GPO overrides it)
auditpol /set /subcategory:"DPAPI Activity" /success:enable /failure:enable
Based on vendor documentation.
The same on a Windows in another display language
auditpol /get /subcategory:"{0CCE922D-69AE-11D9-BED3-505054503030}"
Based on vendor documentation.

Run the commands in an elevated prompt on a computer that writes the event. Subcategory settings take effect only when the security option Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings is enabled (the default), and a Group Policy object that sets advanced audit policy replaces local changes at its next refresh. Microsoft's advanced audit policy reference

Fields

In Event Viewer order. The field names are those of the event XML, from the event template that ships with Windows.

FieldWhat it holdsSince
Security IDSubjectUserSidSubjectSID of the account that requested the backup, the owner of the master key. Event Viewer resolves it to an account name when it can.v0
Account NameSubjectUserNameSubjectName of that account.v0
Account DomainSubjectDomainNameSubjectDomain of the account as a NetBIOS or DNS name, the computer name for a local account, or NT AUTHORITY for well-known principals.v0
Logon IDSubjectLogonIdSubjectHexadecimal ID of the account's logon session. It matches the Logon ID of the 4624 event on the same computer.v0
Key IdentifierMasterKeyIdKey InformationGUID of the master key that was backed up (shown as Key Identifier). DPAPI names each master key file in the user's profile after this ID, and a later 4693 for the same key carries the same value.v0
Recovery ServerRecoveryServerKey InformationComputer contacted for the backup, typically the DNS name of a domain controller. Microsoft notes that it may not be captured, in which case the field is empty.v0
Recovery Key IDRecoveryKeyIdKey InformationGUID of the recovery key used for the backup (shown as Recovery Key ID). Microsoft describes the recovery key as an RSA key pair that DPAPI creates with the first master key or for a password reset disk. Typically empty in failure events.v0
Status CodeFailureReasonStatus InformationResult of the backup (shown as Status Code), in hexadecimal. 0x0 on success, otherwise the error code.v0

Values to know

Status Code FailureReason

ValueMeaningSignal
0x0SuccessExpected
Any other valueThe backup failedWritten as an Audit Failure event. Microsoft suggests converting the code to decimal and reading it with net helpmsg.Failure

Recovery Server RecoveryServer

ValueMeaningSignal
A domain controller's DNS nameThe domain controller that was contacted for the backupExpected
EmptyNot capturedMicrosoft notes that the name is not always captured, as in its own sample event.Worth knowing

Volume and noise

Microsoft rates Audit DPAPI Activity Low and calls 4692 an informational event that is mainly used to troubleshoot DPAPI. Expect it when a user first protects data on a computer, when a master key is replaced (Microsoft's description of DPAPI gives three months as the hard-coded lifetime of a master key), and on the periodic retries.

Failures should be rare. Microsoft documents that on Windows 10 and later, and on updated Windows 8.1 and Windows Server 2012 R2, the backup needs a writable domain controller: read-only domain controllers do not handle it, and a user who logs on for the first time where only read-only domain controllers can be reached cannot get a first master key.

Keeping it manageable

  • No rule of the library reads 4692, and its volume is low. Collect it from the computers whose users' secrets matter most (administrators' workstations, servers where privileged accounts log on) rather than everywhere.
  • Keep failures (FailureReason other than 0x0): Microsoft ties failed backups to computers that cannot reach a writable domain controller.
  • Join it to 4624 through SubjectLogonId on the same computer to see which logon session made the backup.
  • Turning the subcategory on also turns on 4694 and 4695, which DPAPI writes only for data that an application protected with auditing requested.

Sample event

Version 0, with made-up values.

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-a5ba-3e3b0328c30d}" />
    <EventID>4692</EventID>
    <Version>0</Version>
    <Level>0</Level>
    <Task>13314</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8020000000000000</Keywords>
    <TimeCreated SystemTime="2026-11-18T09:30:12.4567890Z" />
    <EventRecordID>1048576</EventRecordID>
    <Correlation />
    <Execution ProcessID="712" ThreadID="2408" />
    <Channel>Security</Channel>
    <Computer>WS0142.corp.example.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="SubjectUserSid">S-1-5-21-1004336348-1177238915-682003330-1105</Data>
    <Data Name="SubjectUserName">alice</Data>
    <Data Name="SubjectDomainName">CORP</Data>
    <Data Name="SubjectLogonId">0x4c2e17</Data>
    <Data Name="MasterKeyId">3b8f2d61-9a4c-4e7b-b1d5-6c0e7f2a9d34</Data>
    <Data Name="RecoveryServer">DC01.corp.example.com</Data>
    <Data Name="RecoveryKeyId">8e1a5c37-2f6b-4d90-a7e4-91c3d0b6f258</Data>
    <Data Name="FailureReason">0x0</Data>
  </EventData>
</Event>

Attacks this event reveals

No detection rule or detection logic in our library reads this event yet. It is documented here because it sits next to the events they read: it explains them, follows from them or is the trace a defender looks for around them (see Related events).

Frequently asked questions

Does event 4692 mean someone took the domain's DPAPI backup key?

No. Microsoft describes 4692 as a client backing up one of its own master keys with the domain's public DPAPI key, and calls it informational. The domain's backup keys are secret objects in the System container of the domain partition; Microsoft treats them as some of the most sensitive data in the domain, because whoever holds them can decrypt any domain user's DPAPI data.

Why does the same user get a new 4692 every few months?

DPAPI replaces a master key when it expires (Microsoft's description of DPAPI gives three months as the hard-coded lifetime) and backs up each new one with the domain key. Old master keys are kept, so data protected under them can still be opened.

Why do 4692 failures appear on computers in a branch office?

Microsoft documents that the domain backup needs a writable domain controller, because read-only domain controllers do not handle it. Where only read-only domain controllers can be reached, current Windows fails the backup, and a user logging on there for the first time cannot get a first master key. Check that the computer can reach a writable domain controller.

References