-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi, thank you for the good work with the app! The issue is that I'm experiencing false positives when validating PDF files. 100% legitimate PDF files are getting flagged due to standard internal patterns.
I understand that the goal of the package is to catch potentially dangerous content, but it currently makes it easy to get false positives from otherwise perfectly valid and safe PDFs..
Issue details:
When validating some clearly legitimate PDFs, the validator returns:
Suspicious PDF pattern detected: /JS/
Suspicious PDF pattern detected: /Metadata/
Suspicious PDF pattern detected: /OpenAction/
It seems like these can commonly appear in normal PDF files containing form actions or standard document metadata.
Suggested Solution
I'd suggest to allow configurable validation rules or make detection less aggressive for standard patterns. For example adding an option to whitelist certain PDF elements. Or maybe try to analyze the context of these elements to determine whether they really are malicious.