4657 Security log · Object Access medium severity high volume

Windows Event ID 4657 — A registry value was modified

Registry value created or modified. ObjectName (full path), OldValue, NewValue are key. Requires registry SACL.

Why event 4657 matters

Persistence via Run/RunOnce keys. Defense evasion via security tool registry modifications. Credential access via LSASS configuration changes. Key paths: HKLM\Software\Microsoft\Windows\CurrentVersion\Run, HKLM\SYSTEM\CurrentControlSet\Services, Winlogon.

How to detect it

Requires SACL on monitored paths. Alert: Run/RunOnce modifications. Alert: Winlogon Userinit or Shell value changes. Configure SACLs on high-value paths rather than broadly.

Log source
Security
Advanced Audit Policy — enable the 'Object Access' subcategory (Success and/or Failure).
Fields to pivot on
ObjectNameObjectValueNameNewValueProcessNameSubjectUserName

MITRE ATT&CK mapping

Tactic Technique
Persistence Registry Run Keys (T1547.001)
Defense Evasion Modify Registry (T1112)

Detection queries

Starting points — adapt the log source, projected fields and thresholds for your environment.

Sentinel / Defender KQL
SecurityEvent
| where EventID == 4657   // A registry value was modified
| project TimeGenerated, Computer, ObjectName, ObjectValueName, NewValue, ProcessName, SubjectUserName
| sort by TimeGenerated desc
Splunk SPL
index=* sourcetype="WinEventLog:Security" EventCode=4657
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count   `# A registry value was modified — add EventData fields: ObjectName, ObjectValueName, NewValue, ProcessName`
Hunt event 4657 in Sentinel/Defender →
Build a KQL query for this event in the KQL Query Builder.
Search all event IDs →
Open the interactive Windows Event ID lookup.

Related Object Access events

4656 A handle to an object was requested 4658 The handle to an object was closed 4660 An object was deleted 4663 An attempt was made to access an object 4665 An attempt was made to create an application client context 4670 Permissions on an object were changed 4690 An attempt was made to duplicate a handle to an object 4985 The state of a transaction has changed 5140 A network share object was accessed 5142 A network share object was added 5143 A network share object was modified 5144 A network share object was deleted

Frequently asked questions

What is Windows Event ID 4657?

A registry value was modified. Registry value created or modified. ObjectName (full path), OldValue, NewValue are key. Requires registry SACL.

Which log records event 4657?

Event 4657 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Object Access' subcategory (Success and/or Failure).

What MITRE ATT&CK techniques map to event 4657?

Event 4657 is associated with: Registry Run Keys (T1547.001), Modify Registry (T1112).

How do you detect activity around event 4657?

Requires SACL on monitored paths. Alert: Run/RunOnce modifications. Alert: Winlogon Userinit or Shell value changes. Configure SACLs on high-value paths rather than broadly.