When it is written
Windows writes 5377 each time a user successfully restores Credential Manager credentials from a backup, typically with Restore Credentials in Credential Manager in Control Panel. The restored user names and passwords for other systems and websites go into the Windows Vault of the user who restored them, and the computer where that happens writes the event: domain controllers, member servers and workstations alike.
Subject is the user who restored the credentials. The event's own text says that a user, even an administrator, can restore credentials only into their own account. Microsoft lists it as a success event only. The backup that produced the file is event 5376, written on the computer where it was made.
No rule reads 5377 yet. Read it next to 5376 and the logon of the session (4624): a restore on a computer other than the one that made the backup means saved credentials moved between computers, and the accounts in them can now be used from the new one.
How to turn it on
Advanced audit policy subcategory Audit User Account Management, Success. 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 > Account Management > Audit User Account Management| Computer | Audit | Note |
|---|---|---|
| Domain controllers | Success and Failure | Microsoft's general and stronger baselines both recommend Success and Failure auditing. Microsoft calls the subcategory useful for watching critical domain accounts (domain admins, service accounts, database admins) and recommends Failure auditing mainly for invalid password change and reset attempts on domain accounts, failed changes of the DSRM password and failed SID History additions. |
| Member servers | Success and Failure | Both baselines recommend Success and Failure auditing. Microsoft recommends watching every change to local user accounts, especially the built-in local Administrator and other critical accounts, and Failure auditing mainly for invalid password change and reset attempts on local accounts. |
| Workstations | Success and Failure | Both baselines recommend Success and Failure auditing. Microsoft recommends watching every change to local user accounts, especially the built-in local Administrator and other critical accounts, and Failure auditing mainly for invalid password change and reset attempts on local accounts. |
auditpol /get /subcategory:"User Account Management"auditpol /set /subcategory:"User Account Management" /success:enableauditpol /get /subcategory:"{0CCE9235-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 restored the credentials, which is also the account they were restored into. Event Viewer resolves it to a name when it can. | v0 |
Account NameSubjectUserNameSubject | Name of that account. | v0 |
Account DomainSubjectDomainNameSubject | Domain of that account, or the computer name for a local account. NT AUTHORITY for well-known principals such as LOCAL SERVICE. | v0 |
Logon IDSubjectLogonIdSubject | Logon ID of the session that made the restore, in hexadecimal. The logon event of that session (4624) on the same computer carries the same value. | v0 |
BackupFileNameSubject | Full path of the backup file the credentials were read from (shown as BackupFileName). Version 1; Microsoft does not document the field. | v1 |
ProcessCreationTime | By its name, the creation time of the process that requested the restore. Together with ClientProcessId it identifies the process even if Windows later reuses the ID. Version 1; not shown in the message and not documented by Microsoft. | v1 |
ClientProcessId | By its name, the ID of the process that requested the restore, in decimal. Match it with the New Process ID of a 4688 on the same computer, which is hexadecimal there. Version 1; not shown in the message and not documented by Microsoft. | v1 |
Event versions
The Windows event template has two versions. Version 0 has the four subject fields. Version 1 adds the name of the backup file (BackupFileName) and the creation time and ID of the process that requested the restore (ProcessCreationTime, ClientProcessId). Microsoft's event page documents version 0 only and does not say which Windows release introduced version 1. The event message shows the backup file name; the two process fields appear only in the event's XML.
- Version 0: 4 fields
- Version 1: 7 fields, adds
BackupFileName,ProcessCreationTime,ClientProcessId
Values to know
Security ID SubjectUserSid
| Value | Meaning | Signal |
|---|---|---|
A user on a new or rebuilt computer, after a 5376 on the old one | A planned move of saved credentials | Expected |
An administrative or service account | Saved credentials of a privileged account were loaded on this computerThe credentials in the file now work from this computer without being typed. Check that the computer is one that account should use. | Worth knowing |
An account with no 5376 in your logs | The backup file came from elsewhereFind where the file was made, and by whom. | Worth knowing |
BackupFileName
| Value | Meaning | Signal |
|---|---|---|
The same path as a recent 5376 on this computer | A restore of a local backup | Expected |
A network path or a removable drive | The file came from outside the computerLook for the 5376 that produced it on another computer. | Worth knowing |
Volume and noise
Microsoft rates the volume of the subcategory as low, and 5377 should be rare: Microsoft says users very rarely restore Credential Manager credentials from a backup. Legitimate restores come from users setting up a new or rebuilt computer and from server rebuilds, such as the restore step of Microsoft's backup procedure for System Center Virtual Machine Manager.
Keeping it manageable
- Keep every 5377, from every computer: Microsoft recommends recording each one for local and domain accounts, because the action is rare and can point to malware or other malicious activity.
- Pair each 5377 with a 5376 for the same account. A restore with no backup event in your logs means the file came from a computer you do not collect, or from another account's backup.
- Match
SubjectLogonIdwith the logon event (4624) of the same computer to see whether the restore was made at the console or in a remote session, and from which address. - Compare
BackupFileNamewith the path in the 5376 events: a file read from a network share or a removable drive came from somewhere else. Version 1 only.
Sample event
Version 1, 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>5377</EventID>
<Version>1</Version>
<Level>0</Level>
<Task>13824</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>WKS057.corp.example.com</Computer>
<Security />
</System>
<EventData>
<Data Name="SubjectUserSid">S-1-5-21-1004336348-1177238915-682003330-1104</Data>
<Data Name="SubjectUserName">alice</Data>
<Data Name="SubjectDomainName">CORP</Data>
<Data Name="SubjectLogonId">0x3b17d2</Data>
<Data Name="BackupFileName">E:\saved-credentials.crd</Data>
<Data Name="ProcessCreationTime">2026-11-18T14:02:07.3318764Z</Data>
<Data Name="ClientProcessId">7412</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
What happens when Credential Manager credentials are restored?
The user names and passwords in the backup file are added to the Windows Vault of the user who restores them, and Credential Manager then supplies them automatically when that user connects to the systems and websites they belong to.
Can someone restore a backup into another user's profile?
No. The event's own text says that a user, even an administrator, can restore credentials only into their own account. The Subject of a 5377 is the account that received the credentials.
Why does Microsoft recommend recording every 5377?
Because users very rarely restore Credential Manager credentials, Microsoft says the event can point to a virus or other malicious activity. The volume is tiny, so keep every event and pair it with its backup (5376).
References
- 5377(S): Credential Manager credentials were restored from a backup (Microsoft)
- Audit User Account Management (Microsoft)
- 5376(S): Credential Manager credentials were backed up (Microsoft)
- Credentials processes in Windows authentication, credential storage (Microsoft)
- Back up and restore VMM, credentials (Microsoft)