UAC Bypass via Service Creation
Description
Identifies attempts to bypass User Account Control (UAC) by creating a system Service via a network logon from the loopback address. Attackers may attempt to bypass UAC or Administrator Protection feature to execute with elevated permissions.
Query · eql
sequence with maxspan=1m
[authentication where event.action == "log_on" and user.id == "S-1-0-0" and
process.Ext.token.elevation == false and process.Ext.session_info.logon_type == "Network" and user.effective.id != "S-1-5-18" and
/* network logon from loopback address */
(
source.ip == null or
cidrmatch(source.ip, "127.0.0.0/8", "::1") or
startswith~(user.effective.domain, winlog.event_data.WorkstationName)
)
] by user.effective.id, Target.process.Ext.authentication_id
[any where event.category in ("configuration", "iam") and
event.action in ("service-installed", "service-install") and process.pid == 0 and
user.id != "S-1-5-18" and winlog.event_data.ServiceAccount == "LocalSystem"] by user.id, process.Ext.authentication_id