-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathattachment_office_stylesheet_scripting.yml
47 lines (46 loc) · 1.43 KB
/
attachment_office_stylesheet_scripting.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: "Attachment: Office Stylesheet Scripting"
description: |
A document, or zipped document that makes use of XLST stylesheet scripting.
type: "rule"
severity: "medium"
authors:
- twitter: "delivr_to"
references:
- https://delivr.to?id=7d1a16d0-0b46-4feb-8e97-1d193639a0e9
source: |
type.inbound
and any(attachments,
(
1 of (
// Office macro files
.file_extension in~ $file_extensions_macros,
// explode archives
.file_extension in~ $file_extensions_common_archives,
// detect files without an extension
.file_type in ("7z")
)
and any(file.explode(.),
.file_extension == "xml" and
any(.scan.strings.strings, strings.icontains(., "ms:script"))
)
and any(file.explode(.),
any(.flavors.yara, . == "vb_file") and
any(.scan.strings.strings, strings.ilike(.,
// https://github.com/decalage2/oletools/issues/851
"*transformNodeToObject*",
"*LoadXML*",
"*transformNode*"
))
)
)
)
and (
not profile.by_sender().solicited
or (
profile.by_sender().any_messages_malicious_or_spam
and not profile.by_sender().any_false_positives
)
or sender.email.domain.domain == "delivrto.me"
)
tags:
- "Suspicious Attachment"