Skip to content

Commit

Permalink
Update salesforce_infra_abuse.yml (#2223)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoomequipd authored Dec 26, 2024
1 parent 20b8911 commit 89b8588
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions detection-rules/salesforce_infra_abuse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@ source: |
// we look at the return-path because many times in the abuse
// we've seen, the From is a custom domain
and headers.return_path.domain.root_domain == "salesforce.com"
// legit salesforce email addresses that haven't been observed to be abused
and sender.email.email not in ("[email protected]")
and length(attachments) == 0
and length(body.links) > 0
// theare are external links (not org or SF domains)
and length(filter(body.links,
.href_url.domain.domain not in $org_domains
and .href_url.domain.root_domain not in (
"salesforce.com",
"force.com",
"site.com" // salesforce CRM
)
)
) > 0
and any(ml.nlu_classifier(body.current_thread.text).intents,
.name == "cred_theft" and .confidence == "high"
)
Expand All @@ -23,7 +29,8 @@ source: |
.href_url.domain.root_domain != sender.email.domain.root_domain
and .href_url.domain.root_domain not in (
"salesforce.com",
"force.com"
"force.com",
"site.com"
)
)
),
Expand All @@ -48,6 +55,7 @@ source: |
"account (will be )?block",
"account.*de-?activat",
"account.*locked",
"account.*restrict",
"account.*re-verification",
"account.*security",
"account.*suspension",
Expand Down Expand Up @@ -151,6 +159,8 @@ source: |
"your (customer )?account .as",
"your.office.365",
"your.online.access",
"Critical.Notice",
"Restore.Access",
// https://github.com/sublime-security/static-files/blob/master/suspicious_subjects.txt
"account has been limited",
"action required",
Expand Down Expand Up @@ -215,6 +225,7 @@ source: |
"w2",
"you have notifications pending",
"your account",
'your (?:\w+\s+){0,1}\s*account',
"your amazon order",
"your document settlement",
"your order with amazon",
Expand All @@ -229,7 +240,8 @@ source: |
sender.email.domain.domain == "salesforce.com"
and any(headers.hops,
any(.fields,
.name == "X-SFDC-EmailCategory" and .value == "apiMassMail"
.name == "X-SFDC-EmailCategory"
and .value in ("apiMassMail", "networksNewUser")
)
)
)
Expand All @@ -255,7 +267,6 @@ source: |
)
)
)
attack_types:
- "Credential Phishing"
tactics_and_techniques:
Expand Down

0 comments on commit 89b8588

Please sign in to comment.