Link: All-caps PDF link with suspicious recipient

Flags inbound messages that lack a legitimate recipient context—either no 'to' recipients, all 'to' recipients having invalid domains, or a 'self-sender' pattern where the sole recipient matches the sender with no CC—combined with a link whose display text is in all capital letters and ends in '.PDF', points to a domain unrelated to the sender, and where no actual PDF attachment is present in the message.

Sublime rule (View on GitHub)

 1name: "Link: All-caps PDF link with suspicious recipient"
 2description: "Flags inbound messages that lack a legitimate recipient context—either no 'to' recipients, all 'to' recipients having invalid domains, or a 'self-sender' pattern where the sole recipient matches the sender with no CC—combined with a link whose display text is in all capital letters and ends in '.PDF', points to a domain unrelated to the sender, and where no actual PDF attachment is present in the message."
 3type: "rule"
 4severity: "medium"
 5source: |
 6  type.inbound
 7  and (
 8    // there are no recipients
 9    length(recipients.to) == 0
10    // or the recipients are all invalid
11    or all(recipients.to, .email.domain.valid == false)
12  
13    // or the sender exhibits a "self sender" pattern
14    or (
15      length(recipients.to) == 1
16      and recipients.to[0].email.email == sender.email.email
17      and length(recipients.cc) == 0
18    )
19  )
20  and any(body.current_thread.links,
21          strings.ends_with(.display_text, '.PDF')
22          // link text is in all caps
23          and not regex.contains(.display_text, "[a-z]")
24          and not .href_url.domain.root_domain == sender.email.domain.root_domain
25  )
26  and not any(attachments, .file_type == 'pdf' or .file_extension == 'pdf')  
27attack_types:
28  - "Credential Phishing"
29tactics_and_techniques:
30  - "Social engineering"
31  - "Spoofing"
32detection_methods:
33  - "URL analysis"
34  - "Header analysis"
35  - "Content analysis"
36id: "3872dfc1-4072-5ca1-8f0e-c5ebfcf4e9db"
to-top