Skip to content

QR Code in a PDF Attachment? How to Check It Before You Scan

  • pdf
  • phishing
  • qr-codes
  • security

A QR code inside an unexpected PDF attachment is a link you can't see, so don't scan it until you have checked the sender through a channel you already trust. Microsoft's report on email threats for July to September 2026 found that PDFs carried 61% to 78% of QR code phishing attacks each month.

What did Microsoft's Q3 2026 report find about PDFs and QR codes?

Microsoft Threat Intelligence published its email threat review for the third quarter of 2026 on 5 November 2026. It counted roughly 7.3 billion email phishing threats from July to September, and about 12.1 million of them used QR codes. QR code phishing fell 67% from the second quarter. The PDF numbers are the part that matters for anyone who opens attachments.

Measure (Q3 2026)Figure
Share of QR code attacks sent as PDF attachments, July and August78%
Share of QR code attacks sent as PDF attachments, September61%
Share of QR code attacks with the code embedded in the email body5% in July, 12% in September
PDF share of malicious attachment payloads, August and September27% to 30% (the top payload type)
Payload attacks that sent the recipient to a phishing site94% to 96%

There are fewer QR code attacks than earlier in the year, but the PDF is still where most of them hide. Most malicious attachments are also built to steal passwords rather than install malware. In one August campaign the report describes, a document told the reader to scan its QR code to see "revised details". That moved the phishing link out of the email text and into an image.

Why do scammers put QR codes in PDFs instead of links?

A normal link in an email is text. Mail filters can read it, compare it with lists of known bad sites, and rewrite it so it gets checked when you click. A QR code is a picture of a link. A filter that only reads text sees a harmless image inside a harmless-looking invoice or form.

The second reason is the device. Microsoft notes that a QR code can move a person from a message on a managed work computer to a phishing page on a personal phone. The phone often has none of the company's protection. The screen is also small, which makes a fake address harder to spot.

How do I check a QR code in a PDF before scanning it?

Work through these steps in order and stop as soon as something looks wrong.

  1. Ask whether you expected the file. The Federal Trade Commission advises against scanning a QR code in an email or text message you were not expecting. An unexpected invoice, payroll notice or "secure document" is the classic lure.
  2. Check the sender outside the email. Contact the company or colleague using a phone number or website you already know is real, not the details printed in the PDF. If they didn't send it, delete it.
  3. Look at what the document asks you to do. Lines like "scan to view", "scan to re-authenticate" or "scan to release payment" are the pattern Microsoft describes. A real company rarely makes a QR code the only way to read a document.
  4. Read the address before you open it. Most phone cameras show the web address before they open it. The FTC says to check that the address matches one you recognise and to watch for misspellings or swapped letters. Don't tap through to find out.
  5. Never sign in from a scanned code. If the page asks for your work or bank login, close it. Go to the service by typing its address yourself or using a saved bookmark.
  6. Report it. At work, use your mail client's phishing report button or forward the email to your IT team, so they can block the same campaign for everyone else.

Can I look at the page without opening the PDF in my usual reader?

Yes. If you want to inspect a suspicious file before you decide anything, turn its pages into pictures with the PDF to JPG tool. It runs in your browser and does not upload the file. You get flat images of each page that you can zoom into, and nothing on them can be clicked. You can also hold your phone camera up to the image and read the previewed address without tapping it.

The text inside the file tells you something too. Running the document through PDF to Text shows its words and any web addresses that are typed out as text. A QR code is an image, so its link won't appear in that output. If the text says "scan to access your document" and contains no typed address anywhere, the code is the only way in. That is the hiding pattern Microsoft describes. Neither tool judges whether a link is safe: they help you look, and the decision is still yours.

Does a QR code in a PDF mean the file is dangerous?

No. Plenty of legitimate PDFs carry QR codes: event tickets, boarding passes, utility bills that link to a payment page, restaurant menus, and product manuals. What matters is the context, not the code. A QR code in a ticket you just bought is expected. A QR code in an unexpected "document shared with you" email that asks you to sign in is the warning sign.

What should I do if I already scanned it?

Act quickly, in this order.

  1. If you entered a password, change it at once from the real site, and change it anywhere else you used the same one.
  2. Check your multi-factor settings for any device or method you don't recognise, and sign out of other sessions if the service allows it.
  3. If you entered card or bank details, call the number on the back of your card and tell them what happened.
  4. If a file or app downloaded, don't open it. Delete it and run your phone's security update. The FTC also recommends keeping your phone's operating system updated and using strong passwords with multi-factor authentication.
  5. Tell your IT team if a work account was involved, even if you are not sure anything was taken.

How can I send PDFs with QR codes that people will trust?

If your organisation uses QR codes in invoices, letters or forms, make them easy to check. Print the full web address in readable text next to every code, so readers can type it instead of scanning. Use your main domain instead of a link shortener. Tell customers in advance that you will never ask them to sign in through a QR code. These habits also make your messages look less like the lures in Microsoft's report.

Key facts

  • Microsoft published its Q3 2026 email threat report on 5 November 2026, counting about 7.3 billion email phishing threats from July to September.
  • Microsoft detected about 12.1 million QR code attacks in Q3 2026, down 67% from Q2.
  • PDF attachments carried 78% of QR code attacks in July and August and 61% in September 2026.
  • QR codes embedded directly in email bodies rose from 5% of QR attacks in July to 12% in September 2026.
  • PDFs were the leading malicious payload type in August and September 2026, at 27% to 30% of payload attacks.
  • The FTC's December 2023 alert advises against scanning a QR code in an email or text you weren't expecting.

Frequently asked questions

Can a QR code in a PDF infect my phone just by scanning it?

Scanning a code usually just shows or opens a web address. The FTC warns that some scam codes lead to sites that collect what you type or that try to install malware. Microsoft found that 94% to 96% of malicious attachments in Q3 2026 sent people to phishing sites, so the bigger risk is giving away a password.

Will my email's antivirus catch a malicious QR code in a PDF?

It may not. A QR code is an image, so filters that only scan text links can miss it. That is the reason Microsoft gives for attackers moving links out of the email body and into images.

Is it safer to scan the code with my work phone or my personal phone?

A managed work device may have more protection, but the safest choice is not to scan an unexpected code at all. Microsoft notes that QR codes are used to move victims from protected work computers to unprotected personal phones. Verify the sender first, then go to the service directly.

How can I see where a QR code goes without visiting it?

Most phone camera apps show the address in a preview before opening it. Read that address carefully and close the preview if it isn't a domain you recognise. A short or unfamiliar address is a reason to stop, not to tap and see.

Are QR code attacks increasing?

Not in total. Microsoft counted 12.1 million in Q3 2026, 67% fewer than in Q2. But PDFs remained the most common way to deliver them, and codes placed directly in the email body more than doubled their share.

Sources

Back to blog