PersistenceHigh
Accessibility features backdoor
Also known as Sticky keys backdoor, Sethc/Utilman backdoor
Hijacking sethc.exe or utilman.exe so the logon screen yields a SYSTEM shell, via an IFEO Debugger or binary replacement.
Signals in the logs
A Debugger value was set under Image File Execution Options for an accessibility binary.
- TargetObject
- ...\Image File Execution Options\sethc.exe\Debugger (or utilman.exe, osk.exe, Magnify.exe)
- Details
- typically C:\Windows\System32\cmd.exe
The IFEO Debugger value was written on a key with auditing enabled.
- ObjectName
- ...\Image File Execution Options\sethc.exe
- ObjectValueName
- Debugger
- NewValue
- the command set as the debugger
An accessibility binary in System32 was overwritten (binary replacement).
- TargetFilename
- C:\Windows\System32\sethc.exe (or utilman.exe, osk.exe)
cmd.exe or powershell.exe launched by winlogon.exe at the logon screen.
- ParentImage
- C:\Windows\System32\winlogon.exe
- Image
- C:\Windows\System32\cmd.exe
What happens
The Windows logon screen can launch accessibility tools before anyone authenticates: pressing Shift five times runs sethc.exe (Sticky Keys), and the ease-of-access button runs utilman.exe, both as SYSTEM. Two techniques turn that into a backdoor. The first sets an Image File Execution Options Debugger value for sethc.exe or utilman.exe pointing at cmd.exe, so invoking the accessibility feature launches a SYSTEM command prompt. The second replaces the accessibility binary itself (sethc.exe, utilman.exe, osk.exe, Magnify.exe, and others) with cmd.exe or another tool. Either way the attacker gets code execution at the logon screen, including over RDP, without credentials. The IFEO value is visible through Sysmon 13 or Security 4657 with a SACL; binary replacement shows as Sysmon 11 or 4663.
Logging you need
- Sysmon 13 (registry) and 11 (file create) require a configuration covering the IFEO keys and System32.
- Security 4657 and 4663 require the relevant audit subcategory and a SACL on the IFEO key or the binary.
- Catching the resulting shell needs process creation logging (Sysmon 1 or Security 4688) with parent process captured.
Hunt queries
Starting points. Tune thresholds and exclusions to your environment before alerting on them.
Get-WinEvent -FilterHashtable @{LogName='Microsoft-Windows-Sysmon/Operational'; Id=13} |
Where-Object { $_.Message -match 'Image File Execution Options\\(sethc|utilman|osk|Magnify|Narrator|DisplaySwitch|AtBroker)\.exe' }Benign look-alikes
- Legitimate debuggers configured via IFEO for application troubleshooting, though rarely on accessibility binaries.
- System file servicing (Windows Update, sfc) that updates the accessibility binaries with signed versions.
- Software that legitimately registers an IFEO entry for a non-accessibility executable.
Notes
- Compare the hash and signature of sethc.exe and utilman.exe against a known-good System32; a copy of cmd.exe under those names is unmistakable.
- This backdoor is reachable over RDP before authentication, so pair it with RDP connection events on the destination.