Skip to content
Merged
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
27 changes: 21 additions & 6 deletions detection-rules/link_microsoft_low_reputation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,25 @@ source: |
// suspicious link
and any(body.links,
(
.href_url.domain.root_domain not in $tranco_1m
.href_url.domain.tld == "ru"
or .href_url.domain.root_domain not in $tranco_1m
or .href_url.domain.domain in $free_file_hosts
or .href_url.domain.root_domain in $free_file_hosts
or .href_url.domain.root_domain in $free_subdomain_hosts
or .href_url.domain.domain in $url_shorteners
or .href_url.domain.domain in $social_landing_hosts
// account for URL rewrites
or (
any(.href_url.query_params_decoded["domain"],
strings.parse_domain(.).tld == "ru"
or strings.parse_domain(.).root_domain not in~ $tranco_1m
or strings.parse_domain(.).domain in~ $free_file_hosts
or strings.parse_domain(.).root_domain in~ $free_file_hosts
or strings.parse_domain(.).root_domain in~ $free_subdomain_hosts
or strings.parse_domain(.).domain in~ $url_shorteners
or strings.parse_domain(.).domain in~ $social_landing_hosts
)
)
or

// mass mailer link, masks the actual URL
Expand Down Expand Up @@ -49,7 +62,6 @@ source: |
"microsoft.com",
"aka.ms",
"msftauthimages.net",
"mimecastprotect.com",
"office.com",
"microsoftproject.com"
)
Expand All @@ -71,13 +83,16 @@ source: |
.file_type in $file_types_images
and any(ml.logo_detect(.).brands, strings.starts_with(.name, "Microsoft"))
)
or strings.istarts_with(strings.replace_confusables(body.current_thread.text), "Microsoft ")
or strings.istarts_with(strings.replace_confusables(body.current_thread.text),
"Microsoft "
)
or (
regex.imatch(strings.replace_confusables(body.current_thread.text),
'[\n\s]*[o0O]ff[il1]ce\b.*'
)
and not regex.icontains(strings.replace_confusables(body.current_thread.text),
'office (for lease|rent|sale)'
and not regex.icontains(strings.replace_confusables(body.current_thread.text
),
'office (for lease|rent|sale)'
)
)
or any(ml.logo_detect(file.message_screenshot()).brands,
Expand Down Expand Up @@ -253,7 +268,7 @@ source: |
"*renewal*"
)
)

or (
any(attachments,
.file_type in $file_types_images
Expand Down
Loading