Skip to content

Commit 3239520

Browse files
authored
Update attachment_encrypted_pdf_cred_theft.yml (#3484)
1 parent 54466bf commit 3239520

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

detection-rules/attachment_encrypted_pdf_cred_theft.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@ type: "rule"
44
severity: "medium"
55
source: |
66
type.inbound
7-
and any(attachments,
8-
.file_type == "pdf"
9-
and any(file.explode(.),
10-
any(.scan.exiftool.fields, .key == "Encryption")
11-
or (
12-
.scan.entropy.entropy > 7
13-
and any(.scan.strings.strings,
14-
strings.icontains(., "/Encrypt")
15-
)
16-
)
7+
and any(filter(attachments, .file_type == "pdf"),
8+
any(file.explode(.),
9+
any(.scan.exiftool.fields, .key == "Encryption")
10+
or (
11+
.scan.entropy.entropy > 7
12+
and any(.scan.strings.strings, strings.icontains(., "/Encrypt"))
13+
)
1714
)
15+
// Encrypted PDFs do not have child nodes with any data
16+
and all(filter(file.explode(.), .depth > 0), .size == 0)
1817
)
1918
and (
2019
any(ml.nlu_classifier(body.current_thread.text).intents,
@@ -76,7 +75,6 @@ source: |
7675
)
7776
or sender.email.domain.root_domain not in $high_trust_sender_root_domains
7877
)
79-
8078
attack_types:
8179
- "Credential Phishing"
8280
tactics_and_techniques:

0 commit comments

Comments
 (0)