-
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 open_redirect_typedrawers.yml by @aidenmitchell #2133 Source SHA 2447b75 Triggered by @aidenmitchell
- Loading branch information
Sublime Rule Testing Bot
committed
Nov 19, 2024
1 parent
fd215e4
commit 594b113
Showing
1 changed file
with
60 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,60 @@ | ||
name: "Open redirect: typedrawers.com" | ||
description: "Detects messages containing links or QR codes pointing to typedrawers.com/home/leaving with target parameter, sent from non-trusted domains or authenticated sources failing DMARC checks. Considers sender reputation and requires either unsolicited contact or prior malicious activity without false positives." | ||
type: "rule" | ||
severity: "medium" | ||
source: | | ||
type.inbound | ||
and ( | ||
any(body.links, | ||
.href_url.domain.root_domain == "typedrawers.com" | ||
and .href_url.path == "/home/leaving" | ||
and strings.icontains(.href_url.query_params, 'target=') | ||
) | ||
or any(attachments, | ||
( | ||
.file_type in $file_types_images | ||
or .file_extension in $file_extensions_macros | ||
or .file_type == "pdf" | ||
) | ||
and any(file.explode(.), | ||
.scan.qr.type == "url" | ||
and .scan.qr.url.domain.root_domain == "typedrawers.com" | ||
and .scan.qr.url.path == "/home/leaving" | ||
and strings.icontains(.scan.qr.url.query_params, 'target=') | ||
) | ||
) | ||
) | ||
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 | ||
or sender.email.domain.root_domain == "typedrawers.com" | ||
) | ||
and not headers.auth_summary.dmarc.pass | ||
) | ||
or sender.email.domain.root_domain not in $high_trust_sender_root_domains | ||
) | ||
attack_types: | ||
- "Credential Phishing" | ||
tactics_and_techniques: | ||
- "Evasion" | ||
- "Open redirect" | ||
- "QR code" | ||
- "Social engineering" | ||
detection_methods: | ||
- "Content analysis" | ||
- "File analysis" | ||
- "QR code analysis" | ||
- "Sender analysis" | ||
id: "158d9e95-4ce4-58c7-83ce-56e5942db1e6" | ||
testing_pr: 2133 | ||
testing_sha: 2447b75ec3e94221976e9f552866a14b11e69677 |