Handle no indicators provided in `sms_attachments.py`

This commit is contained in:
Rory Flynn 2024-01-31 10:41:27 +01:00 committed by GitHub
parent b2df17b4a0
commit b22e75e88b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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"]):