UAC Bypass Attempt via Windows Directory Masquerading


Description

Identifies an attempt to bypass User Account Control (UAC) by masquerading as a Microsoft trusted Windows directory. Attackers may bypass UAC to stealthily execute code with elevated permissions.

Query · eql

process where event.action == "start" and
 process.Ext.token.integrity_level_name == "high" and
  process.args :
         ("?:\\Windows \\System32\\*.exe",
          "?:\\Windows \\SysWOW64\\*.exe",
          "?:\\ Windows*\\System32\\*.exe",
          "?:\\ Windows*\\SysWOW64\\*.exe")
Raw source UAC Bypass Attempt via Windows Directory Masquerading · Elastic TOML
Esc
Published by elastic/protections-artifacts ↗, licensed under Elastic License 2.0 ↗. Reproduced here unmodified.
[rule]
description = """
Identifies an attempt to bypass User Account Control (UAC) by masquerading as a Microsoft trusted Windows directory.
Attackers may bypass UAC to stealthily execute code with elevated permissions.
"""
id = "adaf95d2-28ce-4880-af16-f3041b624440"
license = "Elastic License v2"
name = "UAC Bypass Attempt via Windows Directory Masquerading"
os_list = ["windows"]
reference = ["https://medium.com/tenable-techblog/uac-bypass-by-mocking-trusted-directories-24a96675f6e"]
version = "1.0.31"

query = '''
process where event.action == "start" and
 process.Ext.token.integrity_level_name == "high" and
  process.args :
         ("?:\\Windows \\System32\\*.exe",
          "?:\\Windows \\SysWOW64\\*.exe",
          "?:\\ Windows*\\System32\\*.exe",
          "?:\\ Windows*\\SysWOW64\\*.exe")
'''

min_endpoint_version = "7.15.0"
[[actions]]
action = "kill_process"
field = "process.entity_id"
state = 0

[[optional_actions]]
action = "rollback"
field = "process.entity_id"
state = 0

[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1548"
name = "Abuse Elevation Control Mechanism"
reference = "https://attack.mitre.org/techniques/T1548/"
[[threat.technique.subtechnique]]
id = "T1548.002"
name = "Bypass User Account Control"
reference = "https://attack.mitre.org/techniques/T1548/002/"



[threat.tactic]
id = "TA0004"
name = "Privilege Escalation"
reference = "https://attack.mitre.org/tactics/TA0004/"

[internal]
min_endpoint_version = "7.15.0"

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.