skillfed

pdfid

PDFID simple tool to analyze PDF malicious files by DidierStevens. Customized by Matteo Lodi to be used as a library.

pdfid v1.1.3 295.6K downloads/30d#7,920 on PyPI21
Permissive license Abandoned released

What it is and what it does

pdfid is a port of Didier Stevens' PDF analysis tool, designed to detect potentially malicious PDF files by examining their structure and embedded objects. It works as both a standalone command-line utility and as an importable Python library, allowing you to programmatically scan PDFs for suspicious characteristics without requiring external dependencies.

The tool identifies PDF features commonly associated with exploits—such as embedded JavaScript, suspicious object types, or unusual compression—to help security researchers and developers flag files that warrant deeper inspection. Because it has no runtime dependencies and supports a wide Python version range, it integrates easily into existing workflows, though its analysis approach is structural rather than behavioral.

Use it for:

  • Scan uploaded PDFs in a web application to flag potentially malicious files before processing or storage.
  • Batch-analyze PDF repositories to identify suspicious documents for manual review by security teams.
  • Integrate PDF threat detection into automated malware scanning pipelines or security monitoring systems.
  • Examine PDF structure during reverse-engineering or incident response investigations.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Analyzes PDF files to identify potentially malicious content by examining structural characteristics and embedded objects, usable both as a command-line tool and as a Python library.

Yes, if you need lightweight PDF structural analysis and can accept that the tool is no longer maintained. The low install friction and permissive license make it practical for security workflows, but verify that its heuristics meet your threat model and test compatibility with your Python environment before relying on it in production.

Install

pdfid on PyPI

pip

pip install pdfid

uv

uv add pdfid

poetry

poetry add pdfid

Installing pdfid

Before you install

Low install friction with no runtime dependencies. However, the package is abandoned—last updated 2023-06-06, over 1165 days ago—so expect no maintenance, bug fixes, or compatibility updates for modern Python versions.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

Quickstart

pip install pdfid

import pdfid
# See test.py in the repository for library usage examples

Requires Python 2.6 or later (up to Python 3.x); verify compatibility with your specific Python version before use in production.

Verify before relying

  • Whether the tool's PDF analysis heuristics remain effective against current malware techniques and PDF specifications.
  • Compatibility with Python versions beyond what was tested at the time of the last release.

Package facts

License not declared (permissive)
Python support supports the current Python release (>=2.6, <4)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance abandoned — 1,165 days since the last release
Last repo commit
First released
Downloads 295,599/month — #7,920 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pdfid-1.1.3-py3-none-any.whl

License :: OSI Approved :: MIT LicenseProgramming Language :: Python

Tags

pdf malware analysispdf structure inspectionpdf security scanninganalyze pdf filespdf object detectionpdf threat assessment
pdf-analysismalware-detectionsecurity-tools

More Security packages