Attachment: Office file contains OLE relationship to credential phishing page

Office file OLE relationship link is a credential page, or contains credential phishing language.

Sublime rule (View on GitHub)

 1name: "Attachment: Office file contains OLE relationship to credential phishing page"
 2description: |
 3    Office file OLE relationship link is a credential page, or contains credential phishing language.
 4type: "rule"
 5severity: "high"
 6source: |
 7  type.inbound
 8  and any(attachments,
 9          (
10            .file_extension in~ $file_extensions_macros
11            or (
12              .file_extension is null
13              and .file_type == "unknown"
14              and .content_type == "application/octet-stream"
15              and .size < 100000000
16            )
17          )
18          and any(file.oletools(.).relationships,
19                  (
20                    any(ml.nlu_classifier(beta.linkanalysis(.target_url).final_dom.display_text
21                        ).intents,
22                        .name == "cred_theft"
23                        and .confidence in ("medium", "high")
24                    )
25                    and .target_url.domain.root_domain != "google.com"
26                  )
27                  or beta.linkanalysis(.target_url).credphish.disposition == "phishing"
28          )
29  )
30  and (
31    (
32      profile.by_sender().prevalence in ("new", "outlier")
33      and not profile.by_sender().solicited
34    )
35    or (
36      profile.by_sender().any_messages_malicious_or_spam
37      and not profile.by_sender().any_false_positives
38    )
39  )  
40
41attack_types:
42  - "Credential Phishing"
43tactics_and_techniques:
44  - "Evasion"
45  - "Social engineering"
46detection_methods:
47  - "File analysis"
48  - "HTML analysis"
49  - "Natural Language Understanding"
50  - "OLE analysis"
51  - "URL analysis"
52id: "d55793d0-865e-53c4-ae51-f1b0fec50ec6"
to-top