Salesforce Infrastructure Abuse
Identifies messages that resemble credential theft, originating from Salesforce. Salesforce infrastrcture abuse has been observed recently to send phishing attacks.
Sublime rule (View on GitHub)
1name: "Salesforce Infrastructure Abuse"
2description: "Identifies messages that resemble credential theft, originating from Salesforce. Salesforce infrastrcture abuse has been observed recently to send phishing attacks."
3type: "rule"
4severity: "medium"
5source: |
6 type.inbound
7
8 // we look at the return-path because many times in the abuse
9 // we've seen, the From is a custom domain
10 and headers.return_path.domain.root_domain == "salesforce.com"
11
12 // legit salesforce email addresses that haven't been observed to be abused
13 and sender.email.email not in ("support@salesforce.com")
14 and length(attachments) == 0
15 and length(body.links) > 0
16 and any(ml.nlu_classifier(body.current_thread.text).intents,
17 .name == "cred_theft" and .confidence == "high"
18 )
19 and 1 of (
20 ( // sender domain matches no body domains
21 length(body.links) > 0
22 and all(body.links,
23 .href_url.domain.root_domain != sender.email.domain.root_domain
24 and .href_url.domain.root_domain not in (
25 "salesforce.com",
26 "force.com"
27 )
28 )
29 ),
30 regex.icontains(subject.subject,
31 "termination.*notice",
32 "38417",
33 ":completed",
34 "[il1]{2}mit.*ma[il1]{2} ?bo?x",
35 "[il][il][il]egai[ -]",
36 "[li][li][li]ega[li] attempt",
37 "[ng]-?[io]n .*block",
38 "[ng]-?[io]n .*cancel",
39 "[ng]-?[io]n .*deactiv",
40 "[ng]-?[io]n .*disabl",
41 "action.*required",
42 "abandon.*package",
43 "about.your.account",
44 "acc(ou)?n?t (is )?on ho[li]d",
45 "acc(ou)?n?t.*terminat",
46 "acc(oun)?t.*[il1]{2}mitation",
47 "access.*limitation",
48 "account (will be )?block",
49 "account.*de-?activat",
50 "account.*locked",
51 "account.*re-verification",
52 "account.*security",
53 "account.*suspension",
54 "account.has.been",
55 "account.has.expired",
56 "account.will.be.blocked",
57 "account v[il]o[li]at",
58 "activity.*acc(oun)?t",
59 "almost.full",
60 "app[li]e.[il]d",
61 "authenticate.*account",
62 "been.*suspend",
63 "clos.*of.*account.*processed",
64 "confirm.your.account",
65 "courier.*able",
66 "deactivation.*in.*progress",
67 "delivery.*attempt.*failed",
68 "document.received",
69 "documented.*shared.*with.*you",
70 "dropbox.*document",
71 "e-?ma[il1]+ .{010}suspen",
72 "e-?ma[il1]{1} user",
73 "e-?ma[il1]{2} acc",
74 "e-?ma[il1]{2}.*up.?grade",
75 "e.?ma[il1]{2}.*server",
76 "e.?ma[il1]{2}.*suspend",
77 "email.update",
78 "faxed you",
79 "fraud(ulent)?.*charge",
80 "from.helpdesk",
81 "fu[il1]{2}.*ma[il1]+[ -]?box",
82 "has.been.*suspended",
83 "has.been.limited",
84 "have.locked",
85 "he[li]p ?desk upgrade",
86 "heipdesk",
87 "i[il]iega[il]",
88 "ii[il]ega[il]",
89 "incoming e?mail",
90 "incoming.*fax",
91 "lock.*security",
92 "ma[il1]{1}[ -]?box.*quo",
93 "ma[il1]{2}[ -]?box.*fu[il1]",
94 "ma[il1]{2}box.*[il1]{2}mit",
95 "ma[il1]{2}box stor",
96 "mail on.?hold",
97 "mail.*box.*migration",
98 "mail.*de-?activat",
99 "mail.update.required",
100 "mails.*pending",
101 "messages.*pending",
102 "missed.*shipping.*notification",
103 "missed.shipment.notification",
104 "must.update.your.account",
105 "new [sl][io]g?[nig][ -]?in from",
106 "new voice ?-?mail",
107 "notifications.*pending",
108 "office.*3.*6.*5.*suspend",
109 "office365",
110 "on google docs with you",
111 "online doc",
112 "password.*compromised",
113 "periodic maintenance",
114 "potential(ly)? unauthorized",
115 "refund not approved",
116 "report",
117 "revised.*policy",
118 "scam",
119 "scanned.?invoice",
120 "secured?.update",
121 "security breach",
122 "securlty",
123 "signed.*delivery",
124 "status of your .{314}? ?delivery",
125 "susp[il1]+c[il1]+ous.*act[il1]+v[il1]+ty",
126 "suspicious.*sign.*[io]n",
127 "suspicious.activit",
128 "temporar(il)?y deactivate",
129 "temporar[il1]{2}y disab[li]ed",
130 "temporarily.*lock",
131 "un-?usua[li].activity",
132 "unable.*deliver",
133 "unauthorized.*activit",
134 "unauthorized.device",
135 "undelivered message",
136 "unread.*doc",
137 "unusual.activity",
138 "upgrade.*account",
139 "upgrade.notice",
140 "urgent message",
141 "urgent.verification",
142 "v[il1]o[li1]at[il1]on security",
143 "va[il1]{1}date.*ma[il1]{2}[ -]?box",
144 "verification ?-?require",
145 "verification( )?-?need",
146 "verify.your?.account",
147 "web ?-?ma[il1]{2}",
148 "web[ -]?ma[il1]{2}",
149 "will.be.suspended",
150 "your (customer )?account .as",
151 "your.office.365",
152 "your.online.access",
153 // https://github.com/sublime-security/static-files/blob/master/suspicious_subjects.txt
154 "account has been limited",
155 "action required",
156 "almost full",
157 "apd notifi cation",
158 "are you at your desk",
159 "are you available",
160 "attached file to docusign",
161 "banking is temporarily unavailable",
162 "bankofamerica",
163 "closing statement invoice",
164 "completed: docusign",
165 "de-activation of",
166 "delivery attempt",
167 "delivery stopped for shipment",
168 "detected suspicious",
169 "detected suspicious actvity",
170 "docu sign",
171 "document for you",
172 "document has been sent to you via docusign",
173 "document is ready for signature",
174 "docusign",
175 "encrypted message",
176 "failed delivery",
177 "fedex tracking",
178 "file was shared",
179 "freefax",
180 "fwd: due invoice paid",
181 "has shared",
182 "inbox is full",
183 "invitation to comment",
184 "invitation to edit",
185 "invoice due",
186 "left you a message",
187 "message from",
188 "new message",
189 "new voicemail",
190 "on desk",
191 "out of space",
192 "password reset",
193 "payment status",
194 "quick reply",
195 "re: w-2",
196 "required",
197 "required: completed docusign",
198 "remittance",
199 "ringcentral",
200 "scanned image",
201 "secured files",
202 "secured pdf",
203 "security alert",
204 "new sign-in",
205 "new sign in",
206 "sign-in attempt",
207 "sign in attempt",
208 "staff review",
209 "suspicious activity",
210 "unrecognized login attempt",
211 "upgrade immediately",
212 "urgent",
213 "wants to share",
214 "w2",
215 "you have notifications pending",
216 "your account",
217 "your amazon order",
218 "your document settlement",
219 "your order with amazon",
220 "your password has been compromised",
221 ),
222 any($suspicious_subjects, strings.icontains(subject.subject, .))
223 )
224 and (
225 // if the From is a custom domain, check that it's an unknown sender
226 // otherwise, it should be from salesforce
227 (
228 sender.email.domain.domain == "salesforce.com"
229 and any(headers.hops,
230 any(.fields,
231 .name == "X-SFDC-EmailCategory" and .value == "apiMassMail"
232 )
233 )
234 )
235 or (
236 (
237 (
238 profile.by_sender().prevalence in ("new", "outlier")
239 and not profile.by_sender().solicited
240 )
241 or (
242 profile.by_sender().any_messages_malicious_or_spam
243 and not profile.by_sender().any_false_positives
244 )
245 )
246
247 // negate highly trusted sender domains unless they fail DMARC authentication
248 and (
249 (
250 sender.email.domain.root_domain in $high_trust_sender_root_domains
251 and not headers.auth_summary.dmarc.pass
252 )
253 or sender.email.domain.root_domain not in $high_trust_sender_root_domains
254 )
255 )
256 )
257
258attack_types:
259 - "Credential Phishing"
260tactics_and_techniques:
261 - "Evasion"
262 - "Social engineering"
263detection_methods:
264 - "Content analysis"
265 - "Header analysis"
266 - "Natural Language Understanding"
267 - "URL analysis"
268id: "78a77c70-4008-545a-812f-bde793b72c29"