Skip to content
Open
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
49 changes: 37 additions & 12 deletions detection-rules/impersonation_microsoft_teams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,47 @@ type: "rule"
severity: "high"
source: |
type.inbound
and length(filter(attachments,
.file_type in $file_types_images or .file_type == "pdf"
and (
(
0 < length(filter(attachments,
.file_type in $file_types_images or .file_type == "pdf"
)
) < 10
)
or (
length(filter(attachments,
.file_extension == "ics" or .content_type == "text/calendar"
)
) < 10
) == 1
)
)
and any(attachments,
(.file_type in $file_types_images or .file_type == "pdf")
and any(file.explode(.),
regex.icontains(.scan.ocr.raw,
"trying to reach you.*microsoft teams"
)
(
(.file_type in $file_types_images or .file_type == "pdf")
and any(file.explode(.),
regex.icontains(.scan.ocr.raw,
"trying to reach you.*microsoft teams",
"microsoft teams.*meeting (recording|event)"
)
)
)
or (
(.file_extension == "ics" or .content_type == "text/calendar")
and any(file.explode(.),
regex.icontains(.scan.strings.raw,
"trying to reach you.*microsoft teams",
"microsoft teams.*meeting (recording|event)"
)
)
)
)
and sender.email.domain.root_domain not in (
"microsoft.com",
"microsoftsupport.com",
"office.com"
and (
sender.email.domain.root_domain not in (
"microsoft.com",
"microsoftsupport.com",
"office.com"
)
or not sender.email.domain.valid
)
attack_types:
- "Credential Phishing"
Expand Down
Loading