Callback phishing via Xodo Sign comment
This rule inspects messages originating from legitimate Xodo Sign infrastructure, with content matching Callback Phishing criteria, in the body, requiring at least one brand name, as well as 3 matching Callback Phishing terms and a phone number.
Sublime rule (View on GitHub)
  1name: "Callback phishing via Xodo Sign comment"
  2description: "This rule inspects messages originating from legitimate Xodo Sign infrastructure, with content matching Callback Phishing criteria, in the body, requiring at least one brand name, as well as 3 matching Callback Phishing terms and a phone number."
  3type: "rule"
  4severity: "high"
  5source: |
  6  type.inbound
  7  and length(attachments) == 0
  8  and (
  9    not profile.by_sender().solicited
 10    or (
 11      profile.by_sender().any_messages_malicious_or_spam
 12      and not profile.by_sender().any_messages_benign
 13    )
 14  )
 15    // Legitimate Xodo Sign/Eversign sending infratructure
 16    and sender.email.domain.root_domain == 'eversign.com'
 17    and (headers.auth_summary.spf.pass or headers.auth_summary.dmarc.pass)
 18  
 19  and (
 20    // this section is synced with attachment_callback_phish_with_pdf.yml and attachment_callback_phish_with_img.yml
 21    regex.icontains(strings.replace_confusables(body.current_thread.text),
 22                    '(p.{0,3}a.{0,3}y.{0,3}p.{0,3}a.{0,3}l|ma?c.?fee|n[o0]rt[o0]n|geek.{0,5}squad|ebay|symantec|best buy|lifel[o0]c|secure anywhere|starz|utilities premium|pc security|at&t)'
 23    )
 24    or any(ml.logo_detect(file.message_screenshot()).brands,
 25           .name in ("PayPal", "Norton", "GeekSquad", "Ebay", "McAfee", "AT&T")
 26    )
 27  )
 28  and length(body.current_thread.text) < 1750
 29  and (
 30    (
 31      // this seciton is synced with attachment_callback_phish_with_img.yml and attachment_callback_phish_with_pdf.yml
 32      // however, the 3 of logic and requiring a phone number is specific to this rule in order to reduce FPs
 33      // caused by messages which mention cancelling or otherwise managing a subscription
 34      // it is also synced and below for message_screenshot OCR output
 35      3 of (
 36        strings.icontains(body.current_thread.text, 'purchase'),
 37        strings.icontains(body.current_thread.text, 'payment'),
 38        strings.icontains(body.current_thread.text, 'transaction'),
 39        strings.icontains(body.current_thread.text, 'subscription'),
 40        strings.icontains(body.current_thread.text, 'antivirus'),
 41        strings.icontains(body.current_thread.text, 'order'),
 42        strings.icontains(body.current_thread.text, 'support'),
 43        strings.icontains(body.current_thread.text, 'help line'),
 44        strings.icontains(body.current_thread.text, 'receipt'),
 45        strings.icontains(body.current_thread.text, 'invoice'),
 46        strings.icontains(body.current_thread.text, 'call'),
 47        strings.icontains(body.current_thread.text, 'cancel'),
 48        strings.icontains(body.current_thread.text, 'renew'),
 49        strings.icontains(body.current_thread.text, 'refund'),
 50        regex.icontains(body.current_thread.text, "(?:reach|contact) us at"),
 51        strings.icontains(body.current_thread.text, "+1"),
 52        strings.icontains(body.current_thread.text, "amount"),
 53        strings.icontains(body.current_thread.text, "charged"),
 54        strings.icontains(body.current_thread.text, "crypto"),
 55        strings.icontains(body.current_thread.text, "wallet address"),
 56        regex.icontains(body.current_thread.text, '\$\d{3}\.\d{2}\b'),
 57      )
 58      // phone number regex
 59      and regex.icontains(body.current_thread.text,
 60                          '\+?([ilo0-9]{1}.)?\(?[ilo0-9]{3}?\)?.[ilo0-9]{3}.?[ilo0-9]{4}',
 61                          '\+?([ilo0-9]{1,2})?\s?\(?\d{3}\)?[\s\.\-⋅]{0,5}[ilo0-9]{3}[\s\.\-⋅]{0,5}[ilo0-9]{4}'
 62      )
 63    )
 64    or (
 65          // this seciton is synced with attachment_callback_phish_with_img.yml and attachment_callback_phish_with_pdf.yml
 66          // and above for current_thread.text
 67          //
 68          // This rule makes use of a beta feature and is subject to change without notice
 69          // using the beta feature in custom rules is not suggested until it has been formally released
 70          //
 71          3 of (
 72            strings.icontains(beta.ocr(file.message_screenshot()).text, 'purchase'),
 73            strings.icontains(beta.ocr(file.message_screenshot()).text, 'payment'),
 74            strings.icontains(beta.ocr(file.message_screenshot()).text, 'transaction'),
 75            strings.icontains(beta.ocr(file.message_screenshot()).text, 'subscription'),
 76            strings.icontains(beta.ocr(file.message_screenshot()).text, 'antivirus'),
 77            strings.icontains(beta.ocr(file.message_screenshot()).text, 'order'),
 78            strings.icontains(beta.ocr(file.message_screenshot()).text, 'support'),
 79            strings.icontains(beta.ocr(file.message_screenshot()).text, 'help line'),
 80            strings.icontains(beta.ocr(file.message_screenshot()).text, 'receipt'),
 81            strings.icontains(beta.ocr(file.message_screenshot()).text, 'invoice'),
 82            strings.icontains(beta.ocr(file.message_screenshot()).text, 'call'),
 83            strings.icontains(beta.ocr(file.message_screenshot()).text, 'helpdesk'),
 84            strings.icontains(beta.ocr(file.message_screenshot()).text, 'cancel'),
 85            strings.icontains(beta.ocr(file.message_screenshot()).text, 'renew'),
 86            strings.icontains(beta.ocr(file.message_screenshot()).text, 'refund'),
 87            regex.icontains(beta.ocr(file.message_screenshot()).text, "(?:reach|contact) us at"),
 88            strings.icontains(beta.ocr(file.message_screenshot()).text, '+1'),
 89            strings.icontains(beta.ocr(file.message_screenshot()).text, 'amount'),
 90            strings.icontains(beta.ocr(file.message_screenshot()).text, 'charged'),
 91            strings.icontains(beta.ocr(file.message_screenshot()).text, 'crypto'),
 92            strings.icontains(beta.ocr(file.message_screenshot()).text, 'wallet address'),
 93            regex.icontains(beta.ocr(file.message_screenshot()).text, '\$\d{3}\.\d{2}\b'),
 94          )
 95          // phone number regex
 96          and regex.icontains(beta.ocr(file.message_screenshot()).text,
 97                              '\+?([ilo0-9]{1}.)?\(?[ilo0-9]{3}?\)?.[ilo0-9]{3}.?[ilo0-9]{4}',
 98                              '\+?([ilo0-9]{1,2})?\s?\(?\d{3}\)?[\s\.\-⋅]{0,5}[ilo0-9]{3}[\s\.\-⋅]{0,5}[ilo0-9]{4}'
 99          )
100  
101          // negate messages with previous threads.  While callback phishing with thread hijacking or with current_thread 
102          // padded with whitespace and previous threads in the message has been observed, the intetion of using OCR is for image embedded callbacks
103          and not regex.icount(beta.ocr(file.message_screenshot()).text, '(?:from|to|sent|date|cc|subject):') > 3
104          // this notation of previous threads often only occurs once
105          and not regex.icontains(beta.ocr(file.message_screenshot()).text, 'wrote:[\r\n]')
106      
107    )
108  )  
109attack_types:
110  - "Callback Phishing"
111tactics_and_techniques:
112  - "Exploit"
113  - "Impersonation: Brand"
114  - "Out of band pivot"
115  - "Social engineering"
116detection_methods:
117  - "Computer Vision"
118  - "Content analysis"
119  - "Header analysis"
120  - "Sender analysis"
121  - "URL analysis"
122id: "6f722c5d-ea4b-5fc4-9903-45a6310335e0"