Windows UAC Bypass via msconfig Token Modification Dropping pkgmgr.exe from Temp

Alerts on writes to C:\Users\…\AppData\Local\Temp\pkgmgr.exe indicative of msconfig-based UAC bypass staging.

FreeReviewedSigma · High · v2
Product
windows
Category
file_event
Author
Christian Burkard (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2021-08-30
Updated
2026-07-31
title: Windows UAC Bypass via msconfig Token Modification Dropping pkgmgr.exe from Temp
id: 4005391b-a67b-45c3-ae21-aa15ae09ba38
status: test
description: This rule identifies file creation events where a target path under a user profile ends with \AppData\Local\Temp\pkgmgr.exe. Attackers may use this behavior to stage components associated with a UAC bypass technique that relies on modifying a msconfig-related token flow. Detection depends on file event telemetry that includes the full target filename/path for process-related file writes.
references:
  - https://github.com/hfiref0x/UACME
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/file/file_event/file_event_win_uac_bypass_msconfig_gui.yml
author: Christian Burkard (Nextron Systems), Huntrule Team
date: 2021-08-30
modified: 2022-10-09
tags:
  - attack.privilege-escalation
  - attack.t1548.002
logsource:
  category: file_event
  product: windows
detection:
  selection:
    TargetFilename|startswith: C:\Users\
    TargetFilename|endswith: \AppData\Local\Temp\pkgmgr.exe
  condition: selection
falsepositives:
  - Unknown
level: high
license: DRL-1.1
related:
  - id: 41bb431f-56d8-4691-bb56-ed34e390906f
    type: derived