This detection identifies potential User Account Control (UAC) bypass attempts where adversaries load specific DLLs to elevate privileges without triggering standard prompts, a common tactic for maintaining persistence and executing malicious code with elevated rights. Proactively hunting for this behavior in Azure Sentinel is critical because UAC bypass mechanisms are frequently exploited by attackers to silently establish high-privilege access, often evading traditional alerting thresholds that focus on explicit user interactions.
rule BypassUacDll_7 {
meta:
description = "Auto-generated rule - file BypassUacDll.aps"
author = "yarGen Yara Rule Generator"
hash = "58d7b24b6870cb7f1ec4807d2f77dd984077e531"
strings:
$s3 = "BypassUacDLL.dll" fullword wide
$s4 = "AFX_IDP_COMMAND_FAILURE" fullword ascii
condition:
all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 2 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the Auto-generated rule - file BypassUacDll.aps detection, including suggested filters and exclusions:
Scenario: Microsoft Defender Antivirus Self-Update via Scheduled Task
Microsoft.Windows.Update.Orchestrator) triggers the installation of a new definition package. During this process, the update engine loads a DLL to bypass UAC prompts for background updates without user interaction.MpCmdRun.exe or UsocDCLauncher.exe) and the Parent Process ID (PPID) belonging to the Windows Update service (Wuauserv). Alternatively, exclude file paths containing \Program Files\Windows Defender\MpSvc.dll.Scenario: Endpoint Detection and Response (EDR) Agent Health Checks
svchost process to bypass UAC restrictions when applying real-time protection rules, triggering this specific APS file detection.FalconSensor.exe, S1Agent.exe) and the File Path resides within the vendor’s installation directory (e.g., C:\Program Files\CrowdStrike\).Scenario: Enterprise Deployment Tool Execution (SCCM/Intune)
WuaHandler.exe or AppxDeployment) utilizes the B