Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ severity: "medium"
source: |
type.inbound
// exclude if it's a reply to an existing conversation
and not length(body.previous_threads) > 0
and (
not length(body.previous_threads) > 0
// allow through if self-sender BCC pattern (compromised account thread replay)
or (
length(recipients.to) == 1
and length(recipients.cc) == 0
and sender.email.email == recipients.to[0].email.email
)
)
and (
// subject contains document sharing language
regex.icontains(subject.base,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ source: |
or regex.icontains(body.html.raw,
'(?:<div\s+style="[^"]+"\s*[^>]*>\s*<br\s*/?\s*>\s*</div>\s*){20,}'
)
// class-attributed div-br blocks repeated 20+ times (Outlook elementToProof pattern)
or regex.icontains(body.html.raw,
'(?:<div\s+class="[^"]*"[^>]*>\s*<br\s*/?\s*>\s*</div>\s*){20,}'
)
// p-nbsp blocks repeated 25+ times
or regex.icontains(body.html.raw,
'(?:<p>\s*(?:&nbsp;|&#160;)\s*</p>\s*){25,}'
Expand Down
Loading