-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathattachment_mssaveoropenblob.yml
36 lines (36 loc) · 1.12 KB
/
attachment_mssaveoropenblob.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
name: "Attachment: HTML Smuggling with msSaveOrOpenBlob"
description: |
HTML attachment contains evidence of smuggling using HTML5 JavaScript identifiers including msSaveOrOpenBlob.
type: "rule"
severity: "medium"
authors:
- twitter: "delivr_to"
references:
- https://delivr.to/payloads?id=be91a311-a023-4221-96da-6f5b717fdc54
- https://outflank.nl/blog/2018/08/14/html-smuggling-explained/
source: |
type.inbound
and any(attachments,
.size < 2097152 and //2mb
(
.file_extension in~ ("htm", "html", "dhtml", "shtml") or
.file_extension in $file_extensions_common_archives or
.file_type == "html"
) and
any(file.explode(.),
any(.flavors.yara, . =~ "javascript_file") and
any([.scan.javascript.identifiers, .scan.javascript.strings],
all([
'msSaveOrOpenBlob',
'createObjectURL',
'revokeObjectURL',
'appendChild',
'download'
],
. in~ ..
)
)
)
)
tags:
- "Suspicious Attachment"