mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-18 02:24:04 +00:00
Renamed matched field name to singular
This commit is contained in:
parent
eb5f07a75d
commit
8d15ff58dd
|
@ -23,7 +23,7 @@ class DumpsysAccessibility(AndroidExtraction):
|
||||||
for result in self.results:
|
for result in self.results:
|
||||||
ioc = self.indicators.check_app_id(result["package"])
|
ioc = self.indicators.check_app_id(result["package"])
|
||||||
if ioc:
|
if ioc:
|
||||||
result["matched_indicators"] = ioc
|
result["matched_indicator"] = ioc
|
||||||
self.detected.append(result)
|
self.detected.append(result)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ class DumpsysActivities(AndroidExtraction):
|
||||||
for activity in activities:
|
for activity in activities:
|
||||||
ioc = self.indicators.check_app_id(activity["package"])
|
ioc = self.indicators.check_app_id(activity["package"])
|
||||||
if ioc:
|
if ioc:
|
||||||
activity["matched_indicators"] = ioc
|
activity["matched_indicator"] = ioc
|
||||||
self.detected.append({intent: activity})
|
self.detected.append({intent: activity})
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ class DumpsysBatteryDaily(AndroidExtraction):
|
||||||
for result in self.results:
|
for result in self.results:
|
||||||
ioc = self.indicators.check_app_id(result["package"])
|
ioc = self.indicators.check_app_id(result["package"])
|
||||||
if ioc:
|
if ioc:
|
||||||
result["matched_indicators"] = ioc
|
result["matched_indicator"] = ioc
|
||||||
self.detected.append(result)
|
self.detected.append(result)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ class DumpsysBatteryHistory(AndroidExtraction):
|
||||||
for result in self.results:
|
for result in self.results:
|
||||||
ioc = self.indicators.check_app_id(result["package"])
|
ioc = self.indicators.check_app_id(result["package"])
|
||||||
if ioc:
|
if ioc:
|
||||||
result["matched_indicators"] = ioc
|
result["matched_indicator"] = ioc
|
||||||
self.detected.append(result)
|
self.detected.append(result)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ class DumpsysDBInfo(AndroidExtraction):
|
||||||
for part in path.split("/"):
|
for part in path.split("/"):
|
||||||
ioc = self.indicators.check_app_id(part)
|
ioc = self.indicators.check_app_id(part)
|
||||||
if ioc:
|
if ioc:
|
||||||
result["matched_indicators"] = ioc
|
result["matched_indicator"] = ioc
|
||||||
self.detected.append(result)
|
self.detected.append(result)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ class DumpsysReceivers(AndroidExtraction):
|
||||||
|
|
||||||
ioc = self.indicators.check_app_id(receiver["package"])
|
ioc = self.indicators.check_app_id(receiver["package"])
|
||||||
if ioc:
|
if ioc:
|
||||||
receiver["matched_indicators"] = ioc
|
receiver["matched_indicator"] = ioc
|
||||||
self.detected.append({intent: receiver})
|
self.detected.append({intent: receiver})
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
@ -59,14 +59,14 @@ class Packages(AndroidExtraction):
|
||||||
|
|
||||||
ioc = self.indicators.check_app_id(result.get("package_name"))
|
ioc = self.indicators.check_app_id(result.get("package_name"))
|
||||||
if ioc:
|
if ioc:
|
||||||
result["matched_indicators"] = ioc
|
result["matched_indicator"] = ioc
|
||||||
self.detected.append(result)
|
self.detected.append(result)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for package_file in result["files"]:
|
for package_file in result["files"]:
|
||||||
ioc = self.indicators.check_file_hash(package_file["sha256"])
|
ioc = self.indicators.check_file_hash(package_file["sha256"])
|
||||||
if ioc:
|
if ioc:
|
||||||
result["matched_indicators"] = ioc
|
result["matched_indicator"] = ioc
|
||||||
self.detected.append(result)
|
self.detected.append(result)
|
||||||
|
|
||||||
def _get_files_for_package(self, package_name):
|
def _get_files_for_package(self, package_name):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user