@@ -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:
5860id : " aaeb35de-1b50-5222-ae9d-6b2fd167bb8a"
5961og_id : " 95b08315-93a6-5005-8f38-ff597eb9f947"
6062testing_pr : 3428
61- testing_sha : 75d66d2a1b9c365689b718a9e47a80d99a87e3ce
63+ testing_sha : 79dd37c5beb7e485381d04c96a029cd822d90959
0 commit comments