Skip to content

Commit ca4a7a0

Browse files
Update attachment_encrypted_pdf_cred_theft.yml (#3087)
Co-authored-by: Brandon Murphy <[email protected]>
1 parent 84f3bf1 commit ca4a7a0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

detection-rules/attachment_encrypted_pdf_cred_theft.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,25 @@ source: |
2323
or any(ml.nlu_classifier(beta.ocr(beta.message_screenshot()).text).intents,
2424
.name == "cred_theft" and .confidence in ("medium", "high")
2525
)
26+
or (
27+
(
28+
regex.icontains(body.current_thread.text,
29+
'PDF\s*(?:Access|Unlock|Decrypt)\s*(?:Pass)?code'
30+
)
31+
or (
32+
(
33+
length(body.current_thread.text) <= 10
34+
or (body.current_thread.text is null)
35+
)
36+
and any(body.previous_threads,
37+
regex.icontains(.text,
38+
'PDF\s*(?:Access|Unlock|Decrypt)\s*(?:Pass)?code'
39+
40+
)
41+
)
42+
)
43+
)
44+
)
2645
)
2746
and (
2847
(

0 commit comments

Comments
 (0)