Skip to content

Commit 8dc7723

Browse files
Enhance USPS impersonation detection rule logic (#3445)
Co-authored-by: Aiden Mitchell <me@aidenmitchell.ca>
1 parent d36b5db commit 8dc7723

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

detection-rules/impersonation_usps.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ type: "rule"
44
severity: "high"
55
source: |
66
type.inbound
7-
and any(ml.logo_detect(file.message_screenshot()).brands, .name == "USPS")
7+
and (
8+
any(ml.logo_detect(file.message_screenshot()).brands, .name == "USPS")
9+
or sender.display_name =~ "USPS"
10+
)
811
and length(body.links) > 0
912
and 2 of (
1013
any(body.links,

0 commit comments

Comments
 (0)