When it is written
Windows writes 4693 when the Data Protection API (DPAPI) recovers a master key, if Audit DPAPI Activity is on. When DPAPI cannot decrypt a master key with the user's password, it sends the backup copy made when the key was created (4692) to a domain controller over an authenticated and encrypted RPC call; the domain controller decrypts it with the domain's DPAPI private key and returns it. Microsoft names the cases in which the user's new password no longer opens the old master keys: a forgotten password, a password reset by an administrator, and a reset made from another device. An ordinary password change does not need recovery, because DPAPI re-encrypts the master keys under the new password when the user changes it.
The event is written on the computer that holds the master key, which can be a domain controller, a member server or a workstation; the domain controller that was contacted is named in the event. A recovery that fails is an Audit Failure event.
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| Computer | Audit | Note |
|---|---|---|
| Domain controllers | Success if needed and Failure if needed | Only 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 servers | Success if needed and Failure if needed | Only 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. |
| Workstations | Success if needed and Failure if needed | Only 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. |
auditpol /get /subcategory:"DPAPI Activity"auditpol /set /subcategory:"DPAPI Activity" /success:enable /failure:enableauditpol /get /subcategory:"{0CCE922D-69AE-11D9-BED3-505054503030}"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.
| Field | What it holds | Since |
|---|---|---|
Security IDSubjectUserSidSubject | SID of the account that requested the recovery, the owner of the master key. Event Viewer resolves it to an account name when it can. | v0 |
Account NameSubjectUserNameSubject | Name of that account. | v0 |
Account DomainSubjectDomainNameSubject | Domain 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 IDSubjectLogonIdSubject | Hexadecimal ID of the logon session that needed the master key. It matches the Logon ID of the 4624 event on the same computer. | v0 |
Key IdentifierMasterKeyIdKey Information | GUID of the master key that was recovered (shown as Key Identifier). The 4692 that backed the key up carries the same value. | v0 |
Recovery ServerRecoveryReasonKey Information | Hexadecimal code of the recovery reason. Microsoft documents no values for it (its sample event shows 0x5c005c). Event Viewer shows this field under the label Recovery Server, because the event's message swaps the two labels, which Microsoft notes. | v0 |
Recovery Key IDRecoveryKeyIdKey Information | GUID of the recovery key used for the recovery (shown as Recovery Key ID). Microsoft notes that it may not be captured, in which case the field is empty, as in its sample event. | v0 |
Recovery ReasonRecoveryServerKey Information | Computer asked to decrypt the backup copy, typically a domain controller's DNS name. Event Viewer shows it under the label Recovery Reason because of the swapped labels; in the XML it is this field. | v0 |
Status CodeFailureIdStatus Information | Result of the recovery (shown as Status Code), in hexadecimal. Microsoft gives 0x380000 as the typical value of success events. | v0 |
Values to know
Status Code FailureId
| Value | Meaning | Signal |
|---|---|---|
0x380000 | SuccessThe value Microsoft gives as typical for success events. | Expected |
Any other value | The recovery failedWritten as an Audit Failure event. | Failure |
Recovery Reason RecoveryServer
| Value | Meaning | Signal |
|---|---|---|
A domain controller's DNS name | The domain controller that decrypted the backup copyMicrosoft says that on a domain-joined computer this should typically be a domain controller's DNS name (it refers to the label Recovery Reason, under which Event Viewer shows this field). | Expected |
Anything else | Not a domain controller of your domainWorth checking against Microsoft's expectation above. | Worth knowing |
Volume and noise
Microsoft rates Audit DPAPI Activity Low and calls 4693 an informational event that is mainly used to troubleshoot DPAPI. It should be rare: it follows password resets (users who forgot their password, help desk resets) and appears on the computers where the account's earlier DPAPI data is opened after the reset.
Keeping it manageable
- No rule of the library reads 4693. Keep every one where you collect it: the volume is low, and each event shows that an account's earlier secrets were opened through the domain backup instead of with the account's own password.
- Read it next to the domain controllers' 4724 for the same account. A recovery on the user's own computer shortly after a requested reset is the expected sequence; for a privileged account whose reset nobody asked for, the computers that recovered its master keys are where its saved secrets were opened.
- Join it to 4624 through
SubjectLogonIdon the same computer to find the logon session that opened the data and, for a remote logon, where it came from. - Parse the XML rather than the message: Event Viewer shows the domain controller's name under the label Recovery Reason and the reason code under Recovery Server (see the fields).
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>4693</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">0x6a91d3</Data>
<Data Name="MasterKeyId">3b8f2d61-9a4c-4e7b-b1d5-6c0e7f2a9d34</Data>
<Data Name="RecoveryReason">0x5c005c</Data>
<Data Name="RecoveryServer">DC01.corp.example.com</Data>
<Data Name="RecoveryKeyId"></Data>
<Data Name="FailureId">0x380000</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
Why does event 4693 show a domain controller under Recovery Reason?
The event's message swaps two labels, which Microsoft notes on its event page. The domain controller's name is in the XML field RecoveryServer but appears in Event Viewer under Recovery Reason, and the hexadecimal reason code appears under Recovery Server. Read the XML field names when you parse the event.
Does a password change write 4693?
No. When a user changes the password, DPAPI re-encrypts the master keys under the new one, so no recovery is needed. Recovery is for the cases in which the new password cannot open the old master keys, which Microsoft lists as a forgotten password, an administrative reset and a reset from another device.
What does a 4693 after a password reset tell me?
That whoever logged on with the new password on that computer had the account's earlier DPAPI-protected data, such as saved credentials and private keys, opened through the domain backup. For the real user after a requested reset this is expected. Microsoft's description of DPAPI names tricking an administrator into resetting a user's password as a way to reach that data, so a recovery after a reset nobody requested deserves the same attention as the reset.