Windows UAC Bypass via .NET Code Profiler DLL Hijacking on mmc.exe (pe386.dll in Temp)

Flags creation of Temp\pe386.dll under a user profile, consistent with mmc/.NET code profiler UAC bypass behavior.

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 .NET Code Profiler DLL Hijacking on mmc.exe (pe386.dll in Temp)
id: 3dc0230d-6fbd-4420-826a-75d7aa74bbe0
status: test
description: This rule flags file activity matching a DLL hijack pattern used for a UAC bypass chain involving .NET Code Profiler and mmc.exe. Attackers write a specific payload DLL into the current user’s Temp directory under a pe386.dll filename, relying on the presence and loadability of that DLL. Detection relies on file event telemetry capturing a target path that begins under C:\Users\ and ends with \AppData\Local\Temp\pe386.dll.
references:
  - https://github.com/hfiref0x/UACME
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/file/file_event/file_event_win_uac_bypass_dotnet_profiler.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\pe386.dll
  condition: selection
falsepositives:
  - Unknown
level: high
license: DRL-1.1
related:
  - id: 93a19907-d4f9-4deb-9f91-aac4692776a6
    type: derived