From b22e75e88b223f72da92417a93cec1dcd75b3d78 Mon Sep 17 00:00:00 2001 From: Rory Flynn <75283103+roaree@users.noreply.github.com> Date: Wed, 31 Jan 2024 10:41:27 +0100 Subject: [PATCH] Handle no indicators provided in `sms_attachments.py` --- mvt/ios/modules/mixed/sms_attachments.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mvt/ios/modules/mixed/sms_attachments.py b/mvt/ios/modules/mixed/sms_attachments.py index f6f3d22..8056388 100644 --- a/mvt/ios/modules/mixed/sms_attachments.py +++ b/mvt/ios/modules/mixed/sms_attachments.py @@ -54,6 +54,9 @@ class SMSAttachments(IOSExtraction): } def check_indicators(self) -> None: + if not self.indicators: + return + for attachment in self.results: # Check for known malicious filenames. if self.indicators.check_file_path(attachment["filename"]):