Registry value was set. TargetObject (full path) and Details (new value) are key. Most useful registry event — shows actual value content.
Same as Sysmon 12 but captures the actual value written. PowerShell encoded payloads stored in registry (fileless malware). COM hijacking by setting registry values. Security tool disable (AV registry switches). ASEP (AutoStart Extension Points) abuse.
Alert: Details contains PowerShell encoded commands or base64 strings in Run keys. Alert: Sysmon configuration value changes. Alert: IFEO (Image File Execution Options) value set for debugger hijacking. High value when combined with TargetObject path filtering.
ImageTargetObjectDetails | Tactic | Technique |
|---|---|
| Persistence | Registry Run Keys (T1547.001) |
| Defense Evasion | Modify Registry (T1112) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
title: Suspicious Registry Value Set in Run Key
status: stable
description: Value set in common persistence registry location
author: theadminstack.com
date: 2026/05/16
logsource:
category: registry_set
product: windows
detection:
selection:
EventID: 13
TargetObject|contains:
- '\\Run\\'
- '\\RunOnce\\'
- '\\Winlogon\\'
condition: selection
falsepositives:
- Software installers
- Windows Update
level: medium
tags:
- attack.persistence
- attack.t1547.001
Event
| where EventLog == "Microsoft-Windows-Sysmon/Operational" and EventID == 13 // Registry value set
// EventData holds: Image, TargetObject, Details
| project TimeGenerated, Computer, RenderedDescription
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=13
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# Registry value set — add EventData fields: Image, TargetObject, Details`
Registry value set. Registry value was set. TargetObject (full path) and Details (new value) are key. Most useful registry event — shows actual value content.
Event 13 is written to the Microsoft-Windows-Sysmon/Operational channel by Microsoft-Windows-Sysmon. Requires Sysmon installed with a config that logs this event (e.g. SwiftOnSecurity / Olaf Hartong).
Event 13 is associated with: Registry Run Keys (T1547.001), Modify Registry (T1112).
Alert: Details contains PowerShell encoded commands or base64 strings in Run keys. Alert: Sysmon configuration value changes. Alert: IFEO (Image File Execution Options) value set for debugger hijacking. High value when combined with TargetObject path filtering.