-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving rule to discovery + creating insight (#854)
- Loading branch information
1 parent
595aa7b
commit 68f430f
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: "Recipient SLD in sender's email address local part" | ||
description: | | ||
The sender's email address local part contains the recipient's SLD. | ||
type: "query" | ||
source: | | ||
type.inbound | ||
and any(recipients.to, | ||
( | ||
strings.contains(sender.email.local_part, .email.domain.sld) | ||
// checking to ensure no FPs, like "me" in "me.com" | ||
and length(.email.domain.sld) > 3 | ||
) | ||
) | ||
severity: "medium" |