11.21.26

Double-check your email attachments: How to spot malware before you click

Yes, an email attachment can infect your device, even when it appears to come from someone you know. Before you open any file, check the sender, think about whether you expected it and confirm it through a separate channel. That short pause is your best defense against malware hidden in a routine message.

The risk is measurable. Barracuda’s 2026 Email Threats Report found that more than 10% of all HTML attachments are malicious, and 70% of malicious PDFs contain QR codes leading to phishing websites. Familiar file types can carry real danger.

Can an email attachment really infect your device?

It can. Some attachments contain malware that installs itself when you open or download the file. Others lead you to fake login pages that steal passwords. Once malware is on your device, it can capture keystrokes, lock your files or spy on your accounts.

Why do attachments from people you know still pose a risk?

Cyberattackers have become skilled at spoofing return addresses, so a compromised attachment can look like it came from a trusted contact. A criminal may also take over a real mailbox and send files from it. CISA, NSA, FBI and MS-ISAC describe phishing as a common way to obtain login credentials and deploy malware. Treat every unexpected file with caution.

What are the warning signs of a dangerous attachment?

  • You did not expect it: An invoice, resume or shared document that you never requested deserves a second look.
  • The message creates urgency: Threats of account closure or demands for immediate payment aim to rush you.
  • The sender address looks slightly off: Check for extra characters, odd domains or a reply-to address that does not match.
  • The file type is unusual: Be wary of HTML files, scripts, archives and files with double extensions such as “invoice.pdf.exe.”
  • The file asks you to enable macros or scan a QR code: Legitimate senders rarely need that to show you a document.
  • The message is vague or generic: A short note with no personal details can signal a mass or hijacked email.

How do you check an email attachment before opening it?

Follow these steps each time an attachment arrives:

  1. Stop and think. Ask whether you expected this file from this person.
  2. Inspect the sender. Look at the full email address, not just the display name.
  3. Confirm separately. Call, text or message the sender using contact details you already have. Do not reply to the suspicious email.
  4. Scan the file. Let your security software check the attachment before you open it.
  5. Preview safely. Use your email provider’s preview tool, and keep macros and downloads disabled.
  6. Delete and report if unsure. Mark the message as phishing and remove it from your inbox.

What should you do if you already opened a suspicious attachment?

Act fast. Disconnect the device from the internet, then run a full scan with trusted security software. From a different, clean device, change your passwords, starting with your email and banking accounts, and turn on multifactor authentication. Watch your accounts for unfamiliar activity, and contact your bank if you entered payment details. Let the sender know their account may be compromised.

Make attachment checks a daily habit

Double-checking attachments keeps malware off your device and your passwords out of criminals’ hands. You also stop a compromised message from spreading to friends, family and coworkers. Keep your software updated, use unique passwords and verify unexpected files before you click. Start today by checking the next attachment you receive, then share these steps with someone who opens every email.