UAC Bypass via Windows Media Player: DllHost.exe spawning osk.exe writing OskSupport.dll to Temp
Flags file events where Temp\OskSupport.dll is targeted alongside DllHost.exe and Windows Media Player\osk.exe, consistent with a UAC bypass attempt.
- Product
- windows
- Category
- file_event
- Author
- Christian Burkard (Nextron Systems) (SigmaHQ), DRL 1.1
- Published
- 2021-08-23
- Updated
- 2026-07-31
ATT&CK techniques
Priv Esc → Defense EvasionRecon
Resource Dev
Initial Access
Execution
Persistence
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule matches file activity consistent with a Windows Media Player UAC bypass workflow where DllHost.exe launches osk.exe and writes OskSupport.dll into a user Temp path (OskSupport.dll under AppData\Local\Temp). The behavior matters because it can be used to attempt privilege escalation by placing attacker-controlled or hijack-related binaries in a writable location. It relies on file event telemetry capturing both the target filenames and the originating executable path.
Reporting behind it
Changelog
v2- v2Candidate ingested via manual entry.2026-07-31
- v1No changelog recorded for this version.2026-07-30
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
title: "UAC Bypass via Windows Media Player: DllHost.exe spawning osk.exe writing OskSupport.dll to Temp"
id: cbaa0ba0-73a8-4bec-b67b-8efddc192c66
status: test
description: This rule matches file activity consistent with a Windows Media Player UAC bypass workflow where DllHost.exe launches osk.exe and writes OskSupport.dll into a user Temp path (OskSupport.dll under AppData\Local\Temp). The behavior matters because it can be used to attempt privilege escalation by placing attacker-controlled or hijack-related binaries in a writable location. It relies on file event telemetry capturing both the target filenames and the originating executable path.
references:
- https://github.com/hfiref0x/UACME
- https://github.com/SigmaHQ/sigma/blob/master/rules/windows/file/file_event/file_event_win_uac_bypass_wmp.yml
author: Christian Burkard (Nextron Systems), Huntrule Team
date: 2021-08-23
modified: 2022-10-09
tags:
- attack.privilege-escalation
- attack.t1548.002
logsource:
category: file_event
product: windows
detection:
selection1:
TargetFilename|startswith: C:\Users\
TargetFilename|endswith: \AppData\Local\Temp\OskSupport.dll
selection2:
Image: C:\Windows\system32\DllHost.exe
TargetFilename: C:\Program Files\Windows Media Player\osk.exe
condition: 1 of selection*
falsepositives:
- Unknown
level: high
license: DRL-1.1
related:
- id: 68578b43-65df-4f81-9a9b-92f32711a951
type: derived