Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New rule: Microsoft SCL very high and message not in spam folder #668

Closed
wants to merge 11 commits into from
27 changes: 27 additions & 0 deletions detection-rules/spam_high_microsoft_scl_not_in_spam_folder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Microsoft Spam Confidence Level (SCL) very high and message not in spam folder"
description: |
This rule identifies messages with a Microsoft Spam Confidence Level (SCL) of 8 or 9, indicating a high likelihood of being unwanted. The rule flags these messages when they are not found in the user's spam folder, highlighting a potential risk of malicious or unwanted content.
references:
- "https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/anti-spam-spam-confidence-level-scl-about"
type: "rule"
severity: "medium"
source: |
type.inbound
and any(headers.hops,
any(.fields, strings.ilike(.name, "X-ms-exchange-organization-scl")
and .value in ("8", "9"))
)
and external.spam is null
and (
profile.by_sender().prevalence in ("new", "outlier")
or (
profile.by_sender().any_messages_malicious_or_spam
and not profile.by_sender().any_false_positives
)
)
attack_types:
- "Spam"
detection_methods:
- "Header analysis"
- "Sender analysis"
id: "801a5470-0498-55ba-a590-4cb105038e95"
Loading