Skip to content

Commit

Permalink
Update Maldoc_PDF.yar
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven authored May 27, 2024
1 parent a655a9e commit a11e65e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion data/yara/binaries/Maldoc_PDF.yar
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ rule invalid_trailer_structure : PDF raw
strings:
$magic = { 25 50 44 46 }
// Required for a valid PDF
// Required for a valid PDF
$reg0 = /trailer\r?\n?.{,8192}\/Size.{,8192}\r?\n?/
$reg1 = /\/Root.{,8192}\r?\n?.{,8192}startxref\r?\n?.{,8192}\r?\n?%%EOF/
Expand Down Expand Up @@ -371,6 +371,7 @@ rule embed_wrong_version : PDF raw
$magic in (0..1024) and $embed and not $ver
}

/* Not compatible with yara-x
rule invalid_xref_numbers : PDF raw
{
meta:
Expand All @@ -387,6 +388,7 @@ rule invalid_xref_numbers : PDF raw
condition:
$magic in (0..1024) and not $reg0 and not $reg1
}
*/

rule js_splitting : PDF raw
{
Expand Down

0 comments on commit a11e65e

Please sign in to comment.