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(ml.link_analysis(.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 not in ("google.com", "goo.gl")
26
27 and ml.link_analysis(.target_url).effective_url.domain.domain != "login.microsoftonline.com"
28 )
29 or ml.link_analysis(.target_url).credphish.disposition == "phishing"
30 )
31 )
32 and (
33 (
34 profile.by_sender().prevalence in ("new", "outlier")
35 and not profile.by_sender().solicited
36 )
37 or (
38 profile.by_sender().any_messages_malicious_or_spam
39 and not profile.by_sender().any_false_positives
40 )
41 )
42attack_types:
43 - "Credential Phishing"
44tactics_and_techniques:
45 - "Evasion"
46 - "Social engineering"
47detection_methods:
48 - "File analysis"
49 - "HTML analysis"
50 - "Natural Language Understanding"
51 - "OLE analysis"
52 - "URL analysis"
53id: "d55793d0-865e-53c4-ae51-f1b0fec50ec6"