Almost every malware infection on a home computer starts the same way: a file the user chose to download, then chose to open. The browser probably warned them. The warning got clicked away because it looked like an obstacle rather than information.
These checks take about twenty seconds per file and catch nearly everything aimed at ordinary users.
Read the address the button points to
On a legitimate download page the file is served from the vendor’s own domain, usually under a path like /download, /drivers or /support. Traps look different in three specific ways:
- Three or more green Download buttons on one page. One is real; the rest are 300×250 ad units that look like part of the layout.
- A file coming from a domain that has nothing to do with the product, such as
cdn-update-service.topor a string of random letters. - A page that starts the download automatically before you have clicked anything.
Hover the link and read the browser’s status bar, or long-press on Android to preview the URL. If the address does not share the page’s domain, close the tab. Typing the vendor name plus “official site” and clicking the bare domain in the results beats clicking the top ad, which is how fake installer campaigns for common tools get distribution.
Turn on file extensions — the single biggest fix
Windows 11 hides known extensions by default, so a file named invoice.pdf.exe displays as invoice.pdf with a PDF icon. Open File Explorer > View > Show > File name extensions. macOS users get the same protection from Finder > Settings > Advanced > Show all filename extensions.
With extensions visible, the dangerous ones stand out: .exe, .scr, .js, .vbs, .hta, .lnk. None of those belong on a document, a photo or an invoice.
Check size, type and file signature
Right-click > Properties on Windows, or Cmd+I on macOS, shows the size before you open anything. A one-page invoice is roughly 80–250 KB. If the “invoice” is 4.6 MB, it is not a one-page invoice.
On a Mac you can read the real format without trusting the name: file ~/Downloads/statement.pdf returns either “PDF document, version 1.7” or “PE32+ executable (GUI) x86-64”, and the second answer settles the question. Windows users can upload the file to VirusTotal first — the free tier accepts files up to 650 MB and limits lookups, but 70-odd engines flagging a download is definitive evidence, and zero detections simply means nobody has seen that file yet.

Open it somewhere that can be thrown away
Sometimes you do need to open a file from an unfamiliar source — a courier’s tracking tool, a supplier’s price list. Do it in a disposable environment:
- Windows Sandbox (Windows 11 Pro, Enterprise and Education only): enable it under Turn Windows features on or off, then launch it from the Start menu. Closing the window deletes everything inside. Windows Home has no equivalent, so a virtual machine is the fallback.
- Office documents: open in LibreOffice with macros disabled — Tools > Options > Security > Macro Security Level: High. A document that asks you to “Enable Content” to see the invoice is malware until proven otherwise.
- PDFs: view in the browser’s built-in reader instead of a desktop PDF app, which reduces the chance of embedded JavaScript running.
On macOS, Gatekeeper blocks unsigned apps from outside the App Store. Right-click > Open bypasses it permanently for that app, so treat that dialog as a decision, not a formality.
Make the browser stricter than default
Chrome: open chrome://settings/security and choose Enhanced protection. It performs real-time checks against Google’s list of unsafe sites and warns on files it has not seen before — the underlying technology is documented in the Safe Browsing API reference.
Edge: SmartScreen is on by default; verify at edge://settings/privacy. Firefox: Settings > Privacy & Security > Block dangerous and deceptive content, and keep both download checkboxes ticked.
One habit ties it together: when the browser says “Keep dangerous file”, that click is the whole attack. Delete the file from chrome://downloads and get it from the vendor instead. If you are already unsure whether a site is legitimate, the five checks for safe websites cover the page-level version of this, and spotting a phishing link handles the version that arrives by message.
