Skip to content

Commit

Permalink
Moving rule to discovery + creating insight (#854)
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenmitchell authored Oct 11, 2023
1 parent 595aa7b commit 68f430f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions insights/sender/recipient_sld_in_sender_local.yml
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"

0 comments on commit 68f430f

Please sign in to comment.