This detection identifies potential User Account Control (UAC) bypass attempts where adversaries execute a zip archive to circumvent security prompts and elevate privileges without user consent. Proactively hunting for this behavior in Azure Sentinel is critical because UAC bypasses are frequently used as an initial foothold to establish persistence or execute malicious payloads that might otherwise evade standard alerting mechanisms.
rule BypassUac2 {
meta:
description = "Auto-generated rule - file BypassUac2.zip"
author = "yarGen Yara Rule Generator"
hash = "ef3e7dd2d1384ecec1a37254303959a43695df61"
strings:
$s0 = "/BypassUac/BypassUac/BypassUac_Utils.cpp" fullword ascii
$s1 = "/BypassUac/BypassUacDll/BypassUacDll.aps" fullword ascii
$s3 = "/BypassUac/BypassUac/BypassUac.ico" fullword ascii
condition:
all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 3 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the Auto-generated rule - file BypassUac2.zip, along with suggested filters and exclusions:
Scenario: Scheduled Deployment via SCCM/Intune
BypassUac2.zip file is often extracted and executed by the ccmexec.exe process during nightly maintenance windows.ccmexec.exe or Microsoft.IntuneManagementAgent.exe. Additionally, filter events occurring only between 01:00 and 05:00 local time to align with standard maintenance windows.Scenario: Automated Patching by WSUS Server
wusa.exe) or the Background Intelligent Transfer Service (BITS) often triggers a UAC bypass mechanism when deploying critical security patches. This process extracts BypassUac2.zip to handle elevation tokens for non-admin user contexts during patch installation./quiet or /norestart flags and the parent process is wuauserv.exe. You can also whitelist specific file hashes associated with known Microsoft update packages.Scenario: Endpoint Protection Scanning (CrowdStrike/SentinelOne)
BypassUac2.zip to manage permission elevation during the scan cycle.