Skip to content

Commit 84f3bf1

Browse files
zoomequipdID Generator
andauthored
Create attachment_eml_encrypted_zip.yml (#2990)
Co-authored-by: ID Generator <[email protected]>
1 parent 130d897 commit 84f3bf1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Attachment: EML with Encrypted ZIP"
2+
description: "Detects when an EML file is attached that contains an encrypted ZIP file. The encryption can be used to bypass security scanning and deliver malicious content."
3+
type: "rule"
4+
severity: "low"
5+
source: |
6+
type.inbound
7+
// attached EML
8+
and any(filter(attachments, .content_type == "message/rfc822"),
9+
// Attached EML contains a ZIP file
10+
any(filter(file.parse_eml(.).attachments,
11+
.file_type == "zip" or .file_extension == "zip"
12+
),
13+
// ZIP file is encrypted
14+
any(file.explode(.),
15+
any(.flavors.yara, . == 'encrypted_zip') or .scan.zip.encrypted
16+
)
17+
)
18+
)
19+
tags:
20+
- "Attack surface reduction"
21+
attack_types:
22+
- "Malware/Ransomware"
23+
tactics_and_techniques:
24+
- "Encryption"
25+
- "Evasion"
26+
detection_methods:
27+
- "Archive analysis"
28+
- "File analysis"
29+
- "YARA"
30+
id: "6897a8f7-da66-52ed-a39e-d8c643e78fe9"

0 commit comments

Comments
 (0)