mirror of
https://github.com/mvt-project/mvt.git
synced 2026-09-30 13:09:42 +02:00
Checking for manipulated entries even when no indicators are provided
This commit is contained in:
1 parent
257f3732e3
commit
0a7512cfb2
1 file changed
+9
-9
@@ -203,6 +203,15 @@ class NetBase(IOSExtraction):
|
|||||||
self.results = sorted(self.results, key=operator.itemgetter("first_isodate"))
|
self.results = sorted(self.results, key=operator.itemgetter("first_isodate"))
|
||||||
|
|
||||||
def check_indicators(self):
|
def check_indicators(self):
|
||||||
|
# Check for manipulated process records.
|
||||||
|
# TODO: Catching KeyError for live_isodate for retro-compatibility.
|
||||||
|
# This is not very good.
|
||||||
|
try:
|
||||||
|
self.check_manipulated()
|
||||||
|
self.find_deleted()
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
if not self.indicators:
|
if not self.indicators:
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -218,12 +227,3 @@ class NetBase(IOSExtraction):
|
|||||||
|
|
||||||
if self.indicators.check_process(proc_name):
|
if self.indicators.check_process(proc_name):
|
||||||
self.detected.append(result)
|
self.detected.append(result)
|
||||||
|
|
||||||
# Check for manipulated process records.
|
|
||||||
# TODO: Catching KeyError for live_isodate for retro-compatibility.
|
|
||||||
# This is not very good.
|
|
||||||
try:
|
|
||||||
self.check_manipulated()
|
|
||||||
self.find_deleted()
|
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
Reference in new issue
Block a user