Skip to content

Commit

Permalink
Updates SMS module to highlight new text of Apple notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Te-k committed Apr 15, 2024
1 parent 6f56939 commit 3a997d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mvt/ios/modules/mixed/sms.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ def serialize(self, record: dict) -> Union[dict, list]:

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"],
Expand Down

0 comments on commit 3a997d3

Please sign in to comment.