Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create open_redirect_smartadserver.yml #2327

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions detection-rules/open_redirect_smartadserver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Open Redirect: smartadserver.com"
description: |
Message contains use of the smartadserver.com redirect. This has been exploited in the wild.
type: "rule"
severity: "medium"
source: |
type.inbound
// smartadserver is used in benign messages, however, they commonly have many links
// ensure messages contain less than 20 links to ensure higher fidelity matching of malicious messages
and length(body.links) < 20
and any(body.links,
.href_url.domain.root_domain == "smartadserver.com"
and strings.icontains(.href_url.query_params, 'go=')
and not strings.icontains(.href_url.query_params,
'go=(?:https?(?:%3a|:))?(?:%2f|\/){2}[^&]*smartadserver\.com(?:\&|\/|$)'
)
)
// remove uses that originate from smartadserver.com
and not any(headers.domains, .root_domain == "smartadserver.com")
// 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"
- "Malware/Ransomware"
tactics_and_techniques:
- "Open redirect"
detection_methods:
- "Sender analysis"
- "URL analysis"
id: "27e5a585-891d-549d-af34-e2b8dff6d64e"
Loading