Skip to content

Commit

Permalink
Merge pull request #130 from kevross33/patch-83
Browse files Browse the repository at this point in the history
Add WMI script consumer process
  • Loading branch information
doomedraven authored Sep 20, 2019
2 parents 53e125e + c8a2eb7 commit 80fe7a2
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion modules/signatures/wmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, *args, **kwargs):

def on_call(self, call, process):
pname = process["process_name"]
if "wmiprvse" in pname.lower():
if "wmiprvse" in pname.lower() or "scrcons" in pname.lower():
cmdline = self.get_argument(call, "CommandLine")
whitelisted = False
for whitelist in self.whitelist:
Expand Down Expand Up @@ -90,3 +90,25 @@ def on_call(self, call, process):

def on_complete(self):
return self.ret

class ScrconsWMIScriptConsumer(Signature):
name = "scrcons_wmi_script_consumer"
description = "Windows Management Instrumentation (WMI) script consumer process was launched indicating script execution or using an event consumer for persistence"
severity = 3
confidence = 50
categories = ["wmi"]
authors = ["Kevin Ross"]
minimum = "1.3"
evented = True
ttp = ["T1047"]

def run(self):
ret = False
cmdlines = self.results["behavior"]["summary"]["executed_commands"]
for cmdline in cmdlines:
lower = cmdline.lower()
if "scrcons" in lower:
self.data.append({"command" : cmdline})
ret = True

return ret

0 comments on commit 80fe7a2

Please sign in to comment.