
Windows Persistence PoCs Abuse Registry, Services, COM, and Accessibility Features
A series of public proof-of-concept posts detailed how attackers can establish persistence on Windows by abusing multiple native mechanisms, including `AppInit_DLLs`, COM hijacking, Windows services, logon scripts, file-association changes, uninstall handlers, Event Viewer help links, shell `CLSID` command handlers, and Accessibility Features such as Sticky Keys. The demonstrations showed malware-like code modifying keys under `HKLM` and `HKCU` to force execution at boot, logon, application launch, or user interaction, with several techniques requiring administrator privileges while others worked in the current user context.
The examples included replacing `.txt` open commands, setting `HKCU\Environment\UserInitMprLogonScript`, creating malicious `InprocServer32` registrations for COM objects, altering `UninstallString` values for installed software, redirecting Event Viewer online help to a local executable, and using either Image File Execution Options or symbolic links to hijack `sethc.exe`. The posts also tied several methods to known threat activity, citing groups and malware such as **APT28**, **APT39**, **Turla**, **Kimsuky**, **APT3**, **APT29**, **APT32**, **APT38**, **APT41**, Ramsay, Attor, Zebrocy, Mosquito, and SILENTTRINITY as examples of similar persistence tradecraft seen in the wild.
Sep 20, 2025
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**.
Jun 12, 2022
CertPropSvc Registry Hijack Demonstrated as Windows Persistence Technique
A public malware-development tutorial and companion GitHub repository demonstrated a Windows persistence method that hijacks the **Certificate Propagation Service** (`CertPropSvc`) by changing the `ServiceDll` value under `HKLM\SYSTEM\CurrentControlSet\Services\CertPropSvc\Parameters` to an attacker-controlled DLL. Because the service loads that DLL when it starts or restarts, the technique can provide durable execution on compromised hosts while blending into a legitimate built-in Windows service; the material notes that administrative privileges are required to modify the `HKLM` registry path.
The published proof of concept included simple C/C++ examples and repository files such as `meow.cpp`, `meow.dll`, `meow2.cpp`, `pers.c`, and `pers.exe`. One payload writes a marker string to a file to confirm execution, while another uses `WSAConnect` to establish a reverse shell and launch `cmd.exe`, illustrating how the hijack can move from persistence to interactive command execution if defenders do not detect the altered service DLL path.
Sep 14, 2025