Skip to content

Commit

Permalink
Sync from PR#646
Browse files Browse the repository at this point in the history
New Rule (Attachment): PDF with embedded Javascript by @aidenmitchell
#646
Source SHA 3090dfb
Triggered by @jkamdjou
  • Loading branch information
Sublime Rule Testing Bot committed Aug 4, 2023
1 parent dc10284 commit bb5623c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions detection-rules/attachment_pdf_embedded_js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Attachment: PDF with embedded Javascript"
description: |
PDF contains embedded Javascript.
references:
- "https://delivr.to/payloads?id=f1a0c398-995c-4ea3-9404-0b7b27792e8d"
type: "rule"
severity: "medium"
source: |
type.inbound
and any(attachments,
.file_extension == "pdf"
and any(file.explode(.),
(
(any(.scan.strings.strings, strings.icontains(., '/JavaScript')))
and (any(.scan.strings.strings, strings.icontains(., '/JS (')))
)
)
)
tags:
- "Suspicious attachment"
id: "d4cde94f-d9e5-527a-9192-da09f3d21275"
testing_pr: 646
testing_sha: 3090dfbedc67289ec5ae72a2e621a727874e8620

0 comments on commit bb5623c

Please sign in to comment.