picoCTF · picoGym Forensics Easy 50 pts

PDF Metadata — Flag in Author Field

Challenge Overview

A PDF file containing apparently meaningless content, with the flag hidden in the document's Author metadata field — encoded in Base64. PDF metadata fields (Author, Title, Subject, Keywords, Producer) are a common location for hidden data in forensics challenges.

Extraction

pdfinfo confidential.pdf

# Output:
Author: cGljb0NURntwdXp6bDNkX20zdGFkYXRhX2YwdW5kIV8wZTJkZTVhMX0=
Producer: PyPDF2
Pages: 1

echo "cGljb0NURntwdXp6bDNkX20zdGFkYXRhX2YwdW5kIV8wZTJkZTVhMX0=" | base64 -d
# picoCTF{puzzl3d_m3tadata_f0und!_0e2de5a1}

PDF Metadata Forensics Checklist

ToolCommandWhat to check
pdfinfopdfinfo file.pdfAuthor, Title, Subject, Keywords, Producer, Creator
exiftoolexiftool file.pdfAll metadata including embedded XMP
stringsstrings file.pdf | grep picoPlain-text strings anywhere in the binary
binwalkbinwalk -e file.pdfEmbedded files, additional data streams
Key Insight: Always run exiftool and pdfinfo as the first step on any document forensics challenge before opening the file visually. Metadata fields are invisible to normal document viewers but trivially readable with command-line tools — and frequently used to hide data in CTFs.
Flag See challenge on picoCTF picoGym