Updates SMS module to highlight new text of Apple notifications

This commit is contained in:
tek 2024-04-15 23:28:36 +02:00
parent 6f56939dd7
commit 3a997d30d2
1 changed files with 5 additions and 2 deletions

View File

@ -66,8 +66,11 @@ class SMS(IOSExtraction):
def check_indicators(self) -> None:
for message in self.results:
alert = "ALERT: State-sponsored attackers may be targeting your iPhone"
if message.get("text", "").startswith(alert):
alert_old = "ALERT: State-sponsored attackers may be targeting your iPhone"
alert_new = "ALERT: Apple detected a targeted mercenary spyware attack against your iPhone"
if message.get("text", "").startswith(alert_old) or message.get(
"text", ""
).startswith(alert_new):
self.log.warning(
"Apple warning about state-sponsored attack received on the %s",
message["isodate"],