Microsoft-Windows-Crypto-DPAPI
28 events across 3 channels
Event ID 1 — DPAPI created Master key.
#Description
DPAPI created Master key.
Message #
Fields #
| Name | Description |
|---|---|
MasterKeyGUID GUID | GUID. |
UserStorage UnicodeString | User 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": 9223372036854775810,
"time_created": "2023-11-06T06:23:22.512371+00:00",
"event_record_id": 51,
"correlation": {
"ActivityID": "626F7C94-1079-0002-5F7D-6F627910DA01"
},
"execution": {
"process_id": 848,
"thread_id": 932
},
"channel": "Microsoft-Windows-Crypto-DPAPI/Operational",
"computer": "WinDev2310Eval",
"security": {
"user_id": "S-1-5-18"
}
},
"event_data": {
"MasterKeyGUID": "8E755BE6-88EB-4BF9-8FCE-4B1358A2DEAC",
"UserStorage": "C:\\Windows\\system32\\Microsoft\\Protect\\S-1-5-18\\User\\"
},
"message": ""
}
References #
- Example event sourced from https://github.com/NextronSystems/evtx-baseline
Event ID 2 — DPAPI deleted Master key.
Event ID 3 — Master key access failed.
Event ID 4 — Password Change triggered.
Description
Password Change triggered.
Message #
Fields #
| Name | Description |
|---|---|
Status HexInt32 | — NTSTATUS reference |
Event ID 5 — Synchronization of Master keys triggered.
#Description
Synchronization of Master keys triggered.
Message #
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": 9223372036854775810,
"time_created": "2022-04-07T16:57:17.536444+00:00",
"event_record_id": 46,
"correlation": {
"ActivityID": "E0AAB88C-4A9F-0000-71B9-AAE09F4AD801"
},
"execution": {
"process_id": 664,
"thread_id": 824
},
"channel": "Microsoft-Windows-Crypto-DPAPI/Operational",
"computer": "WIN-FPV0DSIC9O6.lab.local",
"security": {
"user_id": "S-1-5-21-2121334350-1110938707-2888912545-500"
}
},
"event_data": {},
"message": ""
}
References #
- Example event sourced from https://github.com/NextronSystems/evtx-baseline
Event ID 4097 — DPAPI BackUp service started
#Description
DPAPI BackUp service started.
Message #
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": "2022-04-07T16:53:02.786035+00:00",
"event_record_id": 3,
"correlation": {
"ActivityID": "E0AAB88C-4A9F-0000-71B9-AAE09F4AD801"
},
"execution": {
"process_id": 664,
"thread_id": 668
},
"channel": "Microsoft-Windows-Crypto-DPAPI/BackUpKeySvc",
"computer": "WIN-FPV0DSIC9O6.lab.local",
"security": {
"user_id": "S-1-5-18"
}
},
"event_data": {},
"message": ""
}
References #
- Example event sourced from https://github.com/NextronSystems/evtx-baseline
Event ID 4098 — DPAPI BackUp service stopped
Description
DPAPI BackUp service stopped.
Message #
Event ID 4099 — DPAPI BackUp service setup of preferred backup keys failed.
#Description
DPAPI BackUp service setup of preferred backup keys failed.
Message #
Fields #
| Name | Description |
|---|---|
FailureReason UnicodeString | — Known values
|
Status HexInt32 | Error 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": "2022-04-07T17:32:00.129643+00:00",
"event_record_id": 5,
"correlation": {
"ActivityID": "E0AAB88C-4A9F-0000-71B9-AAE09F4AD801"
},
"execution": {
"process_id": 664,
"thread_id": 4812
},
"channel": "Microsoft-Windows-Crypto-DPAPI/BackUpKeySvc",
"computer": "WIN-FPV0DSIC9O6.lab.local",
"security": {
"user_id": "S-1-5-18"
}
},
"event_data": {
"FailureReason": "Getting preferred backup key GUID failed.",
"Status": "0xc0000034"
},
"message": ""
}
References #
- Example event sourced from https://github.com/NextronSystems/evtx-baseline
Event ID 8193 — System credentials creation in LSASS failed.
Description
System credentials creation in LSASS failed.
Message #
Fields #
| Name | Description |
|---|---|
Status HexInt32 | — NTSTATUS reference |
Event ID 8194 — DPAPI Master key file open failed.
Description
DPAPI Master key file open failed.
Message #
Fields #
| Name | Description |
|---|---|
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
Description
Master key encryption in memory failed.
Message #
Event ID 8196 — Master key decryption in memory failed
#Description
Master key decryption in memory failed.
Message #
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": 9223372036854775810,
"time_created": "2022-04-07T08:18:33.398223+00:00",
"event_record_id": 25,
"correlation": {
"ActivityID": "7AAB4249-4A57-0000-F449-AB7A574AD801"
},
"execution": {
"process_id": 648,
"thread_id": 4060
},
"channel": "Microsoft-Windows-Crypto-DPAPI/Operational",
"computer": "WIN-FPV0DSIC9O6.lab.local",
"security": {
"user_id": "S-1-5-18"
}
},
"event_data": {},
"message": ""
}
References #
- Example event sourced from https://github.com/NextronSystems/evtx-baseline
Event ID 8197 — DPAPI Protect failed.
Description
DPAPI Protect failed .
Message #
Fields #
| Name | Description |
|---|---|
Status HexInt32 | — NTSTATUS 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.
Description
DPAPI Unprotect failed .
Message #
Fields #
| Name | Description |
|---|---|
Status HexInt32 | — NTSTATUS 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.
Event ID 8200 — Master key's record successfully logged to Diagnostic file.
#Description
Master key's record successfully logged to Diagnostic file.
Message #
Fields #
| Name | Description |
|---|---|
MasterKeyGUID GUID | GUID. |
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 #
- Example event sourced from https://github.com/NextronSystems/evtx-baseline
Event ID 8201 — Master key's record failed to log to Diagnostic file.
Event ID 8202 — Master Key decryption failed but a record of this key can be found in the Diagnostic file.
Event ID 8203 — Master Key decryption failed because no record of this key can be found in the Diagnostic file.
Event ID 8204 — Master Key decryption failed because the encryption cred mismatches the decryption cred.
Event ID 8205 — Master Key decryption failed but the encryption cred matches the decryption cred.
Event ID 8206 — CredHist file decryption failed
Description
CredHist file decryption failed.
Message #
Event ID 8207 — Diagnostic File operation received a NULL credential key.
Description
Diagnostic File operation received a NULL credential key.
Message #
Event ID 12289 — DPAPI found credential key.
#Description
DPAPI found credential key.
Message #
Fields #
| Name | Description |
|---|---|
CredKeyIdentifier Binary | Credential 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": 9223372036854775816,
"time_created": "2023-11-05T22:32:20.183219+00:00",
"event_record_id": 60,
"correlation": {
"ActivityID": "E4DB489E-1037-0001-0C49-DBE43710DA01"
},
"execution": {
"process_id": 808,
"thread_id": 844
},
"channel": "Microsoft-Windows-Crypto-DPAPI/Operational",
"computer": "WinDev2310Eval",
"security": {
"user_id": "S-1-5-18"
}
},
"event_data": {
"CredKeyIdentifier": "1252116F853845A8FF2D58933C34AA9AF5F449F00879735FEE2F257A4036020E",
"UserName": "User",
"UserSid": "S-1-5-21-1992711665-1655669231-58201500-1000"
},
"message": ""
}
References #
- Example event sourced from https://github.com/NextronSystems/evtx-baseline
Event ID 12290 — Credential key does not exist.
Description
Credential key does not exist.
Message #
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
#Description
DPAPIDefInformationEvent.
Message #
Fields #
| Name | Description |
|---|---|
OperationType UnicodeString | — Known values
|
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.