Skip to content

Commit

Permalink
Update credential_phishing_esign_document_notification.yml (#2128)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoomequipd authored Nov 20, 2024
1 parent 4400866 commit 2e91077
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,18 @@ source: |
or (regex.icontains(body.html.inner_text, 'Document') and length(body.html.inner_text) < 300)
// common greetings via email.local_part
or any(recipients.to,
strings.icontains(body.current_thread.text, .email.local_part)
// use count to ensure the email address is not part of a disclaimer
strings.icount(body.current_thread.text, .email.local_part) >
// sum allows us to add more logic as needed
sum([
strings.icount(body.current_thread.text,
strings.concat('was sent to ', .email.email)
),
strings.icount(body.current_thread.text,
strings.concat('intended for ', .email.email)
)
]
)
)
// HR impersonation
or strings.ilike(sender.display_name, "HR", "H?R", "*Human Resources*")
Expand Down

0 comments on commit 2e91077

Please sign in to comment.