Request for Quote or Purchase (RFQ|RFP) with suspicious sender or recipient pattern
RFQ/RFP scams involve fraudulent emails posing as legitimate requests for quotations or purchases, often sent by scammers impersonating reputable organizations. These scams aim to deceive recipients into providing sensitive information or conducting unauthorized transactions, often leading to financial loss, or data leakage.
Sublime rule (View on GitHub)
1name: "Request for Quote or Purchase (RFQ|RFP) with suspicious sender or recipient pattern"
2description: |
3 RFQ/RFP scams involve fraudulent emails posing as legitimate requests for quotations or purchases, often sent by scammers impersonating reputable organizations.
4 These scams aim to deceive recipients into providing sensitive information or conducting unauthorized transactions, often leading to financial loss, or data leakage.
5type: "rule"
6severity: "medium"
7source: |
8 type.inbound
9 and (
10 (
11 (
12 length(recipients.to) == 0
13 or all(recipients.to,
14 .display_name in (
15 "Undisclosed recipients",
16 "undisclosed-recipients"
17 )
18 )
19 )
20 and length(recipients.cc) == 0
21 )
22 or (
23 sender.email.domain.root_domain in $free_email_providers
24 and any(headers.reply_to, .email.email != sender.email.email)
25 and any(headers.reply_to, .email.email not in $recipient_emails)
26 )
27 or (
28 length(headers.reply_to) > 0
29 and all(headers.reply_to,
30 .email.domain.root_domain != sender.email.domain.root_domain
31 and not .email.domain.root_domain in $org_domains
32 )
33 )
34 or (
35 length(recipients.to) == 1
36 and all(recipients.to, .email.email == sender.email.email)
37 and (length(recipients.cc) > 0 or length(recipients.bcc) > 0)
38 )
39 or (
40 length(recipients.to) == 0
41 and length(recipients.cc) == 1
42 and sender.email.email == recipients.cc[0].email.email
43 )
44 or (
45 length(recipients.to) == 1
46 and length(recipients.cc) == 0
47 and sender.email.email == recipients.to[0].email.email
48 )
49 )
50 and (
51 // Group the keyword patterns that specifically indicate RFQ/RFP
52 (
53 (
54 // RFQ/RFP specific language patterns
55 regex.icontains(body.current_thread.text,
56 '(discuss.{0,15}purchas(e|ing))'
57 )
58 or regex.icontains(body.current_thread.text,
59 '(sign(ed?)|view).{0,10}(purchase order)|Request for (a Quot(e|ation)|Proposal)'
60 )
61 or regex.icontains(body.current_thread.text,
62 '(please|kindly|preferred).{0,30}(?:proposal|quot(e|ation))'
63 )
64 or regex.icontains(subject.subject,
65 '(request for (purchase|quot(e|ation))|\b(?:RFP|RFQ)\d*\b|bid invit(e|ation))',
66 'appraisal\s+quote[_\s-]?\d{4,}'
67 )
68 or any(attachments,
69 regex.icontains(.file_name, "(purchase.?order|Quot(e|ation))")
70 )
71 or any(ml.nlu_classifier(body.current_thread.text).tags,
72 .name == "purchase_order" and .confidence == "high"
73 )
74 or any(ml.nlu_classifier(body.current_thread.text).entities,
75 .name == "financial" and regex.imatch(.text, "(?:rfp|rfq)")
76 )
77 or any(ml.nlu_classifier(body.current_thread.text).entities,
78 .name == "request"
79 and strings.icontains(.text,
80 'submit bid',
81 'need an appraisal',
82 'request quote'
83 )
84 )
85 )
86 // Required: at least one RFQ/RFP keyword pattern
87
88 // Optional: at least one additional indicator (can be another keyword pattern or a non-keyword indicator)
89 and (
90 2 of (
91 // RFQ/RFP keyword patterns (same as above)
92 regex.icontains(body.current_thread.text,
93 '(discuss.{0,15}purchas(e|ing))'
94 ),
95 regex.icontains(body.current_thread.text,
96 '(sign(ed?)|view).{0,10}(purchase order)|Request for a Quot(e|ation)'
97 ),
98 regex.icontains(body.current_thread.text,
99 '(please|kindly|preferred).{0,30}(?:proposal|quot(e|ation))'
100 ),
101 regex.icontains(body.current_thread.text,
102 '(?:invitation|intent) to bid'
103 ),
104 regex.icontains(subject.subject,
105 '(request for (purchase|quot(e|ation))|\b(?:RFP|RFQ)\d*\b|bid invit(e|ation))'
106 ),
107 any(attachments,
108 regex.icontains(.file_name, "(purchase.?order|Quot(e|ation))")
109 ),
110 any(ml.nlu_classifier(body.current_thread.text).tags,
111 .name == "purchase_order" and .confidence == "high"
112 ),
113 any(ml.nlu_classifier(body.current_thread.text).entities,
114 .name == "financial" and regex.imatch(.text, "(?:rfp|rfq)")
115 ),
116 any(ml.nlu_classifier(body.current_thread.text).entities,
117 .name == "request" and regex.imatch(.text, "bid invitation")
118 ),
119 any(attachments,
120 any(file.explode(.),
121 any(ml.nlu_classifier(.scan.ocr.raw).entities,
122 .name == "request"
123 and regex.imatch(.text, "view (?:rfp|rfq)")
124 )
125 )
126 ),
127
128 // Non-keyword indicators
129 (
130 any(ml.nlu_classifier(body.current_thread.text).entities,
131 .name == "request"
132 )
133 and any(ml.nlu_classifier(body.current_thread.text).entities,
134 .name == "urgency"
135 )
136 and not any(ml.nlu_classifier(body.current_thread.text).topics,
137 .name == "Advertising and Promotions"
138 and .confidence == "high"
139 )
140 ),
141 (
142 0 < length(filter(body.links,
143 (
144 .href_url.domain.domain in $free_subdomain_hosts
145 or .href_url.domain.domain in $free_file_hosts
146 or network.whois(.href_url.domain).days_old < 30
147 )
148 and (
149 regex.match(.display_text, '[A-Z ]+')
150 or any(ml.nlu_classifier(.display_text).entities,
151 .name in ("request", "urgency")
152 )
153 or any(ml.nlu_classifier(.display_text).intents,
154 .name in ("cred_theft")
155 )
156 )
157 )
158 ) < 3
159 ),
160 // mentions an attachment that does not exist
161 (
162 length(attachments) == 0
163 and strings.icontains(body.current_thread.text, "attached")
164 ),
165 // url contains RFP
166 any(body.current_thread.links, regex.icontains(.href_url.url, 'RFP')),
167 // linktr.ee hosted url
168 any(body.links, .href_url.domain.root_domain == "linktr.ee")
169 )
170 )
171 )
172 // check attachments
173 or (
174 length(attachments) == 1
175 and length(body.current_thread.text) < 100
176 and all(attachments,
177 .file_type in $file_types_images
178 and any(file.explode(.),
179 2 of (
180 regex.icontains(.scan.ocr.raw,
181 '(discuss.{0,15}purchas(e|ing))'
182 ),
183 regex.icontains(.scan.ocr.raw,
184 '(sign(ed?)|view).{0,10}(purchase order)|Request for a Quot(e|ation)'
185 ),
186 regex.icontains(.scan.ocr.raw,
187 '(please|kindly).{0,30}quote'
188 ),
189 (
190 any(ml.nlu_classifier(.scan.ocr.raw).entities,
191 .name == "request"
192 )
193 and any(ml.nlu_classifier(.scan.ocr.raw).entities,
194 .name == "urgency"
195 )
196 ),
197 any(ml.nlu_classifier(.scan.ocr.raw).tags,
198 .name == "purchase_order" and .confidence == "high"
199 ),
200 any(ml.nlu_classifier(.scan.ocr.raw).entities,
201 .name == "financial"
202 and regex.imatch(.text, "rfp|rfq")
203 )
204 )
205 )
206 )
207 )
208 // fake PDF file icon used as a link lure with bid solicitation language
209 or (
210 regex.icontains(subject.subject, 'project\s+summary')
211 and any(html.xpath(body.html, '//div[.//img[contains(@src,"pdf")]]//a').nodes,
212 regex.icontains(.display_text, 'project\s+summary')
213 )
214 and regex.icontains(body.current_thread.text,
215 '(put a bid|\bbid\s+(for|on)\b|submit.{1,20}(bid|quot(e|ation))|request for (purchase|quot(e|ation))|\b(?:RFP|RFQ)\d*\b|project\s+summary)'
216 )
217 )
218 )
219
220 // these senders include user specific reply-to's & are prone to FP's
221 and not (
222 sender.email.domain.root_domain in ("proactis.com", "wetransfer.com")
223 and coalesce(headers.auth_summary.dmarc.pass, false)
224 )
225
226 // negate highly trusted sender domains unless they fail DMARC authentication
227 and not (
228 sender.email.domain.root_domain in $high_trust_sender_root_domains
229 and coalesce(headers.auth_summary.dmarc.pass, false)
230 )
231
232 // sender profiles
233 and (
234 (
235 (
236 not profile.by_sender().solicited
237 or profile.by_sender().days_since.last_contact > 30
238 )
239 and not profile.by_sender().any_messages_benign
240 )
241 // sender address listed as a recipient
242 or (
243 length(recipients.to) == 1
244 and sender.email.email in map(recipients.to, .email.email)
245 )
246 )
247attack_types:
248 - "BEC/Fraud"
249tactics_and_techniques:
250 - "Evasion"
251 - "Free email provider"
252detection_methods:
253 - "Content analysis"
254 - "Natural Language Understanding"
255 - "URL analysis"
256id: "2ac0d329-c1fb-5c87-98dd-ea3e5b85377a"