Attachment: PDF with fake document share notice

Detects PDF attachments containing a fake document sharing notice that tells the recipient to click a pictured button to access the shared files, along with an embedded link.

Sublime rule (View on GitHub)

 1name: "Attachment: PDF with fake document share notice"
 2description: "Detects PDF attachments containing a fake document sharing notice that tells the recipient to click a pictured button to access the shared files, along with an embedded link."
 3type: "rule"
 4severity: "high"
 5source: |
 6  type.inbound
 7  and any(filter(attachments, .file_type == "pdf"),
 8          any(file.explode(.), length(.scan.url.urls) > 0)
 9          and any(file.explode(.),
10                  any(.scan.strings.strings,
11                      // the button is an image, so the text only names it: click the "<label>" above to access document
12                      regex.icontains(.,
13                                      '\bclick the\s*\p{P}[^\n]{2,40}?\p{P}\s*above to access (?:the )?(?:document|file)s?\b'
14                      )
15                      // fake file share notice headline
16                      or strings.icontains(.,
17                                           "you have received a new document file"
18                      )
19                  )
20          )
21  )  
22attack_types:
23  - "Credential Phishing"
24tactics_and_techniques:
25  - "PDF"
26  - "Social engineering"
27detection_methods:
28  - "Content analysis"
29  - "File analysis"
30id: "041475d7-724e-5a8a-b45d-fb4c7a4752f5"
to-top