Brand impersonation: Amazon
Impersonation of Amazon. These are most commonly fake shipping notifications. Amazon is the #2 most-impersonated brand (as of Q2 2020)
Sublime rule (View on GitHub)
1name: "Brand impersonation: Amazon"
2description: |
3 Impersonation of Amazon. These are most commonly fake shipping notifications.
4 Amazon is the #2 most-impersonated brand (as of Q2 2020)
5references:
6 - "https://www.pcmag.com/news/google-and-amazon-are-impersonated-the-most-in-phishing-scams"
7 - "https://sellercentral.amazon.com/gp/help/external/32261?language=en-US"
8type: "rule"
9severity: "low"
10source: |
11 type.inbound
12 and not any(headers.hops,
13 any(.fields,
14 .name == 'X-Amazon-Mail-Relay-Type' and .value == "notification"
15 )
16 )
17 and (
18 regex.icontains(sender.display_name,
19 '\b[aaa๐ฐa๏ฝ๐๐ฎ๐๐๐ช๐๐ชะฐษฮฑ๐๐๐ข๐โบ๐ถ๐๐ถ๐ผ๐๐บ]maz[o0]n\s?(pay|marketplace|\.com)|แตโคปแถป'
20 )
21 or strings.ilevenshtein(sender.display_name, 'amazon.com') <= 1
22 or strings.ilevenshtein(sender.display_name, 'amazon pay') <= 1
23 or strings.ilevenshtein(sender.display_name, 'amazon marketplace') <= 1
24 or strings.ilevenshtein(sender.display_name, 'amazon customer support') <= 1
25 or regex.icontains(sender.display_name,
26 "prime (?:subscription|notification|support)",
27 '^primevideo'
28 )
29 or regex.imatch(sender.display_name,
30 '^(?:amazon\s)?prime (?:deals?|store)$',
31 'amazon'
32 )
33 or strings.ilike(subject.subject, "*prime membership*")
34 // prime subscription id ##
35 or (
36 strings.icontains(subject.base, "prime")
37 and regex.icontains(body.current_thread.text, 'subscription\s+id\s?.\s\w+')
38 )
39 or (
40 strings.ilevenshtein(sender.display_name, 'amazon') <= 1
41 and sender.email.domain.root_domain in $free_email_providers
42 )
43 or (
44 any(ml.nlu_classifier(body.current_thread.text).intents,
45 .name == "cred_theft" and .confidence == "high"
46 )
47 and any(ml.nlu_classifier(body.current_thread.text).topics,
48 .name in (
49 "Security and Authentication",
50 "Secure Message",
51 "Reminders and Notifications",
52 "Order Confirmations",
53 "Customer Service and Support"
54 )
55 )
56 and strings.icontains(body.current_thread.text, "amazon")
57 )
58 or (
59 (
60 any([body.current_thread.text, body.html.inner_text],
61 strings.istarts_with(., 'amazon')
62 )
63 or any(ml.logo_detect(file.message_screenshot()).brands,
64 .name == "Amazon" and .confidence == "high"
65 )
66 or length(html.xpath(body.html, '//img[contains(@alt,"Amazon.co")]').nodes
67 ) > 0
68 )
69 and length(body.current_thread.links) < 10
70 and any(body.current_thread.links,
71 (
72 strings.istarts_with(.display_text, 'amazon')
73 or strings.iends_with(.href_url.path, '.jp')
74 )
75 and .href_url.domain.sld != "amazon"
76 )
77 )
78 or (
79 //
80 // This rule makes use of a beta feature and is subject to change without notice
81 // using the beta feature in custom rules is not suggested until it has been formally released
82 //
83 any(ml.nlu_classifier(beta.ocr(file.message_screenshot()).text).intents,
84 .name == "callback_scam" and .confidence != "low"
85 )
86 and (
87 (
88 length(body.current_thread.text) == 0
89 and length(filter(ml.nlu_classifier(beta.ocr(file.message_screenshot()).text
90 ).entities,
91 .name == "org" and strings.icontains(.text, 'amazon')
92 )
93 ) > 3
94 )
95 or regex.imatch(body.current_thread.text,
96 'amazon(?:\s+\w+)?\s+invoice.*',
97 'order confirmation from amazon.*'
98 )
99 or (
100 length(body.current_thread.links) <= 1
101 and length(filter(ml.nlu_classifier(body.current_thread.text).entities,
102 .name == "org" and strings.icontains(.text, 'amazon')
103 )
104 ) > 3
105 )
106 )
107 )
108 )
109 // negate listservs
110 and not (
111 any(headers.hops, any(.fields, .name == "List-Unsubscribe"))
112 and strings.contains(sender.display_name, "via")
113 )
114 and sender.email.domain.root_domain not in~ (
115 'amazon.com',
116 'amazon.com.au',
117 'amazon.de',
118 'amazon.es',
119 'amazon.fr',
120 'amazon.it',
121 'amazon.in',
122 'amazon.lu',
123 'amazon.nl',
124 'amazonsellerservices.com',
125 'amazon.ae',
126 'amazon.sa',
127 'amazon.com.sg',
128 'amazon.co.uk',
129 'amazon.co.jp',
130 'amazon.com.mx',
131 'amazon.com.br',
132 'amazon.com.tr',
133 'amazon.cn',
134 'amazon.ca',
135 'amazon.sg',
136 'amazonaws.cn',
137 'amazonpay.in',
138 'amazonpay.com',
139 'q4inc.com',
140 'synchronybank.com',
141 'opodo.com',
142 'flynas.com',
143 'amazonmusic.com',
144 'blink.com',
145 'affirm.com',
146 'amazon.work',
147 'amazon.jobs',
148 'rocketmoney.com',
149 'registrar.amazon',
150 'amazonworkspaces.com',
151 'awsapps.com',
152 'aws.com',
153 'awsevents.com',
154 'amazon.se',
155 'amazon.ie',
156 'amazonconnect.com',
157 'aws-experience.com',
158 'proofpointessentials.com',
159 'area1security.com',
160 'marketplace.aws',
161 'quicksight.aws',
162 'amazonpreview.com'
163 )
164
165 // negate amazon.com.be explicitly, this cannot be part of the root_domain set above as it uses the PSL (Public suffix list) for parsing and com.be is owned by amazon directly.
166 and sender.email.domain.domain not in~ ('amazon.com.be')
167 and sender.email.email not in $recipient_emails
168 and sender.email.domain.domain not in $org_domains
169
170 // negate highly trusted sender domains unless they fail DMARC authentication
171 and not (
172 sender.email.domain.root_domain in $high_trust_sender_root_domains
173 and coalesce(headers.auth_summary.dmarc.pass, false)
174 )
175
176attack_types:
177 - "Credential Phishing"
178tactics_and_techniques:
179 - "Impersonation: Brand"
180 - "Social engineering"
181detection_methods:
182 - "Header analysis"
183 - "Sender analysis"
184id: "13fc967d-4cc6-501d-9637-8c0761a1a354"