Skip to content

Create brand_impersonation_salesforce.yml #3050

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

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
73 changes: 73 additions & 0 deletions detection-rules/brand_impersonation_salesforce.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: "Brand Impersonation: Salesforce"
description: "Detects impersonation of Salesforce through display name, email domain, or domain similarity, excluding legitimate Salesforce communications, training-related emails with proper authentication, and internal domain notifications."
type: "rule"
severity: "medium"
source: |
type.inbound
and (
regex.icontains(sender.display_name, 'salesforce')
or strings.ilike(sender.display_name, "*salesforce*")
or strings.ilevenshtein(sender.display_name, 'salesforce') <= 2
or strings.ilike(sender.email.domain.domain, '*salesforce*')
)
and not (
(
// legitimate domains
(
sender.email.domain.root_domain in (
"salesforce.com",
"salesforceventures.com",
"exacttarget.com",
"tangocard.com", // https://www.tangocard.com/salesforce-partnership
"elevatesalesforce.com", // unrelated but name in domain
"salesforceben.com", // salesforce newsletter
"connectwithsal.com", // levenshtein
"smartsheet.com", // used by salesforce
"hic-salesforce.com", // third party salesforce partner
"aspiresalesforceconsultancy.net", // third party salesforce partner
"kestoneglobal.biz", // third party
"salesforceeurope.com", // outsourced salesforce staffing
"salesforcerecruiter.com", // outsourced salesforce staffing
"on24event.com", // events for salesforce
"cypress.courses" // trainign for salesforce
)
or sender.email.domain.domain in ("salesforce.rxsavingssolutions.com", "salesforce.jointcommission.org") // unrelated but legit domains
)
and headers.auth_summary.dmarc.pass
)
// email related to salesforce training being offered
or (
(
regex.icontains(body.current_thread.text, "salesforce (training|bootcamp|research)")
or regex.icontains(subject.subject, "salesforce (training|bootcamp|research)")
)
and headers.auth_summary.dmarc.pass
)
// email from own domain with salesforce notification
or (
sender.email.domain.root_domain in $org_domains
and not headers.auth_summary.dmarc.pass
)
)
and not profile.by_sender().solicited
and not any(body.links, .href_url.domain.root_domain == "salesforce.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"
tactics_and_techniques:
- "Impersonation: Brand"
- "Lookalike domain"
- "Social engineering"
detection_methods:
- "Content analysis"
- "Header analysis"
- "Sender analysis"
id: "736dfb87-1f99-5cdb-aefc-392257376f3d"
Loading