Skip to content

Commit 54e03ef

Browse files
[Shared Samples] [PR #4515] modified rule: PR# 4515 - VIP impersonation: Fake thread with display name match, email mismatch
1 parent f4de777 commit 54e03ef

1 file changed

Lines changed: 29 additions & 18 deletions

File tree

detection-rules/4515_vip_impersonation_fake_thread.yml

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,37 @@ source: |
66
type.inbound
77
and any($org_vips,
88
(
9-
strings.icontains(body.html.display_text,
10-
strings.concat("From: ", .display_name, " <")
9+
(
10+
.display_name != ""
11+
and strings.icontains(body.html.display_text,
12+
strings.concat("From: ", .display_name, " <")
13+
)
1114
)
12-
or strings.icontains(body.html.display_text,
13-
strings.concat("From: ",
14-
strings.concat(.first_name,
15-
" ",
16-
.last_name
17-
),
18-
" <"
19-
)
15+
or (
16+
.first_name != ""
17+
and .last_name != ""
18+
and strings.icontains(body.html.display_text,
19+
strings.concat("From: ",
20+
strings.concat(.first_name,
21+
" ",
22+
.last_name
23+
),
24+
" <"
25+
)
26+
)
2027
)
21-
or strings.icontains(body.html.display_text,
22-
strings.concat("From: ",
23-
strings.concat(.last_name,
24-
", ",
25-
.first_name
26-
),
27-
" <"
28-
)
28+
or (
29+
.first_name != ""
30+
and .last_name != ""
31+
and strings.icontains(body.html.display_text,
32+
strings.concat("From: ",
33+
strings.concat(.last_name,
34+
", ",
35+
.first_name
36+
),
37+
" <"
38+
)
39+
)
2940
)
3041
)
3142
and not (

0 commit comments

Comments
 (0)