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: Suspicious TLD in headers with SPF/DMARC failures or high confidence credential theft #735

Closed
wants to merge 4 commits into from
Closed
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
@@ -0,0 +1,29 @@
name: "Suspicious TLD in headers with SPF/DMARC failures or high confidence credential theft"
description: |
Flags inbound emails with suspicious TLDs in the headers, SPF/DMARC failures, or high-confidence credential theft indicators
type: "rule"
severity: "medium"
source: |
type.inbound
and any(headers.domains, .tld in $suspicious_tlds and .tld != sender.email.domain.tld)
// SPF Errors/Failures or DMARC Fail
and (
any(distinct(headers.hops, .received_spf.verdict is not null),
regex.icontains(.received_spf.verdict, "fail|error")
or any(distinct(headers.hops, .authentication_results.dmarc is not null),
strings.ilike(.authentication_results.dmarc, "*fail")

// Or Cred_theft confidence High
or any(ml.nlu_classifier(body.current_thread.text).intents,
.name in ("cred_theft") and .confidence == "high"
)
)
)
)
attack_types:
- "BEC/Fraud"
- "Credential Phishing"
detection_methods:
- "Header analysis"
- "Natural Language Understanding"
id: "e8696023-4a1e-542a-8c22-784a3d33c7a4"