Skip to content

Commit e70cc77

Browse files
[PR #3428] modified rule: Attachment: Credit card application with WhatsApp contact
1 parent aeb305c commit e70cc77

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

detection-rules/3428_attachment_creditcard_application_with_whatsapp.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ source: |
66
type.inbound
77
// promotional/advertising content targeting financial services
88
and (
9-
regex.icontains(body.current_thread.text,
10-
"credit card.*offer|promotional.*credit|free.*credit card|lifetime.*free|special offer"
9+
(
10+
regex.icontains(body.current_thread.text,
11+
"credit card.*offer|promotional.*credit|free.*credit card|lifetime.*free|special offer"
12+
)
13+
or regex.icontains(subject.subject,
14+
"credit card.*offer|promotional.*credit|free.*credit card|lifetime.*free"
15+
)
1116
)
12-
or regex.icontains(subject.subject,
13-
"credit card.*offer|promotional.*credit|free.*credit card|lifetime.*free"
14-
)
15-
or any(ml.nlu_classifier(body.current_thread.text).topics,
16-
.name in ("Advertising and Promotions")
17+
and any(ml.nlu_classifier(body.current_thread.text).topics,
18+
.name in ("Advertising and Promotions")
1719
)
1820
)
1921
// PII harvesting template in attachments (3+ of these patterns)
@@ -58,4 +60,4 @@ detection_methods:
5860
id: "aaeb35de-1b50-5222-ae9d-6b2fd167bb8a"
5961
og_id: "95b08315-93a6-5005-8f38-ff597eb9f947"
6062
testing_pr: 3428
61-
testing_sha: 75d66d2a1b9c365689b718a9e47a80d99a87e3ce
63+
testing_sha: 79dd37c5beb7e485381d04c96a029cd822d90959

0 commit comments

Comments
 (0)