Reconnaissance: Empty message from uncommon sender

Detects incoming messages that are completely empty, containing no subject line, message body content, or file attachments. Such messages may be used for reconnaissance, delivery confirmation, or as part of multi-stage attacks.

Sublime rule (View on GitHub)

 1name: "Reconnaissance: Empty message from uncommon sender"
 2description: "Detects incoming messages that are completely empty, containing no subject line, message body content, or file attachments. Such messages may be used for reconnaissance, delivery confirmation, or as part of multi-stage attacks."
 3type: "rule"
 4severity: "low"
 5source: |
 6  type.inbound
 7  and subject.base == ""
 8  and length(attachments) == 0
 9  and (
10    // body is empty
11    (
12      (
13        body.plain.raw is null
14        or body.plain.raw == ""
15        or regex.imatch(body.plain.raw, '^\s*$')
16      )
17      and (
18        body.html.raw is null
19        or body.html.raw == ""
20        or regex.imatch(body.html.raw, '^\s*$')
21      )
22    )
23    // account for disclaimers
24    or (
25      any(map(filter(ml.nlu_classifier(body.current_thread.text).entities,
26                     .name == "disclaimer"
27              ),
28              .text
29          ),
30          (length(body.current_thread.text) - length(.)) == 0
31      )
32    )
33  )
34  and profile.by_sender().prevalence != "common"  
35tags:
36  - "Attack surface reduction"
37attack_types:
38  - "Spam"
39  - "Reconnaissance"
40tactics_and_techniques:
41  - "Evasion"
42  - "Social engineering"
43detection_methods:
44  - "Content analysis"
45  - "Header analysis"
46id: "b347cdbc-a0ee-5901-b61e-356d6ea49d6d"

Related rules

to-top