Skip to content

Commit

Permalink
Updating rule: impersonation_github.yml (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenmitchell authored Sep 18, 2023
1 parent 3bdf878 commit bf62f17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions detection-rules/impersonation_github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ source: |
or strings.ilike(sender.email.email, '*github*')
or strings.ilevenshtein(sender.email.domain.sld, 'github') <= 1
)
// negating listservs
and not (
any(headers.hops, any(.fields, .name == "List-Unsubscribe"))
and strings.contains(sender.display_name, "via")
)
and sender.email.domain.root_domain not in (
'github.com',
'gitlab.com',
Expand Down

0 comments on commit bf62f17

Please sign in to comment.