Brand impersonation: QuickBooks
Impersonation of the Quickbooks service from Intuit.
Sublime rule (View on GitHub)
1name: "Brand impersonation: QuickBooks"
2description: "Impersonation of the Quickbooks service from Intuit."
3type: "rule"
4severity: "medium"
5source: |
6 type.inbound
7 and (
8 (
9 strings.ilike(sender.display_name,
10 'quickboo*',
11 'QuickB*',
12 'QBook*',
13 'intuit*'
14 )
15 or strings.like(sender.display_name, "QB-*", "QB *")
16 or regex.icontains(sender.display_name, '\bqb[o]?\b')
17 or strings.ilevenshtein(sender.display_name, 'quickbooks') <= 1
18 or strings.ilike(sender.email.domain.domain, '*quickbook*')
19 or (
20 length(filter(ml.nlu_classifier(body.current_thread.text).entities,
21 strings.icontains(.text, "quickbooks")
22 )
23 ) >= 2
24 and any(ml.nlu_classifier(body.current_thread.text).intents,
25 .name in ("cred_theft", "callback_scam")
26 )
27 )
28 or (
29 any(attachments,
30 length(filter(ml.nlu_classifier(beta.ocr(.).text).entities,
31 strings.icontains(.text, "quickbooks")
32 )
33 ) >= 2
34 and regex.icontains(beta.ocr(.).text,
35 '\+?(?:[ilo0-9]{1,2})?\s?\(?\d{3}\)?[\s\.\-⋅]{0,5}[ilo0-9]{3}[\s\.\-⋅]{0,5}[ilo0-9]{4}'
36 )
37 )
38 )
39 )
40 or strings.ilike(body.current_thread.text, "*invoice*")
41 )
42 and (
43 any(ml.logo_detect(file.message_screenshot()).brands,
44 .name == "Quickbooks" and .confidence in ("medium", "high")
45 )
46 or (
47 any(attachments,
48 (
49 any(ml.logo_detect(.).brands,
50 .name == "Quickbooks" and .confidence in ("medium", "high")
51 )
52 // the QuickBooks/Intuit logo lockup, footer or copyright in the
53 // attachment, mirroring the body-text markers used above
54 or regex.icontains(beta.ocr(.).text,
55 '©\s*(?:[0-9]{4})?\s*intuit\b',
56 'intuit\s+(?:inc|quickbooks)\b',
57 '@intuit\b',
58 'quickbooks\s+(?:billing|support|cloud\s+services|subscription)'
59 )
60 )
61 and any(ml.nlu_classifier(beta.ocr(.).text).intents,
62 .name in ("cred_theft", "callback_scam")
63 )
64 )
65 )
66 // contains the address and copyright
67 or (
68 strings.icontains(body.current_thread.text,
69 '2800 E. Commerce Center Place, Tucson, AZ 85706',
70 '2700 Coast Ave, Mountain View, CA 94043'
71 )
72 and regex.icontains(body.current_thread.text, '©\s*(?:\d+)\s*Intuit')
73 )
74 or strings.icontains(body.current_thread.text,
75 'Powered by QuickBooks',
76 'QuickBooks and Intuit are trademarks of Intuit Inc.',
77 "QuickBooks Cloud Services",
78 "QuickBooks Support Center",
79 "QuickBooks subscription",
80 "Quickbook Security team"
81 )
82 or any(body.current_thread.links,
83 regex.icontains(.href_url.path, '/qbooks?/')
84 )
85 or regex.icontains(body.current_thread.text,
86 '(?:Secured by )?QuickBooks Payments'
87 )
88 or regex.imatch(body.current_thread.text, '.*quickbooks\s\S+\spayroll')
89
90 // phone number and update language
91 or (
92 regex.icontains(body.current_thread.text,
93 '\+?([ilo0-9]{1}.)?\(?[ilo0-9]{3}?\)?.[ilo0-9]{3}.?[ilo0-9]{4}',
94 '\+?([ilo0-9]{1,2})?\s?\(?\d{3}\)?[\s\.\-⋅]{0,5}[ilo0-9]{3}[\s\.\-⋅]{0,5}[ilo0-9]{4}'
95 )
96 and any(ml.nlu_classifier(body.current_thread.text).topics,
97 .name in ("Software and App Updates", "Security and Authentication")
98 )
99
100 // we need to re-check for QB indicators, otherwise we can have "*invoice*"
101 // and this block, which is much more than just QB impersonation
102 and (
103 strings.ilike(sender.display_name,
104 'quickbook*',
105 'QuickB*',
106 'QBook*',
107 'intuit*'
108 )
109 or strings.like(sender.display_name, "QB-*", "QB *")
110 or regex.icontains(sender.display_name, '\bqb[o]?\b')
111 or strings.ilevenshtein(sender.display_name, 'quickbooks') <= 1
112 or strings.ilike(sender.email.domain.domain, '*quickbook*')
113 or (
114 length(filter(ml.nlu_classifier(body.current_thread.text).entities,
115 strings.icontains(.text, "quickbooks")
116 )
117 ) > 2
118 and any(ml.nlu_classifier(body.current_thread.text).intents,
119 .name == "cred_theft"
120 )
121 )
122 )
123 )
124 or (
125 sender.email.domain.domain in $free_email_providers
126 and any(headers.domains, .root_domain == "sendgrid.net")
127 and any(ml.nlu_classifier(body.current_thread.text).entities,
128 .name == "org" and .text == "Quickbooks"
129 )
130 )
131 or any(body.links,
132 (
133 regex.icontains(.display_url.url, '(?:quickbooks|intuit)')
134 and .mismatched
135 and not .href_url.domain.root_domain in (
136 "mimecast.com",
137 "mimecastprotect.com"
138 )
139 )
140 or (
141 regex.icontains(.href_url.path, '(?:quickbooks|intuit)')
142 and not strings.icontains(.href_url.domain.root_domain,
143 "quickbooks",
144 "intuit"
145 )
146 and not any(ml.nlu_classifier(body.current_thread.text).topics,
147 .name == "Advertising and Promotions"
148 )
149 )
150 )
151 or (
152 regex.icontains(body.current_thread.text, "quickbooks?", 'intuit\b')
153 and any(ml.nlu_classifier(body.current_thread.text).entities,
154 .name == "sender"
155 and (
156 regex.icontains(.text,
157 'quickbooks?',
158 'intuit (services?|\bach\b)'
159 )
160 or regex.icontains(.text, '\bqb[o]?\b')
161 )
162 )
163 and any(ml.nlu_classifier(body.current_thread.text).intents,
164 .name == "cred_theft" and .confidence == "high"
165 )
166 )
167 )
168 and not (
169 sender.email.domain.root_domain in~ (
170 'intuit.com',
171 'turbotax.com',
172 'intuit.ca',
173 'meliopayments.com',
174 'qemailserver.com',
175 'intuit.co.uk',
176 'quickbooksonline.com',
177 'tsheets.com'
178 )
179 and coalesce(headers.auth_summary.dmarc.pass, false)
180 )
181 and (
182 not profile.by_sender().any_messages_benign
183 and not profile.by_sender().solicited
184 )
185 // links in body are not known QB domains or the senders root website (both indicative of a legitimate QuickBooks invoice message)
186 and (
187 length(filter(body.links,
188 .href_url.domain.root_domain in~ (
189 'intuit.com',
190 'turbotax.com',
191 'intuit.ca',
192 'meliopayments.com',
193 'qemailserver.com',
194 'intuit.co.uk',
195 'quickbooksonline.com'
196 )
197 or (
198 .href_url.domain.root_domain == sender.email.domain.root_domain
199 and (.href_url.path is null or .href_url.path == "/")
200 )
201 // handle links to the root website when the sender uses a freemail address to send invoices
202 or (
203 .href_url.domain.sld == sender.email.local_part
204 and (.href_url.path is null or .href_url.path == "/")
205 and sender.email.domain.root_domain in $free_email_providers
206 )
207 )
208 ) != length(body.links)
209 // or no valid links
210 or length(filter(body.links, .href_url.domain.domain is not null)) == 0
211 )
212 // the call to action link does not lead to inuit
213 and not (
214 // filter down to observed call to action display text
215 any(filter(body.links,
216 .display_text in~ (
217 "view and pay",
218 "review and pay",
219 "view details"
220 )
221 ),
222 // benign/legit href_url details for those links
223 (
224 // sendgrid rewritten links
225 .href_url.domain.domain == "links.notification.intuit.com"
226 // CTA link
227 or (
228 .href_url.domain.domain == "connect.intuit.com"
229 and strings.icontains(.href_url.query_params, 'cta=viewinvoicenow')
230 )
231 // Mimecast links
232 or (
233 .href_url.domain.root_domain == "mimecastprotect.com"
234 and (
235 strings.icontains(.href_url.query_params,
236 'domain=links.notification.intuit.com'
237 )
238 or strings.icontains(.href_url.query_params,
239 'domain=connect.intuit.com'
240 )
241 )
242 )
243 )
244 )
245 )
246 // negate common sender of quickbooks reseller
247 and not coalesce(strings.icontains(body.current_thread.text,
248 'Purchasing Reviews, Inc'
249 ),
250 false
251 )
252 // negate highly trusted sender domains unless they fail DMARC authentication
253 and not (
254 sender.email.domain.root_domain in $high_trust_sender_root_domains
255 and coalesce(headers.auth_summary.dmarc.pass, false)
256 )
257attack_types:
258 - "Callback Phishing"
259 - "Credential Phishing"
260tactics_and_techniques:
261 - "Impersonation: Brand"
262 - "Social engineering"
263detection_methods:
264 - "Computer Vision"
265 - "Content analysis"
266 - "Header analysis"
267 - "Sender analysis"
268id: "4fd791d1-a053-5c2d-80dd-c6dcdc112a62"