Skip to content

Commit

Permalink
Update bypass_uac.py
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven authored Oct 5, 2024
1 parent 982d185 commit dd63af5
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions modules/signatures/windows/bypass_uac.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,9 @@ class ChecksUACStatus(Signature):
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
match = self.check_key(pattern=r".*\SOFTWARE\(Wow6432Node\)?Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA$", regex=True)
if match:
self.data.append({"regkey": match})
return True

return False

0 comments on commit dd63af5

Please sign in to comment.