Can a PDF Contain a Virus? What to Check Before Opening One

A PDF can contain malicious content or be used as part of a scam. The file may exploit a vulnerability in outdated reader software, contain a harmful attachment, or send you to a phishing or malware website. A file merely ending in .pdf is not proof that it is safe.

Before opening an unexpected PDF:

  • Verify the sender through a separate channel. A familiar name can be spoofed or come from a compromised account.
  • Question the context. Unexpected invoices, legal notices, shipping documents, and urgent account warnings are common lures.
  • Check the complete filename. A name designed to resemble a PDF may actually use a different executable file type.
  • Keep the operating system, browser, and PDF reader updated. Updates close vulnerabilities that malicious documents may target.
  • Avoid enabling scripts, opening embedded files, or following login links unless you have independently verified the document.
  • Use security scanning as one signal, not a guarantee. A clean result may not detect a new or carefully disguised threat.

If you opened a suspicious PDF, close it, avoid its links or attachments, update and scan the device, and change any credentials entered after following a link.

What is the first thing you check when an unexpected document arrives?