BEC/Fraud: Generic scam attempt to undisclosed recipients

Detects potential generic scams by analyzing text within the email body and other suspicious signals.

Sublime rule (View on GitHub)

 1name: "BEC/Fraud: Generic scam attempt to undisclosed recipients"
 2description: |
 3    Detects potential generic scams by analyzing text within the email body and other suspicious signals.
 4type: "rule"
 5severity: "low"
 6source: |
 7  type.inbound
 8  
 9  // undisclosed recipients
10  and any([recipients.to, recipients.bcc, recipients.cc],
11          any(., .display_name =~ "Undisclosed recipients")
12  )
13  
14  // mismatched sender (from) and Reply-to
15  and any(headers.reply_to,
16          length(headers.reply_to) > 0
17          and all(headers.reply_to,
18                  .email.domain.root_domain != sender.email.domain.root_domain
19          )
20  )
21  
22  // generic recipient
23  and any(ml.nlu_classifier(body.current_thread.text).entities,
24          .name == "recipient" and regex.icontains(.text, "(sir|madam)")
25  )
26  
27  // request made
28  and any(ml.nlu_classifier(body.current_thread.text).entities,
29          .name == "request"
30  )
31  
32  // not a bec scam
33  and all(ml.nlu_classifier(body.current_thread.text).intents, .name != "bec")
34  
35  // negate highly trusted sender domains unless they fail DMARC authentication
36  and (
37    (
38      sender.email.domain.root_domain in $high_trust_sender_root_domains
39      and not headers.auth_summary.dmarc.pass
40    )
41    or sender.email.domain.root_domain not in $high_trust_sender_root_domains
42  )  
43attack_types:
44  - "BEC/Fraud"
45tactics_and_techniques:
46  - "Social engineering"
47detection_methods:
48  - "Content analysis"
49  - "Header analysis"
50  - "Natural Language Understanding"
51  - "Sender analysis"
52id: "5dac401f-d3c1-5092-aba4-58ab597c702b"
to-top