Brand impersonation: USPS

Impersonation of the United States Postal Service.

Sublime rule (View on GitHub)

 1name: "Brand impersonation: USPS"
 2description: "Impersonation of the United States Postal Service."
 3type: "rule"
 4severity: "high"
 5source: |
 6  type.inbound
 7  and any(ml.logo_detect(beta.message_screenshot()).brands, .name == "USPS")
 8  and length(body.links) > 0
 9  and 2 of (
10    any(body.links,
11        strings.ilike(.display_text,
12                      "*check now*",
13                      "*track*",
14                      "*package*",
15                      '*view your order*'
16        )
17    ),
18    strings.ilike(body.current_thread.text,
19                  "*returned*to*sender*",
20                  "*redelivery*"
21    ),
22    // impersonal greeting
23    any(ml.nlu_classifier(body.current_thread.text).entities,
24        .name == "recipient" and .text =~ "Customer"
25    ),
26    // no links go to usps.com
27    all(body.links, .href_url.domain.root_domain != "usps.com")
28  )
29  and (
30    sender.email.domain.root_domain not in (
31        "usps.com", 
32        "opinions-inmoment.com" // https://faq.usps.com/s/article/USPS-Customer-Experience-Surveys
33    )
34    or (
35      sender.email.domain.root_domain in (
36          "usps.com", 
37          "opinions-inmoment.com" // https://faq.usps.com/s/article/USPS-Customer-Experience-Surveys
38      )
39      and not headers.auth_summary.dmarc.pass
40    )
41  )
42  
43  // negate highly trusted sender domains unless they fail DMARC authentication
44  and (
45    (
46      sender.email.domain.root_domain in $high_trust_sender_root_domains
47      and not headers.auth_summary.dmarc.pass
48    )
49    or sender.email.domain.root_domain not in $high_trust_sender_root_domains
50  )  
51attack_types:
52  - "Credential Phishing"
53tactics_and_techniques:
54  - "Image as content"
55  - "Impersonation: Brand"
56  - "Social engineering"
57detection_methods:
58  - "Computer Vision"
59  - "Content analysis"
60  - "Natural Language Understanding"
61  - "Sender analysis"
62id: "28b9130a-d8e0-50af-97c9-c1b8f4c46d68"
to-top