That file looks like a PDF. It is not a PDF. It is a program — and opening it can hand your computer to a scammer.
Attackers name a malicious file something like:
- Invoice.pdf.exe
- Contract.docx.scr
- Photos.zip.exe
The first extension is bait. The second one — the real one — decides what the file actually does. .exe and .scr files are programs: when you open one, it runs code on your computer. A .pdf or .docx just opens a document.
Why does this work? On many Windows computers, file extensions for known file types are hidden by default. So Invoice.pdf.exe shows up as simply Invoice.pdf, complete with a PDF-looking icon. You think you are opening a document. You are actually launching a program.
A fake invoice can install password stealers, ransomware, or remote-access software in seconds — often with no visible sign that anything went wrong. By the time you notice, your saved logins, files, or work accounts may already be compromised.
- Show file extensions. In Windows File Explorer, go to View and turn on "File name extensions". Now
Invoice.pdf.exeshows its true ending. Do the same on a Mac by checking Finder settings. This one change kills the trick outright.
- Read the whole name. If a file ends in
.exe,.scr,.bat,.msi, or.js, treat it as a program, not a document — no matter what the first part of the name says.
- Pause on unexpected attachments. An invoice, shipping notice, or "urgent" document you were not expecting deserves a second look. Check the sender's real email address and, if in doubt, contact the sender through a channel you already trust — never by replying to the suspicious email.
- Do not enable macros or "Enable Content". If a document asks you to enable macros or editing to view its contents, close it. That is a classic follow-up step in the same attack.
- Keep your antivirus on and your software updated. It will not catch everything, but it catches a lot of the known versions of these files.
Do not just delete the file and move on. Disconnect from the network, run a full antivirus scan, change your email and banking passwords from a different device, turn on two-factor authentication, and tell your IT team or manager right away. The faster you act, the smaller the damage.
The one-second rule: before you double-click any attachment, read the last few characters of its name. If it ends in .exe, it is a program — and a program from a stranger is never just an invoice.
