-
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.
New Rule: QR code with phishing disposition in img or pdf (#1082)
Co-authored-by: Josh Kamdjou <[email protected]>
- Loading branch information
1 parent
3bd778f
commit cbe258d
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
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,51 @@ | ||
name: "Link: QR code with phishing disposition in img or pdf" | ||
description: "This rule analyzes image attachments for QR Codes in which LinkAnalysis concludes is phishing. The rule ensures that the URLs do not link to any organizational domains." | ||
type: "rule" | ||
severity: "high" | ||
source: | | ||
type.inbound | ||
and length(attachments) < 10 | ||
and any(attachments, | ||
(.file_type in $file_types_images or .file_type == "pdf") | ||
and any(file.explode(.), | ||
.scan.qr.type == "url" | ||
// linkanalysis phishing disposition | ||
and any([beta.linkanalysis(.scan.qr.url)], | ||
.credphish.disposition == "phishing" | ||
) | ||
and .scan.qr.url.domain.root_domain not in $org_domains | ||
) | ||
) | ||
and ( | ||
not profile.by_sender().solicited | ||
or ( | ||
profile.by_sender().any_messages_malicious_or_spam | ||
and not profile.by_sender().any_false_positives | ||
) | ||
) | ||
// 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 | ||
) | ||
and not profile.by_sender().any_false_positives | ||
attack_types: | ||
- "Credential Phishing" | ||
tactics_and_techniques: | ||
- "QR code" | ||
- "Social engineering" | ||
detection_methods: | ||
- "Content analysis" | ||
- "Computer Vision" | ||
- "QR code analysis" | ||
- "Sender analysis" | ||
- "URL analysis" |