Checking for manipulated entries even when no indicators are provided

This commit is contained in:
Nex
2021-08-12 12:57:27 +02:00
parent 257f3732e3
commit 0a7512cfb2

View File

@@ -203,6 +203,15 @@ class NetBase(IOSExtraction):
self.results = sorted(self.results, key=operator.itemgetter("first_isodate"))
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:
return
@@ -218,12 +227,3 @@ class NetBase(IOSExtraction):
if self.indicators.check_process(proc_name):
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