-
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.
TEST- Update callback_phishing_nlu_body_or_attachments.yml by @morriscode #931 Source SHA 2931bf7 Triggered by @morriscode
- Loading branch information
Sublime Rule Testing Bot
committed
Nov 7, 2023
1 parent
e226e3f
commit a9105b5
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
detection-rules/callback_phishing_nlu_body_or_attachments.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,61 @@ | ||
name: "Callback Phishing NLU body or attachment from first-time sender" | ||
description: | | ||
Detects callback scams by analyzing text within images of receipts or invoices from first time senders. | ||
type: "rule" | ||
severity: "medium" | ||
source: | | ||
type.inbound | ||
and length(attachments) < 5 | ||
and ( | ||
any(attachments, | ||
(.file_type in $file_types_images or .file_type == "pdf") | ||
and any(file.explode(.), | ||
// exclude images taken with mobile cameras and screenshots from android | ||
not any(.scan.exiftool.fields, | ||
.key == "Model" | ||
or .key == "Software" and strings.starts_with(.value, "Android") | ||
) | ||
and any(ml.nlu_classifier(.scan.ocr.raw).intents, | ||
.name == "callback_scam" and .confidence == "high" | ||
) | ||
) | ||
) | ||
or any(ml.nlu_classifier(body.current_thread.text).intents, | ||
.name in ("callback_scam") | ||
and .confidence == "high" | ||
and length(body.current_thread.text) < 1500 | ||
) | ||
) | ||
and not ( | ||
any(headers.domains, .domain == "smtp-out.gcp.bigcommerce.net") | ||
and strings.icontains(body.html.raw, "bigcommerce.com") | ||
) | ||
// negate highly trusted sender domains unless they fail DMARC authentication | ||
and | ||
( | ||
( | ||
sender.email.domain.root_domain in $high_trust_sender_root_domains | ||
and ( | ||
any(distinct(headers.hops, .authentication_results.dmarc is not null), | ||
strings.ilike(.authentication_results.dmarc, "*fail") | ||
) | ||
) | ||
) | ||
or sender.email.domain.root_domain not in $high_trust_sender_root_domains | ||
) | ||
attack_types: | ||
- "Callback Phishing" | ||
tactics_and_techniques: | ||
- "Out of band pivot" | ||
- "Social engineering" | ||
detection_methods: | ||
- "Content analysis" | ||
- "File analysis" | ||
- "Optical Character Recognition" | ||
- "Natural Language Understanding" | ||
- "Sender analysis" | ||
id: "b93c6f94-c9a3-587a-8eb5-6856754f8222" | ||
testing_pr: 931 | ||
testing_sha: 2931bf7121ac1c3637094921a3432f8b4bb948a1 |