Brand Impersonation: Stripe

Impersonation of Stripe, usually for credential theft.

Sublime rule (View on GitHub)

  1name: "Brand Impersonation: Stripe"
  2description: |
  3    Impersonation of Stripe, usually for credential theft.
  4type: "rule"
  5severity: "high"
  6source: |
  7  type.inbound
  8  and (
  9    // Display name after replacing unicode confusables is stripe
 10    (
 11      sender.display_name =~ 'stripe'
 12      or (
 13        strings.istarts_with(sender.display_name, 'stripe ')
 14        and not sender.display_name in~ (
 15          'Stripe & Stare',
 16          'Stripe and Stare',
 17          'Stripe Events'
 18        )
 19      )
 20      or strings.replace_confusables(sender.display_name) =~ 'stripe'
 21      // fake stripe invoice in attached picture
 22      or (
 23        any(attachments,
 24            .file_type in $file_types_images
 25            and any(file.explode(.),
 26                    strings.ilike(.scan.ocr.raw, "*stripe*")
 27                    and any(ml.nlu_classifier(.scan.ocr.raw).intents,
 28                            .name in ("callback_scam")
 29                            and .confidence in ("medium", "high")
 30                    )
 31            )
 32        )
 33      )
 34      or (
 35        regex.imatch(strings.replace_confusables(body.html.inner_text),
 36                     '.*powered by\s+stripe'
 37        )
 38        and any(body.current_thread.links,
 39                .href_url.domain.root_domain in $free_file_hosts
 40                or .href_url.domain.root_domain in $url_shorteners
 41                or .href_url.domain.root_domain in $free_subdomain_hosts
 42        )
 43      )
 44    )
 45    or (
 46      // the edit distance is 1 or 2
 47      strings.ilevenshtein(strings.replace_confusables(sender.display_name),
 48                           'stripe'
 49      ) <= 2
 50      // the length is the same as "stripe"
 51      and length(sender.display_name) == 6
 52      // and not one of these english words that matches the edit distance
 53      and not sender.display_name in~ (
 54        "strive",
 55        "stride",
 56        "strife",
 57        "strike",
 58        "strobe",
 59        "stroke",
 60        "streps",
 61        "string",
 62        "scribe",
 63        "straye", // a shoe company?
 64        "storie", // storiesbystorie.com
 65        "stryke", // a cybersecurity and compliance company
 66        "stryve", // a food/snack company stryve.com
 67        "shrine", // common word
 68        "s.ride", // cab/taxi company
 69        "striim", // ai/data company
 70        "striim.com", // same as above
 71        "skribe" // ai/legal company
 72      )
 73    )
 74  )
 75  and not (
 76    sender.email.domain.root_domain in~ (
 77      'stripe.com',
 78      'stripetour.com',
 79      'stripepress.com'
 80    )
 81    and coalesce(headers.auth_summary.dmarc.pass, false)
 82  )
 83  and sender.email.email not in $recipient_emails
 84  
 85  // Stripe adds a custom header
 86  // don't match messages with the header
 87  and not any(headers.hops, any(.fields, .name == "X-Stripe-EID"))
 88  
 89  // negate highly trusted sender domains unless they fail DMARC authentication
 90  and not (
 91    sender.email.domain.root_domain in $high_trust_sender_root_domains
 92    and coalesce(headers.auth_summary.dmarc.pass, false)
 93  )  
 94
 95attack_types:
 96  - "Credential Phishing"
 97tactics_and_techniques:
 98  - "Impersonation: Brand"
 99  - "Lookalike domain"
100  - "Social engineering"
101detection_methods:
102  - "Header analysis"
103  - "Sender analysis"
104id: "862d4654-4a32-50c1-a441-b3a5106be174"
to-top