-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |