PDFinfo
pdfinfo is a command-line utility (part of the poppler-utils package) designed to quickly extract metadata and information...
Description and Purpose
Sección titulada «Descripción y Propósito»pdfinfo is a command-line utility (part of the poppler-utils package) designed to quickly extract metadata and structural information from a PDF file.
It is a lightweight and specialized tool, focused exclusively on analyzing PDF documents. In the context of cybersecurity, its main utility lies in the Reconnaissance and Information Gathering (OSINT) phase when analyzing public or leaked documents.
- Technological Profiling: Its most valuable function is revealing the “Creator” and “Producer” fields. This indicates which programs were used to generate the PDF (e.g.,
Microsoft Word 2019,Adobe Acrobat 11.0,Google Chrome Skia). Knowing the software and its versions can expose an obsolete or vulnerable internal infrastructure. - Metadata Extraction: We obtain basic information that can be sensitive, such as:
- Author (may reveal usernames or employees).
- Title, Subject, and Keywords (may filter internal project names).
- Creation and Modification Dates (establish timelines).
- Structural Analysis: We report on the PDF version, the number of pages, and, crucially, whether the document is encrypted, password-protected, or has restrictions (such as preventing copying or printing).
Basic Example Command (Reading)
Sección titulada «Comando Básico de Ejemplo (Lectura)»The command displays a clean summary of the PDF properties.
pdfinfo [nombre_del_archivo.pdf]Practical Example:
If we want to analyze a document named manual_interno.pdf:
pdfinfo manual_interno.pdfExpected Result:
The tool will return a structured list of properties such as:
Title: Informe Confidencial Q3Author: j.perezCreator: Microsoft® Word 2016Producer: Adobe PDF Library 15.0CreationDate: Tue Oct 10 09:30:15 2024ModDate: Wed Oct 11 14:45:00 2024Tagged: yesPages: 42Encrypted: noPage size: 595 x 842 pts (A4)File size: 1234567 bytesOptimized: yesPDF version: 1.7
