diff --git a/mvt/ios/modules/fs/filesystem.py b/mvt/ios/modules/fs/filesystem.py index 3a47a89..866eb1f 100644 --- a/mvt/ios/modules/fs/filesystem.py +++ b/mvt/ios/modules/fs/filesystem.py @@ -44,7 +44,6 @@ class Filesystem(IOSExtraction): # If we are instructed to run fast, we skip this. if self.fast_mode: self.log.info("Flag --fast was enabled: skipping extended search for suspicious files/processes") - else: for ioc in self.indicators.ioc_processes: parts = result["path"].split("/") diff --git a/mvt/ios/modules/fs/networking_analytics.py b/mvt/ios/modules/fs/networking_analytics.py index 4196cba..0b8c176 100644 --- a/mvt/ios/modules/fs/networking_analytics.py +++ b/mvt/ios/modules/fs/networking_analytics.py @@ -40,7 +40,7 @@ class NetworkingAnalytics(IOSExtraction): for key in result.keys(): if ioc == result[key]: self.log.warning("Found mention of a known malicious process \"%s\" in networking_analytics.db at %s", - ioc, result["timestamp"]) + ioc, result["timestamp"]) self.detected.append(result) break @@ -84,8 +84,8 @@ class NetworkingAnalytics(IOSExtraction): def run(self): self._find_ios_database(root_paths=NETWORKING_ANALYTICS_DB_PATH) - if (self.file_path): + if self.file_path: self.log.info("Found networking_analytics.db log at path: %s", self.file_path) self._extract_networking_analytics_data() else: - self.log.info("networking_analytics.db not found") \ No newline at end of file + self.log.info("networking_analytics.db not found")