Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 27 November 2026.
In one sentence: Event 4657 is a Windows log entry that says someone or something changed a setting stored in the registry, the database where Windows and its programs keep their configuration.
What it is
The registry holds settings such as which programs start at sign-in, how services run and which security features are on. Event 4657 is recorded in the Security log when a registry value is created, changed or deleted. Microsoft’s documentation says it covers values only. It does not fire when a registry key itself is changed.
The event only appears if two things are in place. The Audit Registry setting must be on, and the registry key must carry an auditing rule (a SACL) for “Set Value”. Without both, Windows stays silent. This is the most common reason people search for 4657 and find an empty log.
How it works
- You turn on the Audit Registry subcategory in Advanced Audit Policy.
- You add an auditing rule to the specific keys you care about, for example the keys that control start-up programs.
- When a program changes a value under that key, Windows writes 4657.
- The event records who did it (account, domain and Logon ID), which key and value name, the old and new value, and the process that made the change, including its full path.
- You forward the event to a central log store so it survives if the machine is wiped.
What it does not do: it does not tell you the change was malicious, and it does not stop anything. It is a record. Microsoft’s own example shows an administrator changing a value through regedit.exe, so ordinary admin work also produces it.
Who it affects and how badly
Any business running Windows gets the event, but only those who set up auditing see it. For a sole trader or a 10-person office, the realistic worst case is that a persistence setting is changed on a PC and nobody can say when or by whom. For a 50 to 250 person business, the same gap slows an investigation and makes it harder to tell an insurer or regulator what happened. Regulated firms such as fintech, insurance and healthcare providers are usually expected to show logging of sensitive changes, so a missing audit trail becomes a compliance finding as well as an investigation problem. Managed service providers carry this risk for every client they look after.
What we check on a test
- Whether Audit Registry is on, and on which machines (workstations, servers, domain controllers).
- Whether auditing rules exist on the keys an attacker would change to survive a reboot or weaken security settings.
- Whether events reach a central place, or sit only on the machine.
- Whether the Security log is large enough that 4657 is not overwritten within hours.
- Whether anyone is alerted on changes made by unexpected processes.
Real examples
This is a log event, not an incident, so there is no single named case. Microsoft’s reference page shows a sample event and the fields you will see, and it is the source we used for the field descriptions above: Microsoft Learn, event 4657.
Worked example (an illustration, not a real case)
A 12-person accountancy practice finds a laptop starting an unknown program at every sign-in. Auditing was never switched on for registry values, so there is no record of when the setting was added. The IT provider spends a day rebuilding the laptop and cannot say whether other machines are affected. With 4657 auditing on the start-up keys and events sent to a central log, the same check takes minutes: one event, one account, one process path.
How to detect it
Microsoft’s monitoring guidance for 4657 gives practical filters:
- Alert when the Process Name is not one you expect for that key.
- Alert when the process runs from an unusual folder, not System32 or Program Files.
- Alert when the process name matches a list of known attack tools.
- For a sensitive key, review every 4657 against it.
Match the Process ID against event 4688 (process creation) and the Handle ID against event 4656 to see what started the change. Filter in Event Viewer with Filter Current Log and Event ID 4657.
How to fix or prevent it
- Enable Audit Registry (success) under Advanced Audit Policy Configuration in Group Policy.
- Add a “Set Value” auditing rule to a short list of sensitive keys rather than the whole registry, to keep volume manageable.
- Forward the Security log from every server and workstation to a central collector.
- Raise the Security log size so events are not overwritten quickly.
- Alert on changes made by processes outside an approved list.
- Review the alert list monthly and remove noise from legitimate software.
Frequently asked questions
Why is there no 4657 event on my machine? Auditing must be on and the key must have a Set Value auditing rule. Without both, nothing is written.
Does 4657 show registry keys being created? No. Microsoft says it covers values, not changes to keys.
Can I tell which program made the change? Yes. The event records the process name and ID.
Related terms
Event 4688 (process creation), Event 4663 (object access), Event 4656 (handle requested), Event 7045 (service installed), Event 4698 (scheduled task created), Event 4719 (audit policy changed). More in the Detection and response hub.
How Wolfcore helps
Wolfcore’s vulnerability management and SOC monitoring keep watch for this after the test is over.
Wolfcore
Would your staff click a phishing email?
Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.
Start a free phishing testFree website security scanor book a 30 minute call