Skip to content

Commit

Permalink
Add signature for checking UAC key
Browse files Browse the repository at this point in the history
Add signature for checking enableLUA key
  • Loading branch information
kevross33 authored Oct 4, 2024
1 parent 2bcef9d commit 982d185
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions modules/signatures/windows/bypass_uac.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,27 @@ def run(self):
return True

return False


class ChecksUACStatus(Signature):
name = "checks_uac_status"
description = "Checks if UAC (User Access Control) is enabled"
severity = 2
categories = ["uac"]
authors = ["Kevin Ross"]
minimum = "0.5"
ttps = ["T1548"] # MITRE v6,7,8

def run(self):
indicators = [
".*\\\\SOFTWARE\\\\(Wow6432Node\\\\)?Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\System\\\\EnableLUA$",

]

for indicator in indicators:
match = self.check_key(pattern=indicator, regex=True)
if match:
self.data.append({"regkey": match})
return True

return False

0 comments on commit 982d185

Please sign in to comment.