Skip to content

Commit

Permalink
Merge pull request #471 from para0x0dise/update
Browse files Browse the repository at this point in the history
update
  • Loading branch information
doomedraven authored Nov 2, 2024
2 parents ef2ab08 + f65d7cb commit 852ba06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion modules/signatures/windows/lolbas.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def run(self):
cmdlines = self.results.get("behavior", {}).get("summary", {}).get("executed_commands", [])
for cmdline in cmdlines:
lower = cmdline.lower()
if any(process in lower for process in ("cmd /c", "powershell", "script", "mshta", "curl")):
if ("conhost.exe" in lower and
any(process in lower for process in ("cmd /c", "powershell", "script", "mshta", "curl"))):
self.data.append({"command": cmdline})
return True
return False
Expand Down
4 changes: 2 additions & 2 deletions modules/signatures/windows/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def __init__(self, *args, **kwargs):
def on_call(self, call, process):
if not (
process["process_name"].lower in self.falseProcess
or "windows\\system32\\driverstore\\filerepository" in process["module_path"].lower
or "windows\\system32\\driverstore\\filerepository" in process["module_path"].lower()
):

if call["api"] in ("RegSetValueExA", "RegSetValueExW"):
Expand Down Expand Up @@ -379,7 +379,7 @@ def __init__(self, *args, **kwargs):
self.detected = False

def on_call(self, call, process):
if not "\\Windows\\System32\\svchost.exe" in process["module_name"]:
if not "\\Windows\\System32\\svchost.exe" in process["module_path"]:
if call["api"] in ("RegSetValueExA", "RegSetValueExW"):
regKeyPath = self.get_argument(call, "FullName").lower()
buf = self.get_argument(call, "Buffer")
Expand Down

0 comments on commit 852ba06

Please sign in to comment.