Microsoft-Windows-Crypto-DPAPI

EventTitleChannelSampleRule
1DPAPI created Master key.OperationalYN
2DPAPI deleted Master key.OperationalNN
3Master key access failed.OperationalYN
4Password Change triggered.OperationalNN
5Synchronization of Master keys triggered.OperationalYN
4097DPAPI BackUp service startedBackUpKeySvcYN
4098DPAPI BackUp service stoppedBackUpKeySvcNN
4099DPAPI BackUp service setup of preferred backup keys failed.BackUpKeySvcYN
8193System credentials creation in LSASS failed.DebugNN
8194DPAPI Master key file open failed.DebugYN
8195Master key encryption in memory failedDebugNN
8196Master key decryption in memory failedOperationalYN
8197DPAPI Protect failed.DebugYN
8198DPAPI Unprotect failed.OperationalYN
8199Synchronization of Master keys failed.OperationalNN
8200Master key's record successfully logged to Diagnostic file.OperationalYN
8201Master key's record failed to log to Diagnostic file.OperationalNN
8202Master Key decryption failed but a record of this key can be found in the …OperationalNN
8203Master Key decryption failed because no record of this key can be found in the …OperationalNN
8204Master Key decryption failed because the encryption cred mismatches the …OperationalNN
8205Master Key decryption failed but the encryption cred matches the decryption …OperationalNN
8206CredHist file decryption failedOperationalNN
8207Diagnostic File operation received a NULL credential key.OperationalNN
12289DPAPI found credential key.OperationalYN
12290Credential key does not exist.OperationalYN
16385DPAPIDefInformationEventDebugYN
16386DPAPI tried to backup its master key.OperationalNN
16387DPAPI tried to backup its master key.OperationalYN

Event ID 1: DPAPI created Master key.

#
Channel
Operational
Level
Informational
Task
MasterKeyOperation

Message #

DPAPI created Master key.

 	GUID: %1
 	User Storage Area: %2

Fields #

NameDescription
MasterKeyGUID GUIDGUID.
UserStorage UnicodeStringUser Storage Area.

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-Crypto-DPAPI",
    "guid": "{89FE8F40-CDCE-464E-8217-15EF97D4C7C3}",
    "event_source_name": "",
    "event_id": 1,
    "version": 0,
    "level": 4,
    "task": 2,
    "opcode": 0,
    "keywords": -9223372036854775806,
    "time_created": "2026-06-13T13:36:48.4202398+00:00",
    "event_record_id": 74,
    "correlation": {
      "ActivityID": "{AA49AB17-FAF4-0001-7CAB-49AAF4FADC01}"
    },
    "execution": {
      "process_id": 736,
      "thread_id": 7832
    },
    "channel": "Microsoft-Windows-Crypto-DPAPI/Operational",
    "computer": "telemetry-DC-d.cell-d.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "MasterKeyGUID": "{097f72cf-d3d1-4e88-b670-11717d568e8a}",
    "UserStorage": "C:\\Windows\\ServiceProfiles\\MSSQL$MICROSOFT##WID\\AppData\\Roaming\\Microsoft\\Protect\\S-1-5-80-1184457765-4068085190-3456807688-2200952327-3769537534\\"
  },
  "message": "DPAPI created Master key.\r\n\r\n \tGUID:\t{097f72cf-d3d1-4e88-b670-11717d568e8a}\r\n \tUser Storage Area:\tC:\\Windows\\ServiceProfiles\\MSSQL$MICROSOFT##WID\\AppData\\Roaming\\Microsoft\\Protect\\S-1-5-80-1184457765-4068085190-3456807688-2200952327-3769537534\\\r\n"
}

Event ID 2: DPAPI deleted Master key.

#
Channel
Operational
Task
MasterKeyOperation

Message #

DPAPI deleted Master key.

 	GUID: %1
 	User Storage Area: %2

Fields #

NameDescription
MasterKeyGUID UnicodeString
UserStorage UnicodeString

Event ID 3: Master key access failed.

#
Channel
Operational
Level
Informational
Task
MasterKeyOperation

Message #

Master key access failed.

 	GUID: %1
 	Success: %2
 	Last error: %3
 	Master key disposition: %3

Fields #

NameDescription
MasterKeyGUID GUID
Success Boolean
LastError HexInt32
MasterKeyDisposition HexInt32

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-Crypto-DPAPI",
    "guid": "{89FE8F40-CDCE-464E-8217-15EF97D4C7C3}",
    "event_source_name": "",
    "event_id": 3,
    "version": 0,
    "level": 4,
    "task": 2,
    "opcode": 0,
    "keywords": -9223372036854775806,
    "time_created": "2026-05-28T18:29:50.6476257+00:00",
    "event_record_id": 43,
    "correlation": {
      "ActivityID": "{AFDF3271-EE92-0002-8732-DFAF92EEDC01}"
    },
    "execution": {
      "process_id": 716,
      "thread_id": 1720
    },
    "channel": "Microsoft-Windows-Crypto-DPAPI/Operational",
    "computer": "telemetry-DC-d.cell-d.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "MasterKeyGUID": "{5c91a8ca-6778-4e10-bd5c-52d13d4ddb51}",
    "Success": "false",
    "LastError": "0x0",
    "MasterKeyDisposition": "0x3"
  },
  "message": "Master key access failed.\r\n\r\n \tGUID:\t\t\t{5c91a8ca-6778-4e10-bd5c-52d13d4ddb51}\r\n \tSuccess:\t\t\tfalse\r\n \tLast error:\t\t0x0\r\n \tMaster key disposition:\t0x0\r\n"
}

Event ID 4: Password Change triggered.

#
Channel
Operational
Task
MasterKeyOperation

Message #

Password Change triggered.

 	Status: %1

Fields #

NameDescription
Status HexInt32NTSTATUS reference

Event ID 5: Synchronization of Master keys triggered.

#
Channel
Operational
Level
Informational
Task
MasterKeyOperation

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-Crypto-DPAPI",
    "guid": "{89FE8F40-CDCE-464E-8217-15EF97D4C7C3}",
    "event_source_name": "",
    "event_id": 5,
    "version": 0,
    "level": 4,
    "task": 2,
    "opcode": 0,
    "keywords": -9223372036854775806,
    "time_created": "2026-05-29T16:33:59.0826077+00:00",
    "event_record_id": 110,
    "correlation": {
      "ActivityID": "{C6821FB2-EF88-0001-1820-82C688EFDC01}"
    },
    "execution": {
      "process_id": 812,
      "thread_id": 3340
    },
    "channel": "Microsoft-Windows-Crypto-DPAPI/Operational",
    "computer": "telemetry-DC-a.cell-a.ludus.domain",
    "security": {
      "user_id": "S-1-5-21-1006758700-2167138679-1475694448-1105"
    }
  },
  "event_data": {},
  "message": "Synchronization of Master keys triggered."
}

Event ID 4097: DPAPI BackUp service started

#
Channel
BackUpKeySvc
Level
Informational
Task
BackUpServiceOperation

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-Crypto-DPAPI",
    "guid": "{89FE8F40-CDCE-464E-8217-15EF97D4C7C3}",
    "event_source_name": "",
    "event_id": 4097,
    "version": 0,
    "level": 4,
    "task": 1,
    "opcode": 0,
    "keywords": 4611686018427387905,
    "time_created": "2026-05-29T16:32:50.8059877+00:00",
    "event_record_id": 14,
    "correlation": {
      "ActivityID": "{C6821FB2-EF88-0001-1820-82C688EFDC01}"
    },
    "execution": {
      "process_id": 812,
      "thread_id": 816
    },
    "channel": "Microsoft-Windows-Crypto-DPAPI/BackUpKeySvc",
    "computer": "telemetry-DC-a.cell-a.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {},
  "message": "DPAPI BackUp service started"
}

Event ID 4098: DPAPI BackUp service stopped

#
Channel
BackUpKeySvc
Task
BackUpServiceOperation

Event ID 4099: DPAPI BackUp service setup of preferred backup keys failed.

#
Channel
BackUpKeySvc
Level
Error
Task
BackUpServiceOperation

Message #

DPAPI BackUp service setup of preferred backup keys failed.
 	%1
 	Error code: %2

Fields #

NameDescription
FailureReason UnicodeString
Known values
%%2304
An Error occured during Logon.
%%2305
The specified user account has expired.
%%2306
The NetLogon component is not active.
%%2307
Account locked out.
%%2308
The user has not been granted the requested logon type at this machine.
%%2309
The specified account's password has expired.
%%2310
Account currently disabled.
%%2311
Account logon time restriction violation.
%%2312
User not allowed to logon at this computer.
%%2313
Unknown user name or bad password.
%%2314
Domain sid inconsistent.
%%2315
Smartcard logon is required and was not used.
Status HexInt32Error code. NTSTATUS reference

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-Crypto-DPAPI",
    "guid": "{89FE8F40-CDCE-464E-8217-15EF97D4C7C3}",
    "event_source_name": "",
    "event_id": 4099,
    "version": 0,
    "level": 2,
    "task": 1,
    "opcode": 0,
    "keywords": 4611686018427387905,
    "time_created": "2026-05-28T00:58:55.8186179+00:00",
    "event_record_id": 3,
    "correlation": {
      "ActivityID": "{601F25A9-EE3B-0001-1626-1F603BEEDC01}"
    },
    "execution": {
      "process_id": 680,
      "thread_id": 4288
    },
    "channel": "Microsoft-Windows-Crypto-DPAPI/BackUpKeySvc",
    "computer": "telemetry-DC-d.cell-d.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "FailureReason": "Getting preferred backup key GUID failed.",
    "Status": "0xc0000034"
  },
  "message": "DPAPI BackUp service setup of preferred backup keys failed.\r\n \tGetting preferred backup key GUID failed.\r\n \tError code: 0xC0000034\r\n"
}

Event ID 8193: System credentials creation in LSASS failed.

#
Channel
Debug
Task
MasterKeyOperation

Message #

System credentials creation in LSASS failed. 

 	Status: %1

Fields #

NameDescription
Status HexInt32NTSTATUS reference

Event ID 8194: DPAPI Master key file open failed.

#
Channel
Debug
Level
Error
Task
MasterKeyOperation

Message #

DPAPI Master key file open failed.

 	FileName: %1
 	Access: %2

Fields #

NameDescription
FileName UnicodeString
Access HexInt32

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-Crypto-DPAPI",
    "guid": "89FE8F40-CDCE-464E-8217-15EF97D4C7C3",
    "event_source_name": "",
    "event_id": 8194,
    "version": 0,
    "level": 2,
    "task": 2,
    "opcode": 0,
    "keywords": 2305843009213693954,
    "time_created": "2026-03-13T22:00:14.597294+00:00",
    "event_record_id": 302,
    "correlation": {
      "ActivityID": "FEA40379-5168-4493-AA3C-6999C3C385A3"
    },
    "execution": {
      "process_id": 984,
      "thread_id": 4348
    },
    "channel": "Microsoft-Windows-Crypto-DPAPI/Debug",
    "computer": "LAB-WIN11.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "FileName": "SYNCHIST",
    "Access": "0x80000000"
  },
  "message": ""
}

Event ID 8195: Master key encryption in memory failed

#
Channel
Debug
Task
MasterKeyOperation

Event ID 8196: Master key decryption in memory failed

#
Channel
Operational
Level
Error
Task
MasterKeyOperation

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-Crypto-DPAPI",
    "guid": "{89FE8F40-CDCE-464E-8217-15EF97D4C7C3}",
    "event_source_name": "",
    "event_id": 8196,
    "version": 0,
    "level": 2,
    "task": 2,
    "opcode": 0,
    "keywords": -9223372036854775806,
    "time_created": "2026-05-28T03:43:48.0257120+00:00",
    "event_record_id": 31,
    "correlation": {
      "ActivityID": "{601F25A9-EE3B-0001-1626-1F603BEEDC01}"
    },
    "execution": {
      "process_id": 680,
      "thread_id": 5384
    },
    "channel": "Microsoft-Windows-Crypto-DPAPI/Operational",
    "computer": "telemetry-DC-d.cell-d.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {},
  "message": "Master key decryption in memory failed"
}

Event ID 8197: DPAPI Protect failed.

#
Channel
Debug
Level
Error
Task
DataProtectionOperation

Message #

DPAPI Protect failed .

 	Status: %1
 	ReasonForFailure: %2

Fields #

NameDescription
Status HexInt32NTSTATUS reference
ReasonForFailure UInt32

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-Crypto-DPAPI",
    "guid": "89FE8F40-CDCE-464E-8217-15EF97D4C7C3",
    "event_source_name": "",
    "event_id": 8197,
    "version": 0,
    "level": 2,
    "task": 4,
    "opcode": 0,
    "keywords": 2305843009213693956,
    "time_created": "2026-03-13T20:16:23.515882+00:00",
    "event_record_id": 38,
    "correlation": {
      "ActivityID": "8B83AF9E-B321-0001-1AB0-838B21B3DC01"
    },
    "execution": {
      "process_id": 968,
      "thread_id": 8876
    },
    "channel": "Microsoft-Windows-Crypto-DPAPI/Debug",
    "computer": "LAB-DC01.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "Status": "0x2",
    "ReasonForFailure": 6
  },
  "message": ""
}

Event ID 8198: DPAPI Unprotect failed.

#
Channel
Operational
Level
Error
Task
DataProtectionOperation

Message #

DPAPI Unprotect failed .

 	Status: %1
 	ReasonForFailure: %2

Fields #

NameDescription
Status HexInt32NTSTATUS reference
ReasonForFailure UInt32

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-Crypto-DPAPI",
    "guid": "89FE8F40-CDCE-464E-8217-15EF97D4C7C3",
    "event_source_name": "",
    "event_id": 8198,
    "version": 0,
    "level": 2,
    "task": 4,
    "opcode": 0,
    "keywords": 9223372036854775812,
    "time_created": "2026-03-13T20:16:26.151897+00:00",
    "event_record_id": 178,
    "correlation": {
      "ActivityID": "8B83AF9E-B321-0001-1AB0-838B21B3DC01"
    },
    "execution": {
      "process_id": 968,
      "thread_id": 7192
    },
    "channel": "Microsoft-Windows-Crypto-DPAPI/Operational",
    "computer": "LAB-DC01.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "Status": "0x91012",
    "ReasonForFailure": 0
  },
  "message": ""
}

Event ID 8199: Synchronization of Master keys failed.

#
Channel
Operational
Task
MasterKeyOperation

Message #

Synchronization of Master keys failed. 

 	Credential Key Identifier: %1
 	User Name: %2
 	User Sid: %3

Fields #

NameDescription
CredKeyIdentifier Binary
UserName UnicodeString
UserSid SID

Event ID 8200: Master key's record successfully logged to Diagnostic file.

#
Channel
Operational
Level
Informational
Task
DiagnosticFileCheck

Message #

Master key's record successfully logged to Diagnostic file.

 	GUID: %1
 	EncryptCredID: %2
 	EncryptCredKey: %3

Fields #

NameDescription
MasterKeyGUID GUIDGUID.
EncryptCredID GUID
EncryptCredKey Binary

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-Crypto-DPAPI",
    "guid": "89FE8F40-CDCE-464E-8217-15EF97D4C7C3",
    "event_source_name": "",
    "event_id": 8200,
    "version": 0,
    "level": 4,
    "task": 32,
    "opcode": 0,
    "keywords": 9223372036854775840,
    "time_created": "2023-11-06T06:23:22.525334+00:00",
    "event_record_id": 52,
    "correlation": {
      "ActivityID": "626F7C94-1079-0002-5F7D-6F627910DA01"
    },
    "execution": {
      "process_id": 848,
      "thread_id": 888
    },
    "channel": "Microsoft-Windows-Crypto-DPAPI/Operational",
    "computer": "WinDev2310Eval",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "MasterKeyGUID": "8E755BE6-88EB-4BF9-8FCE-4B1358A2DEAC",
    "EncryptCredID": "00000000-0000-0000-0000-000000000000",
    "EncryptCredKey": "0163A518CE6A252FD79B229C27BC6BEB9D05710A"
  },
  "message": ""
}

References #

Event ID 8201: Master key's record failed to log to Diagnostic file.

#
Channel
Operational
Task
DiagnosticFileCheck

Message #

Master key's record failed to log to Diagnostic file.

 	GUID: %1

Fields #

NameDescription
MasterKeyGUID GUID

Event ID 8202: Master Key decryption failed but a record of this key can be found in the Diagnostic file.

#
Channel
Operational
Task
DiagnosticFileCheck

Message #

Master Key decryption failed but a record of this key can be found in the Diagnostic file.

 	GUID: %1

Fields #

NameDescription
MasterKeyGUID GUID

Event ID 8203: Master Key decryption failed because no record of this key can be found in the Diagnostic file.

#
Channel
Operational
Task
DiagnosticFileCheck

Message #

Master Key decryption failed because no record of this key can be found in the Diagnostic file.

 	GUID: %1

Fields #

NameDescription
MasterKeyGUID GUID

Event ID 8204: Master Key decryption failed because the encryption cred mismatches the decryption cred.

#
Channel
Operational
Task
DiagnosticFileCheck

Message #

Master Key decryption failed because the encryption cred mismatches the decryption cred.

 	GUID: %1
 	EncryptCredID: %2
 	EncryptCredKey: %3
 	DecryptCredID: %4
 	DecryptCredKey: %5

Fields #

NameDescription
MasterKeyGUID GUID
EncryptCredID GUID
EncryptCredKey Binary
DecryptCredID GUID
DecryptCredKey Binary

Event ID 8205: Master Key decryption failed but the encryption cred matches the decryption cred.

#
Channel
Operational
Task
DiagnosticFileCheck

Message #

Master Key decryption failed but the encryption cred matches the decryption cred.

 	GUID: %1
 	EncryptCredID: %2
 	EncryptCredKey: %3
 	DecryptCredID: %4
 	DecryptCredKey: %5

Fields #

NameDescription
MasterKeyGUID GUID
EncryptCredID GUID
EncryptCredKey Binary
DecryptCredID GUID
DecryptCredKey Binary

Event ID 8206: CredHist file decryption failed

#
Channel
Operational
Task
CredentialHistoryFileOperation

Event ID 8207: Diagnostic File operation received a NULL credential key.

#
Channel
Operational
Task
DiagnosticFileCheck

Event ID 12289: DPAPI found credential key.

#
Channel
Operational
Level
Informational
Task
CredentialKeyOperation

Message #

DPAPI found credential key.

 	Credential Key Identifier: %1
 	User Name: %2
 	User Sid: %3

Fields #

NameDescription
CredKeyIdentifier BinaryCredential Key Identifier.
UserName UnicodeString
UserSid SID

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-Crypto-DPAPI",
    "guid": "{89FE8F40-CDCE-464E-8217-15EF97D4C7C3}",
    "event_source_name": "",
    "event_id": 12289,
    "version": 0,
    "level": 4,
    "task": 8,
    "opcode": 0,
    "keywords": -9223372036854775800,
    "time_created": "2026-05-29T16:33:48.1518335+00:00",
    "event_record_id": 109,
    "correlation": {},
    "execution": {
      "process_id": 812,
      "thread_id": 3340
    },
    "channel": "Microsoft-Windows-Crypto-DPAPI/Operational",
    "computer": "telemetry-DC-a.cell-a.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "CredKeyIdentifier": "D144A85A3E7C1B5F923F0A3553749C082ED573FDEFAC49E97C7BB0BFF4D8BA17",
    "UserName": "cell-a\\domainadmin",
    "UserSid": "S-1-5-21-1006758700-2167138679-1475694448-1105"
  },
  "message": "DPAPI found credential key.\r\n\r\n \tCredential Key Identifier:\t0xD144A85A3E7C1B5F923F0A3553749C082ED573FDEFAC49E97C7BB0BFF4D8BA17\r\n \tUser Name:\tcell-a\\domainadmin\r\n \tUser Sid:\tS-1-5-21-1006758700-2167138679-1475694448-1105\r\n"
}

Event ID 12290: Credential key does not exist.

#
Channel
Operational
Level
Informational
Task
CredentialKeyOperation

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-Crypto-DPAPI",
    "guid": "89FE8F40-CDCE-464E-8217-15EF97D4C7C3",
    "event_source_name": "",
    "event_id": 12290,
    "version": 0,
    "level": 4,
    "task": 8,
    "opcode": 0,
    "keywords": 9223372036854775816,
    "time_created": "2026-02-10T04:20:55.655423+00:00",
    "event_record_id": 47,
    "correlation": {
      "ActivityID": "43A6D212-9A2A-0001-97D2-A6432A9ADC01"
    },
    "execution": {
      "process_id": 240,
      "thread_id": 880
    },
    "channel": "Microsoft-Windows-Crypto-DPAPI/Operational",
    "computer": "LAB-WIN11.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {},
  "message": ""
}

Event ID 16385: DPAPIDefInformationEvent

#
Channel
Debug
Also via
realtime ETW trace
Level
Informational
Task
DPAPIDefInformationTaskMessage

Fields #

NameDescription
OperationType UnicodeString
Known values
%%1904
New registry value created
%%1905
Existing registry value modified
%%1906
Registry value deleted
%%14674
Value Added
%%14675
Value Deleted
%%14680
Value Added With Expiration Time
%%14681
Value Deleted With Expiration Time
%%14688
Value Auto Deleted With Expiration Time
DataDescription UnicodeString
MasterKeyGUID GUID
Flags UInt32
ProtectionFlags UInt32
ReturnValue UInt32
CallerProcessStartKey UInt64
CallerProcessID UInt32
CallerProcessCreationTime UInt64
PlainTextDataSize UInt32

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-Crypto-DPAPI",
    "guid": "89FE8F40-CDCE-464E-8217-15EF97D4C7C3",
    "event_source_name": "",
    "event_id": 16385,
    "version": 0,
    "level": 4,
    "task": 64,
    "opcode": 0,
    "keywords": 2305843009213694016,
    "time_created": "2026-03-13T20:00:14.091877+00:00",
    "event_record_id": 1,
    "correlation": {
      "ActivityID": "8B83AF9E-B321-0001-1AB0-838B21B3DC01"
    },
    "execution": {
      "process_id": 968,
      "thread_id": 2796
    },
    "channel": "Microsoft-Windows-Crypto-DPAPI/Debug",
    "computer": "LAB-DC01.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "OperationType": "SPCryptProtect",
    "DataDescription": "CryptoAPI Private Key",
    "MasterKeyGUID": "136A714A-6B76-4E4F-A4DB-98C60F841100",
    "Flags": 4,
    "ProtectionFlags": 4,
    "ReturnValue": 0,
    "CallerProcessStartKey": 3377699720528945,
    "CallerProcessID": 9080,
    "CallerProcessCreationTime": 134179056135234796,
    "PlainTextDataSize": 388
  },
  "message": ""
}

Community Notes #

Exposes the DPAPI operations (protect/unprotect) and the calling process. Disabled by default. See this Google Security blog post: Detecting browser data theft using Windows Event Logs.

Event ID 16386: DPAPI tried to backup its master key.

#
Channel
Operational
Task
DPAPIMasterKeyBackup

Message #

DPAPI tried to backup its master key.
Fallback backup is enabled.

Fields #

NameDescription
fLegacy Boolean
fWeakCrypt Boolean
dwFallbackLastError UInt32
dwEncryptLastError UInt32
dwRestoreLastError UInt32

Event ID 16387: DPAPI tried to backup its master key.

#
Channel
Operational
Level
Informational
Task
DPAPIMasterKeyBackup_256

Message #

DPAPI tried to backup its master key.
Fallback backup is disabled.

Fields #

NameDescription
fLegacy Boolean
fWeakCrypt Boolean
dwLastError UInt32

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-Crypto-DPAPI",
    "guid": "{89FE8F40-CDCE-464E-8217-15EF97D4C7C3}",
    "event_source_name": "",
    "event_id": 16387,
    "version": 0,
    "level": 4,
    "task": 256,
    "opcode": 0,
    "keywords": -9223372036854775552,
    "time_created": "2026-04-17T20:04:41.3564432+00:00",
    "event_record_id": 774,
    "correlation": {
      "ActivityID": "{5D13569F-CEA5-0001-1F57-135DA5CEDC01}"
    },
    "execution": {
      "process_id": 1096,
      "thread_id": 1496
    },
    "channel": "Microsoft-Windows-Crypto-DPAPI/Operational",
    "computer": "JD-WIN11-22H2-1.ludus.domain",
    "security": {
      "user_id": "S-1-5-18"
    }
  },
  "event_data": {
    "fLegacy": "false",
    "fWeakCrypt": "false",
    "dwLastError": "58"
  },
  "message": "DPAPI tried to backup its master key.\r\nFallback backup is disabled."
}

Provenance

ETW provider GUID {89FE8F40-CDCE-464E-8217-15EF97D4C7C3}

Defined in dpapisrv.dll, which carries the event manifest.

  • WS2022-20348.4893, sample captured from a live trace, binary version 10.0.20348.2849, captured 2026-06-02 — Manifest XML pack, 1.9 MB
  • WS2022-20348.4893, schema read from the registered manifest, binary version 10.0.20348.2849, captured 2026-06-02 — Manifest XML pack, 1.9 MB
  • Win11-26200.6584, schema read from the registered manifest, binary version 10.0.26100.1, captured 2026-06-02 — Manifest XML pack, 2.0 MB