Skip to main content
Mallory
← Back to News
persistence-methodoffensive-tooling-releaseprivilege-escalation-method

Winlogon Registry and Helper DLL Abuse Enables Windows Logon Persistence

Attack Tradecraft · 2 sources · Updated 3mo ago · First seen Jun 12, 2022

Winlogon Registry and Helper DLL Abuse Enables Windows Logon Persistence

Attackers can maintain persistence on Windows by abusing Winlogon autostart mechanisms, including modification of registry values such as HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell and Userinit, as well as use of the Winlogon Helper DLL technique tracked by MITRE ATT&CK as T1547.004. By altering these settings, a malicious executable or DLL can be launched automatically during user logon, giving malware a reliable way to survive reboots and regain execution.

Public technical material showed a C++ proof of concept that rewrites Winlogon registry keys to start a test payload at logon and noted that older Windows versions may also expose persistence through the Winlogon\Notify key. The technique requires elevated privileges, but it has been associated with real-world malware activity, including Turla, Gazer, and Bazaar. Defenders are advised to restrict local administrator access and monitor Winlogon-related autorun entries for unauthorized changes, including with tools such as Sysinternals Autoruns.

Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Aug 1, 2017 – Jun 12, 2022
  1. Jun 12, 20224y ago

    Technical walkthrough demonstrates Winlogon registry persistence in C++

    A technical article demonstrated Windows persistence by modifying Winlogon registry keys such as Shell and Userinit so a test payload would execute at user logon. The walkthrough included proof-of-concept C++ code, validation steps, cleanup guidance, and noted the technique's use by Turla, Gazer, and Bazaar.

    Malware development: persistence - part 7. Winlogon. Simple C++ example. - cocomelonc
  2. Aug 1, 20179y ago

    MITRE ATT&CK publishes Winlogon Helper DLL sub-technique T1547.004

    MITRE ATT&CK published the Enterprise sub-technique 'Boot or Logon Autostart Execution: Winlogon Helper DLL' as T1547.004, documenting abuse of Winlogon-related mechanisms for persistence.

    Boot or Logon Autostart Execution: Winlogon Helper DLL, Sub-technique T1547.004 - Enterprise | MITRE ATT&CK®
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Organizations

1 linked
Microsoft Corporation
Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.