-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create lookalike_domain_with_suspicious_language.yml (#2197)
Co-authored-by: ID Generator <[email protected]>
- Loading branch information
1 parent
87d83e2
commit d7e3013
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
detection-rules/lookalike_domain_with_suspicious_language.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: "Suspected Lookalike domain with suspicious language" | ||
description: "This rule identifies messages where links use typosquatting or lookalike domains similar to the sender domain, with at least one domain being either unregistered or recently registered (≤90 days). The messages must also contain indicators of business email compromise (BEC), credential theft, or abusive language patterns like financial terms or polite phrasing such as kindly. This layered approach targets phishing attempts combining domain deception with manipulative content" | ||
type: "rule" | ||
severity: "medium" | ||
source: | | ||
type.inbound | ||
// levenshtein distance (edit distance) between the SLD of the link and the sender domain is greater than 0 and less than or equal to 2. | ||
// This detects typosquatting or domains that are deceptively similar to the sender. | ||
and any(body.links, | ||
length(.href_url.domain.sld) > 3 | ||
and 0 < strings.levenshtein(.href_url.domain.sld, | ||
sender.email.domain.sld | ||
) <= 2 | ||
//exclude onmicrosoft.com | ||
and not sender.email.domain.root_domain == "onmicrosoft.com" | ||
and ( | ||
// domains are not registered or registered within 90d | ||
// network.whois(.href_url.domain).found == false | ||
network.whois(.href_url.domain).days_old <= 90 | ||
or network.whois(sender.email.domain).found == false | ||
or network.whois(sender.email.domain).days_old <= 90 | ||
) | ||
) | ||
// the mesasge is intent is BEC or Cred Theft, or is talking about financial invoicing/banking language, or a request contains "kindly" | ||
and any(ml.nlu_classifier(body.current_thread.text).intents, | ||
.name in ("bec", "cred_theft") | ||
or any(ml.nlu_classifier(body.current_thread.text).entities, | ||
.name == "financial" | ||
and ( | ||
.text in ("invoice", "banking information") | ||
or .name == "request" and strings.icontains(.text, "kindly") | ||
) | ||
) | ||
) | ||
tags: | ||
- "Attack surface reduction" | ||
attack_types: | ||
- "BEC/Fraud" | ||
tactics_and_techniques: | ||
- "Evasion" | ||
- "Lookalike domain" | ||
- "Social engineering" | ||
detection_methods: | ||
- "Content analysis" | ||
- "Natural Language Understanding" | ||
- "Sender analysis" | ||
- "Whois" | ||
id: "3674ced0-691c-5faa-9ced-922e7201dc29" |