Brand impersonation: PayPal
Impersonation of PayPal.
Sublime rule (View on GitHub)
1name: "Brand impersonation: PayPal"
2description: |
3 Impersonation of PayPal.
4references:
5 - "https://www.welivesecurity.com/2019/12/20/scam-wants-more-than-paypal-logins/"
6type: "rule"
7severity: "medium"
8source: |
9 type.inbound
10 and (
11 sender.display_name =~ "paypal"
12 or strings.ilevenshtein(sender.display_name, 'paypal') <= 1
13 or strings.ilike(sender.email.domain.domain, '*paypal*')
14 or any(attachments,
15 (.file_type in $file_types_images or .file_type == "pdf")
16 and any(ml.logo_detect(.).brands, .name == "PayPal")
17 and any(file.explode(.),
18 // exclude images taken with mobile cameras and screenshots from android
19 not any(.scan.exiftool.fields,
20 .key == "Model"
21 or (
22 .key == "Software"
23 and strings.starts_with(.value, "Android")
24 )
25 )
26 // exclude images taken with mobile cameras and screenshots from Apple
27 and not any(.scan.exiftool.fields,
28 .key == "DeviceManufacturer"
29 and .value == "Apple Computer Inc."
30 )
31 and strings.ilike(.scan.ocr.raw, "*PayPal*")
32 and strings.ilike(.scan.ocr.raw,
33 "*invoice*",
34 "*transaction*",
35 "*bitcoin*",
36 "*dear customer*",
37 )
38 )
39 )
40 )
41 and sender.email.domain.root_domain not in (
42 'paypal.com',
43 'paypal.at',
44 'paypal.ch',
45 'paypal.nl',
46 'paypal.co.uk',
47 'google.com',
48 'q4inc.com',
49 'paypal.com.au',
50 'paypal.com.mx',
51 'paypal.se',
52 'paypal.be',
53 'paypal.de',
54 'paypal.dk',
55 'paypal.pl',
56 'paypal.es',
57 'paypal.ca',
58 'paypal.fr',
59 'paypal.it',
60 'paypal.com.sg',
61 'synchronyfinancial.com',
62 'synchronybank.com',
63 'zettle.com',
64 'paypal-experience.com',
65 'paypalcorp.com',
66 'paypal-customerfeedback.com',
67 'paypal-creditsurvey.com',
68 'paypal-prepaid.com',
69 'xoom.com',
70 'paypal.co.il',
71 'paypal.co.br'
72 )
73 and (
74 not profile.by_sender().solicited
75 or (
76 profile.by_sender().any_messages_malicious_or_spam
77 and not profile.by_sender().any_false_positives
78 )
79 )
80
81 // negate highly trusted sender domains unless they fail DMARC authentication
82 and (
83 (
84 sender.email.domain.root_domain in $high_trust_sender_root_domains
85 and not headers.auth_summary.dmarc.pass
86 )
87 or sender.email.domain.root_domain not in $high_trust_sender_root_domains
88 )
89
90attack_types:
91 - "Credential Phishing"
92tactics_and_techniques:
93 - "Impersonation: Brand"
94 - "Lookalike domain"
95 - "Social engineering"
96detection_methods:
97 - "Computer Vision"
98 - "Content analysis"
99 - "File analysis"
100 - "Header analysis"
101 - "Sender analysis"
102id: "a6b2ceee-ea57-594d-8437-698fad55c9bf"