mirror of https://github.com/mvt-project/mvt.git
Fixed missing checks for indicators instance (ref: #245)
This commit is contained in:
parent
52a204cab6
commit
b97ce7651a
|
@ -20,6 +20,9 @@ class DumpsysAccessibility(AndroidExtraction):
|
|||
log=log, results=results)
|
||||
|
||||
def check_indicators(self):
|
||||
if not self.indicators:
|
||||
return
|
||||
|
||||
for result in self.results:
|
||||
ioc = self.indicators.check_app_id(result["package_name"])
|
||||
if ioc:
|
||||
|
|
|
@ -22,6 +22,9 @@ class DumpsysActivities(AndroidExtraction):
|
|||
self.results = results if results else {}
|
||||
|
||||
def check_indicators(self):
|
||||
if not self.indicators:
|
||||
return
|
||||
|
||||
for intent, activities in self.results.items():
|
||||
for activity in activities:
|
||||
ioc = self.indicators.check_app_id(activity["package_name"])
|
||||
|
|
|
@ -28,6 +28,9 @@ class DumpsysBatteryDaily(AndroidExtraction):
|
|||
}
|
||||
|
||||
def check_indicators(self):
|
||||
if not self.indicators:
|
||||
return
|
||||
|
||||
for result in self.results:
|
||||
ioc = self.indicators.check_app_id(result["package_name"])
|
||||
if ioc:
|
||||
|
|
|
@ -20,6 +20,9 @@ class DumpsysBatteryHistory(AndroidExtraction):
|
|||
log=log, results=results)
|
||||
|
||||
def check_indicators(self):
|
||||
if not self.indicators:
|
||||
return
|
||||
|
||||
for result in self.results:
|
||||
ioc = self.indicators.check_app_id(result["package_name"])
|
||||
if ioc:
|
||||
|
|
|
@ -23,6 +23,9 @@ class DumpsysDBInfo(AndroidExtraction):
|
|||
log=log, results=results)
|
||||
|
||||
def check_indicators(self):
|
||||
if not self.indicators:
|
||||
return
|
||||
|
||||
for result in self.results:
|
||||
path = result.get("path", "")
|
||||
for part in path.split("/"):
|
||||
|
|
|
@ -28,6 +28,9 @@ class DumpsysReceivers(AndroidExtraction):
|
|||
self.results = results if results else {}
|
||||
|
||||
def check_indicators(self):
|
||||
if not self.indicators:
|
||||
return
|
||||
|
||||
for intent, receivers in self.results.items():
|
||||
for receiver in receivers:
|
||||
if intent == INTENT_NEW_OUTGOING_SMS:
|
||||
|
|
|
@ -80,6 +80,9 @@ class Packages(AndroidExtraction):
|
|||
self.detected.append(result)
|
||||
continue
|
||||
|
||||
if not self.indicators:
|
||||
continue
|
||||
|
||||
ioc = self.indicators.check_app_id(result.get("package_name"))
|
||||
if ioc:
|
||||
result["matched_indicator"] = ioc
|
||||
|
|
Loading…
Reference in New Issue