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_capitalone.yml #2151

Open
wants to merge 8 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
86 changes: 86 additions & 0 deletions detection-rules/impersonation_capitalone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: "Brand Impersonation: Capital One"
description: "This detection rule identifies inbound messages containing Capital One branding indicators in display names, sender addresses, message content, or embedded logos, while excluding legitimate Capital One domains and authenticated communications from known trusted senders."
type: "rule"
severity: "high"
source: |
type.inbound
and
// display name contains captialone
(
(
strings.icontains(strings.replace_confusables(sender.display_name),
'Capital One'
)
and not strings.icontains(strings.replace_confusables(sender.display_name),
'Capital One Arena'
)
)
// no spaces
or strings.icontains(strings.replace_confusables(sender.display_name),
'CapitalOne'
)
// levenshtein distince similar to captial one
or strings.ilevenshtein(strings.replace_confusables(sender.display_name),
'Capital One'
) <= 2
// sender localpart contains captialone
or strings.icontains(strings.replace_confusables(sender.email.local_part),
'capitalone'
)
// indicators in the footer
or strings.ilike(strings.replace_confusables(body.current_thread.text),
'Capital One Financial Corp'
)
or strings.ilike(strings.replace_confusables(body.current_thread.text),
'1680 Capital One Drive'
)
or any(ml.logo_detect(beta.message_screenshot()).brands,
.name == "Capital One Bank" and .confidence != "low"
)
)
and not (
sender.email.domain.root_domain in $org_domains
or (
sender.email.domain.root_domain in (
"capitalone.co.uk",
"capitalone.com",
"capitaloneshopping.com",
"capitalonesoftware.com",
"capitalonebooking.com",
"capitalonetravel.com",
"olbanking.com", // a fiserv.one domain
"bynder.com", // Digital Assest Mgmt
"gcs-web.com", // investor relations run by capital one
"capitalonearena.com", // the arena
"monumentalsports.com", // the company that owns a bunch of teams that play at the arena?
"ticketmaster.com", // sell and advertises tickets at Capital One Arena
)
and headers.auth_summary.dmarc.pass
)
)
// avoid FPs on branded cards by checking for common disclaimer text
// Capital One uses Visa and Mastercard
// https://www.capitalone.com/learn-grow/money-management/is-capital-one-visa-or-mastercard/
and not strings.icontains(body.current_thread.text,
'Mastercard is a registered trademark, and the circles design is a trademark of Mastercard International Incorporated'
)

// 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
)
attack_types:
- "Credential Phishing"
tactics_and_techniques:
- "Impersonation: Brand"
- "Lookalike domain"
- "Social engineering"
detection_methods:
- "Computer Vision"
- "Sender analysis"
- "Header analysis"
id: "d53848e4-fc40-5bd1-ad5e-c9c4e85a669f"
Loading