Skip to content

Commit 130d897

Browse files
Update impersonation_twitter.yml (#3023)
1 parent a9ce9a5 commit 130d897

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

detection-rules/impersonation_twitter.yml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,30 @@ source: |
1616
)
1717
// "X" logic
1818
or (
19-
any(ml.logo_detect(beta.message_screenshot()).brands,
20-
.name == "X" and .confidence == "high"
21-
)
22-
and (
23-
any(ml.nlu_classifier(body.current_thread.text).intents,
24-
.name == "cred_theft" and .confidence == "high"
19+
(
20+
3 of (
21+
strings.iends_with(sender.email.domain.root_domain, "-x.com"),
22+
any(body.links, strings.iends_with(.href_url.domain.root_domain, "-x.com")),
23+
strings.ilike(body.current_thread.text,
24+
"*content dispute*",
25+
"*copyright*",
26+
"*appeal*"
27+
),
28+
strings.contains(body.current_thread.text, '1355 Market Street'),
29+
strings.ilike(body.current_thread.text, '*865 FM 1209*bastrop*')
2530
)
26-
or any(ml.nlu_classifier(beta.ocr(beta.message_screenshot()).text).intents,
27-
.name == "cred_theft" and .confidence == "high"
31+
or (
32+
any(ml.logo_detect(beta.message_screenshot()).brands,
33+
.name == "X" and .confidence == "high"
34+
)
35+
and (
36+
any(ml.nlu_classifier(body.current_thread.text).intents,
37+
.name == "cred_theft" and .confidence == "high"
38+
)
39+
or any(ml.nlu_classifier(beta.ocr(beta.message_screenshot()).text).intents,
40+
.name == "cred_theft" and .confidence == "high"
41+
)
42+
)
2843
)
2944
)
3045
and any(beta.ml_topic(body.current_thread.text).topics,

0 commit comments

Comments
 (0)