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 impersonation_schwab.yml #2144

Merged
merged 6 commits into from
Nov 25, 2024
Merged
Changes from 2 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
69 changes: 69 additions & 0 deletions detection-rules/impersonation_schwab.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: "Brand impersonation: Charles Schwab"
description: "Impersonation of Charles Schwab & Co"
type: "rule"
severity: "medium"
source: |
type.inbound
and (
// display name contains charles schwab
(
strings.ilike(strings.replace_confusables(sender.display_name),
'*charles schwab*'
)
// no spaces
or strings.ilike(strings.replace_confusables(sender.display_name),
'*charlesschwab*'
)
// levenshtein distince similar to schwab
or strings.ilevenshtein(strings.replace_confusables(sender.display_name),
'charles schwab'
) <= 1
// sender domain contains schwab
or strings.ilike(strings.replace_confusables(sender.email.domain.domain),
'*schwab*'
)
)
)
morriscode marked this conversation as resolved.
Show resolved Hide resolved

// and the sender is not in org_domains or from charles shwab domains and passes auth
and (
(
(
sender.email.domain.root_domain in $org_domains
or sender.email.domain.root_domain in (
"schwab.com",
"aboutschwab.com.",
"schwabmoneywise.com"
)
)
and not headers.auth_summary.dmarc.pass
)
or (
sender.email.domain.root_domain not in $org_domains
and sender.email.domain.root_domain not in (
"schwab.com",
"aboutschwab.com.",
"schwabmoneywise.com"
)
)
)
morriscode marked this conversation as resolved.
Show resolved Hide resolved
// and the sender is not from high trust sender root domains
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
)
and not profile.by_sender().solicited

attack_types:
- "Credential Phishing"
tactics_and_techniques:
- "Impersonation: Brand"
- "Lookalike domain"
- "Social engineering"
detection_methods:
- "Header analysis"
- "Sender analysis"
id: "7abde595-bd69-5b79-8031-2c5a12b1767e"