Skip to content

Commit

Permalink
style: Automatic code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 2, 2025
1 parent 778e4f9 commit 8218311
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 3 additions & 1 deletion modules/signatures/windows/bypass_uac.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ class ChecksUACStatus(Signature):
ttps = ["T1548"] # MITRE v6,7,8

def run(self):
match = self.check_key(pattern=r".*\SOFTWARE\(Wow6432Node\)?Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA$", regex=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
Expand Down
4 changes: 1 addition & 3 deletions modules/signatures/windows/persistence_autorun.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ def on_call(self, call, process):
self.mark_call()

def on_complete(self):
indicators = (
r".*\\Microsoft\\Windows\\CurrentVersion\\Explorer\\SharedTaskScheduler\\.*",
)
indicators = (r".*\\Microsoft\\Windows\\CurrentVersion\\Explorer\\SharedTaskScheduler\\.*",)
whitelists = (
r".*\\Software\\(Wow6432Node\\)?Classes\\clsid\\{CAFEEFAC-0017-0000-FFFF-ABCDEFFEDCBA}\\InprocServer32\\.*",
# ".*\\Software\\(Wow6432Node\\)?Classes\\clsid\\[^\\]*\\InprocServer32\\ThreadingModel$",
Expand Down
4 changes: 1 addition & 3 deletions modules/signatures/windows/webshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ class OWAWebShellFiles(Signature):
ttps += ["T1505.003"] # MITRE v7,8

def run(self):
indicators = (
r"C:\\Program Files\\Microsoft\\Exchange Server\\V[0-9]{2}\\FrontEnd\\HttpProxy\\owa\\.*",
)
indicators = (r"C:\\Program Files\\Microsoft\\Exchange Server\\V[0-9]{2}\\FrontEnd\\HttpProxy\\owa\\.*",)

for indicator in indicators:
match = self.check_write_file(pattern=indicator, regex=True)
Expand Down

0 comments on commit 8218311

Please sign in to comment.