-
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.
Adding header/content signals, moving attachment signals to attachmen…
…ts dir (#666)
- Loading branch information
1 parent
e12e8de
commit 7228764
Showing
13 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
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,13 @@ | ||
name: "Tracking pixel in HTML body" | ||
type: "query" | ||
source: | | ||
( | ||
// standard html | ||
regex.contains(body.html.raw, | ||
'<img[^>]*?width="1(px)?"[^>]*?height="1(px)?"[^>]*?style="[^"]*(visibility:hidden|display:none)[^"]*"[^>]*?>' | ||
) | ||
// handle quoted printable variants | ||
or regex.contains(body.html.raw, | ||
'<img\s+width=3D"1"\s+height=3D"1"\s+src=3D"http[^"]+\.(gif|jpg|jpeg|png|bmp)">' | ||
) | ||
) |
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,9 @@ | ||
name: "Fake message thread" | ||
type: "query" | ||
source: | | ||
type.inbound | ||
and strings.istarts_with(subject.subject, "RE:") | ||
and ( | ||
length(headers.references) == 0 | ||
or not any(headers.hops, any(.fields, strings.ilike(.name, "In-Reply-To"))) | ||
) |
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,7 @@ | ||
name: "Gmail Auto-Forward" | ||
type: "query" | ||
source: | | ||
any([headers.return_path.email], | ||
strings.ilike(headers.return_path.local_part, "*+caf_=*") and type.inbound | ||
) | ||
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,8 @@ | ||
name: "Microsoft SCL" | ||
type: "query" | ||
source: | | ||
filter( | ||
map(headers.hops, | ||
map(filter(.fields, .name =~ "X-ms-exchange-organization-scl"), .value) | ||
), length(.) > 0 | ||
) |
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,7 @@ | ||
name: "Mismatched From and Reply-to Doms" | ||
type: "query" | ||
source: | | ||
any(headers.reply_to, | ||
length(headers.reply_to) > 0 | ||
and all(headers.reply_to, .email.domain.root_domain != sender.email.domain.root_domain) | ||
) |
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,8 @@ | ||
name: "Mismatched From and Return-Path" | ||
type: "query" | ||
source: | | ||
any([headers.return_path.email], | ||
(headers.return_path.email is not null | ||
and headers.return_path.email != sender.email.email | ||
and type.inbound) | ||
) |
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,16 @@ | ||
name: "Cofense PhishMe phishing simulation" | ||
type: "query" | ||
source: | | ||
any(headers.ips, .ip in ( | ||
"13.113.166.58", | ||
"35.182.57.68", | ||
"52.1.96.230", | ||
"52.20.128.29", | ||
"52.20.155.14", | ||
"52.28.182.143", | ||
"52.28.252.18", | ||
"52.29.24.224", | ||
"52.29.5.79", | ||
"52.5.119.169", | ||
"52.62.59.61", | ||
)) |
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,4 @@ | ||
name: "HoxHunt phishing simulation" | ||
type: "query" | ||
source: | | ||
any(headers.hops, strings.ends_with(.signature.domain, ".hoxhuntsigning.com")) |
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,4 @@ | ||
name: "KnowBe4 phishing simulation" | ||
type: "query" | ||
source: | | ||
any(headers.ips, regex.match(.ip, '147\.10\.167\.([0-9]|[0-5][0-9]|6[0-3])', '23.21.109.(197|212)', '52.49.(201.246|235.189)')) |
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,6 @@ | ||
name: "Undisclosed Recipients" | ||
type: "query" | ||
source: | | ||
any([recipients.to, recipients.bcc, recipients.cc], | ||
any(., .display_name =~ "Undisclosed recipients:") | ||
) |
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,4 @@ | ||
name: "X-Originating-IP" | ||
type: "query" | ||
source: | | ||
headers.x_originating_ip.ip |