pdfalyzer
Analyze PDFs. With colors. And Yara. (by michelcrypt4d4mus)
PyPDF2
A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files (by py-pdf)
Our great sponsors
pdfalyzer | PyPDF2 | |
---|---|---|
8 | 30 | |
220 | 7,396 | |
- | 4.1% | |
8.3 | 9.5 | |
20 days ago | 4 days ago | |
Python | Python | |
GNU General Public License v3.0 only | BSD 3-Clause |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pdfalyzer
Posts with mentions or reviews of pdfalyzer.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-10.
-
Are there any PDF specific YARA rules you know of that are not collected in The Pdfalyzer repo yet?
Direct link to the folder with 3 .yara files compiling a bunch of YARA rule sources. Looking for anything not represented here, or even ideas for such.
-
The Pdfalyzer is a tool for visualizing the inner tree structure of a PDF in large and colorful diagrams as well as scanning its internals for suspicious content
The Pdfalyzer is a command line tool (paralyze) as well as a library for working with, visualizing, and scanning the contents of a PDF. Motivation for the project was personal: I got hacked by a PDF that turned out to be hiding its maleficent instructions inside the font binary where it was missed by modern malware scanners (twitter thread) (more details)
-
The Yaralyzer is a new tool for visualizing / force decoding YARA and regular expression matches in binary and text
A few weeks ago I made a post here about a PDF that evaded all malware detection and caused a security breach, almost certainly through PDF instructions hidden inside of an Adobe Type1 Font binary stream embedded within a PDF. At the time I posted a link to a tool I wrote called The Pdfalyzer that diagrams a PDF's internal and scans for various suspect content.
- Any useful cybersecurity software under $5k?
-
Novel PDF malware: injecting JavaScript into the encrypted section of Adobe Type 1 font binaries is not detectable by malware scanners and doesn't interfere with decryption/decompilation of the font (along with a new tool for malicious PDF analysis)
I dramatically scaled up the binary data scouring and visualization in the pdfalyzer... can rip through every backtick/frontslash/single or double quoted/etc etc set of bytes in the binaries and try a bunch of aggressive approaches to force decode them.
-
Novel (?) PDF attack (and a new PDF visualization/threat assessment tool): injecting JavaScript into the encrypted section of Adobe Type 1 font binaries is not detectable by malware scanners (nor does it interfere with the decryption of the font)
The tool is the the pdfalyzer; I just open sourced it. Meant to fill in some gaps around pdf-parser.py and the rest of Didier Stevens's malicious PDF toolkit. Makes pretty charts, previews binary data, and (most importantly) digs through PDF font binaries for potentially executable stuff. Example output can be seen at the GitHub link.
PyPDF2
Posts with mentions or reviews of PyPDF2.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-24.
- Yara scanning PDF files
- I need help install PyPDF2 library on my computer
-
How to convert SVGs containing text to a PDF?
I still haven't needed to do that part in Rust yet, unfortunately. My mother is still using the pypdf-based concatenator I wrote for her years ago.
-
Recommendations for parsing text from .pdf files
I did an extremely quick search and am linking this without knowing anything about it.
-
Learning programming from the beginning to extract data from PDFs?
Pretty much study Python until this Github repo'd Readme makes sense!: https://github.com/py-pdf/PyPDF2
- Is there a GUI for PyPDF2?
-
Any good tutorials for working with pdfs in Rust?
As other posters have said, if you're just generating PDFs, that's doable with minor library support. If you want to open existing PDFs and do anything non-trivial with them, you'll want a mature, powerful PDF parsing library. PDFKit, which is part of macOS is pretty amazing. If you need portability, something like Python's PyPDF2 is probably the best bet. Knowing the Rust community, though, we'll probably get a library at least as good in Rust in a surprisingly short amount of time.
-
PyPDF4 merger not merging pdf's - what am I doing wrong?
Why are you using PyPDF4 which seems to have no active maintainer and no documentation instead of PyPDF2 which has both?
-
Print View
one of many options
-
The Pdfalyzer is a tool for visualizing the inner tree structure of a PDF in large and colorful diagrams as well as scanning its internals for suspicious content
Feel free. I poked around the PyPDF2 code and it seems like reading signatures is something it supports via xfa_form property (GitHub issue where this was discussed; seems to have been closed v. recently) . would probably be a very simple PR provided you knew where to look for that property.
What are some alternatives?
When comparing pdfalyzer and PyPDF2 you can also consider the following projects:
peepdf - Powerful Python tool to analyze PDF documents
PDFMiner - Python PDF Parser (Not actively maintained). Check out pdfminer.six.
Malware-IOCs
ReportLab
pypdfium2 - Python bindings to PDFium
pdfplumber - Plumb a PDF for detailed information about each char, rectangle, line, et cetera — and easily extract text and tables.
DidierStevensSuite - Please no pull requests for this repository. Thanks!
WeasyPrint - The awesome document factory
SysmonForLinux
Camelot - A Python library to extract tabular data from PDFs
CyberPipe - An easy to use PowerShell script to collect memory and disk forensics for DFIR investigations.
borb - borb is a library for reading, creating and manipulating PDF files in python.