-
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_xfinity.yml by @zoomequipd #2249 Source SHA 69a81a6 Triggered by @zoomequipd
- Loading branch information
Sublime Rule Testing Bot
committed
Dec 27, 2024
1 parent
ab4a957
commit 5c1c06e
Showing
1 changed file
with
42 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,42 @@ | ||
name: "Open Redirect: Xfinity CMP Redirection to Google AMP" | ||
description: "Detects when non-Xfinity senders abuse Xfinity's CMP redirection service to reach Google AMP pages. The rule specifically looks for targetURL parameters containing Google AMP paths in links from untrusted or previously malicious senders." | ||
type: "rule" | ||
severity: "medium" | ||
source: | | ||
type.inbound | ||
and any(body.links, | ||
.href_url.domain.domain == "cmp.cws.xfinity.com" | ||
and strings.icontains(.href_url.query_params, "&targetURL=") | ||
and regex.icontains(.href_url.query_params, | ||
'&targetUrl=(?:https?)?(?:(?:%3a|\:)?(?:\/|%2f){2})?google\.[^\&]*\/+amp\/+s\/+' | ||
) | ||
) | ||
and not sender.email.domain.root_domain in ("xfinity.com", "comcast.net") | ||
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 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: | ||
- "Open redirect" | ||
- "Evasion" | ||
detection_methods: | ||
- "Header analysis" | ||
- "URL analysis" | ||
- "Sender analysis" | ||
id: "7b9012fa-0f14-57d5-b729-cb3b84565c47" | ||
testing_pr: 2249 | ||
testing_sha: 69a81a651ce93b0ea0e62747bf96a2a149db4244 |