Skip to content

Commit 9040f95

Browse files
[PR #3661] modified rule: Attachment: PDF with banking and payment references from freemail sender
1 parent 4aeabb4 commit 9040f95

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

detection-rules/3661_attachment_pdf_file_banking_payment_from_freemail.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ source: |
3030
'\b((?:C(?:hairman|[EFO]O)|President|Director|[ES]?VP))\b'
3131
)
3232
// Or looks like: firstname.lastname.company@freemail
33-
or regex.count(sender.email.local_part, '\.') == 2
33+
or (
34+
regex.count(sender.email.local_part, '\.') == 2
35+
and regex.contains(sender.email.local_part, '\.([a-z]{2,})\.')
36+
)
3437
// or any defined org brands like: first.last.sublime@freemail
3538
or any($org_slds, strings.icontains(sender.email.local_part, .))
3639
or any($org_brand_names, strings.icontains(sender.email.local_part, .))
@@ -58,9 +61,6 @@ source: |
5861
5962
// Free email provider (including Proton)
6063
and sender.email.domain.root_domain in $free_email_providers
61-
62-
// Unsolicited
63-
and not profile.by_sender().solicited
6464
6565
attack_types:
6666
- "BEC/Fraud"
@@ -75,4 +75,4 @@ detection_methods:
7575
id: "054acfa2-ba42-54d0-ba6e-ce562db7fd56"
7676
og_id: "3d46be24-a640-515d-bae9-480effa2b5c8"
7777
testing_pr: 3661
78-
testing_sha: d0c27a5fbbede3f46cf6a2eaa90b8ee425d3944a
78+
testing_sha: d2fd2c1a9735a82dc9bca1648395236273a5b62f

0 commit comments

Comments
 (0)