Skip to content

Windows Event ID 4657: A registry value was modified

Written when a registry “value” is modified. Because it keeps the before and after values plus the process, it is effective for tracking persistence and configuration tampering.

Overview

The subcategory is Audit Registry. It is generated when a registry key’s value is modified (not when the key itself is modified). It is recorded only if the target key’s SACL has “Set Value” auditing set. The old value (OldValue), new value (NewValue), and executing process are kept, which helps investigation.

How it is triggered

  • When the value of an audited registry key is created, modified, or deleted.
  • Whether via regedit.exe, reg.exe, or various APIs, it is recorded as long as it matches the SACL.

Security review points

  • Set SACLs on keys commonly targeted for persistence and defense evasion (the autostart Run keys, service definitions, Image File Execution Options, and the LSA Authentication Packages / Notification Packages), and catch value changes with 4657.
  • Check whether NewValue contains a suspicious executable path or script, and whether Process Name is unexpected.

Notes for log review

  • The registry sees a great deal of legitimate updating. Auditing every key is impractical; it only becomes usable once SACLs are narrowed to important keys.
  • Since before and after values are recorded, read by the difference (from what to what). Distinguish legitimate configuration changes (patches, GPO application).

MITRE ATT&CK mapping

TechniqueTacticWhat this event shows
T1547.001 Registry Run Keys / Startup FolderPersistence, Privilege EscalationChanges to autostart values such as the Run key
T1543.003 Windows ServicePersistence, Privilege EscalationRewrites of service definitions (such as ImagePath)
T1546.012 Image File Execution Options InjectionPrivilege Escalation, PersistenceValues added under Image File Execution Options
T1112 Modify RegistryDefense Impairment, PersistenceTampering with defense- or authentication-related values such as LSA Authentication Packages / Notification Packages

Mapping as of ATT&CK v19.2. ATT&CK detection strategy DET0422 (T1546.012) also lists this event ID as a log source. To search by technique, see the ATT&CK reverse lookup.

Detection rules

SigmaHQ has 5 and Microsoft Sentinel has 6 public detection rules that use this event ID as a condition. General-purpose rules come first, ordered by severity; rules beyond the first 10 are collapsed.

RuleTypeSeverity
ETW Logging Disabled In .NET Processes - RegistrySigmaHigh
NetNTLM Downgrade AttackSigmaHigh
Scheduled Task HideSentinel analytics ruleHigh
Sysmon Channel Reference DeletionSigmaHigh
COM Registry Key Modified to Point to File in Color Profile FolderSentinel analytics ruleMedium
Potential Fodhelper UAC BypassSentinel analytics ruleMedium
Processes Accessing the Microphone and WebcamSigmaMedium
Windows Defender Exclusion List ModifiedSigmaMedium
Known Nylon Typhoon Registry modifications patternsSentinel (threat-specific)Medium
Persisting via IFEO Registry KeySentinel hunting queryMedium
Other rules (1)
RuleTypeSeverity
Crash dump disabled on hostSentinel hunting query-

In addition, the 268 Sigma rules in the registry_set / registry_event / registry_add categories can be converted for 4657 with pySigma’s windows-audit pipeline, which maps Image to ProcessName and TargetObject to ObjectName. Rules that use EventType, NewName, or User fail to convert because 4657 has no matching field.

Rules are collected from SigmaHQ r2026-07-01 and from Azure-Sentinel as of 2026-10-09, limited to those whose conditions include this event ID. Sentinel rules are limited to those that query the SecurityEvent or WindowsEvent table. “Threat-specific” rules target a particular threat group or malware, and “needs setup” rules require values for your environment. Severity is the value each rule’s author assigned.

Key fields

FieldMeaning
Object Name / Object Value NameThe target key and value name
Old Value / New ValueThe values before and after
Process NameThe process that made the change
Subject\Account NameThe executing account

References