Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / WINDOWS / PERSISTENCE

Winlogon Abuse

This note documents detection patterns related to Winlogon Abuse within Windows environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Sysmon13Registry value setCriticalDetects modification of Winlogon registry values.
Sysmon12Registry object create/deleteHighKey creation around Winlogon path.
Security4657Registry value modifiedHighNative registry auditing if enabled.
Sysmon1Process creationCriticalPayload triggered by Winlogon at login.
Security4688Process creationCriticalParent-child execution after logon.
Security4624Successful logonHighTrigger timing anchor.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Shell modifiedExplorer replacedCriticalCore persistence primitive.
Userinit modifiedExtra payload appendedCriticalVery common abuse path.
Unexpected child from winlogon.execmd / powershell / payloadCriticalHigh-confidence signal.
Alternate executable in Winlogon pathTemp/AppData targetCriticalStrong malicious clue.
Multiple Winlogon values changedBroad persistence setupHighOperator persistence pattern.
Logon immediately triggers payloadTight correlationHighConfirms persistence

Common Tools

ToolUsage
reg.exeModify Winlogon keys
PowerShellSet-ItemProperty
regedit.exeManual persistence
malware loadersRegistry persistence

Relevant Artifacts

  • Sysmon Event IDs 12, 13, 1
  • Security Event IDs 4657, 4688, 4624
  • Registry path:
    • HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  • Key values:
    • Shell
    • Userinit
    • Notify
  • Prefetch:
    • REG.EXE
    • payload executable
  • Amcache / ShimCache
  • EDR registry timeline

MITRE ATT&CK References

  • T1547.004 Winlogon Helper DLL
  • T1112 Modify Registry

Decision Tree

  1. Which value modified?

    • Shell
    • Userinit
    • Notify
  2. Payload path?

    • System32
    • Temp
    • AppData
  3. Trigger observed?

    • Interactive logon
    • RDP
    • Unlock
  4. Parent-child chain?

    • winlogon.exe
    • explorer.exe
  5. Expand:

    • Adjacent persistence
    • Registry changes
    • User scope
  6. Scope:

    • Single host
    • Multi-host persistence
    • Campaign pattern

Example Detection Templates

KQL

Sysmon
| where EventID == 13
| where TargetObject has "Winlogon"
| project TimeGenerated, Computer, TargetObject, Details
SecurityEvent
| where EventID == 4688
| where ParentProcessName endswith "winlogon.exe"
| project TimeGenerated, Computer, NewProcessName, CommandLine

EQL

registry where registry.path like "*\\Winlogon*"
sequence by host.name with maxspan=10m
  [ registry where registry.path like "*\\Winlogon*" ]
  [ process where process.parent.name == "winlogon.exe" ]

Sigma

title: Winlogon Abuse Detection
id: 8b2d4a16-winlogon-abuse
status: experimental
description: Detects suspicious Winlogon registry persistence
references:
  - https://attack.mitre.org/
author: Vergil
date: 2026-03-07
logsource:
  product: windows
  service: sysmon
detection:
  selection:
    EventID: 13
  keywords:
    TargetObject|contains: 'Winlogon'
  condition: selection and keywords
fields:
  - TargetObject
  - Details
falsepositives:
  - Legitimate shell customization
level: high
tags:
  - attack.persistence

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Registry monitoringAlert on Winlogon writesCriticalCore persistence signal
Baseline Winlogon valuesLow false positivesCriticalEasy validation
Logon correlationWatch post-login payloadsHighConfirms trigger
Restrict registry writesReduce abuse surfaceHighPrevent persistence
Central telemetryPreserve registry historyHighStrong forensic value