What Makes Email Attachments a Significant Security Risk?
It's Thursday afternoon. An email arrives from a supplier you've worked with for years, in reply to a thread about last month's order. "Updated invoice attached, the previous one had the wrong VAT number." The attachment is called Invoice_10482.pdf. Everything about it looks normal, because almost everything about it is normal. The thread is real. The supplier's mailbox is real. Somebody else has just been reading it for a week.
That is the short version of why attachments are risky. They're how work gets done, so opening them is a habit, and attackers have spent decades learning how to make a dangerous one look like the next routine one.
The short answer
Email attachments are a significant security risk because they can contain malware or deception that runs or works the moment you open them, and they arrive looking like ordinary work from people you trust. A file can hold a macro, a script, a fake login page or a link, and a single click can be enough to give an attacker a way into your device and, from there, your company.
The risk comes from a few things together:
- Attachments can execute code or trick you into running it.
- They're easy to disguise: the name, icon and sender can all be faked or borrowed.
- They often come from real accounts that have been compromised, so the sender checks out.
- Security filters can't inspect everything, especially encrypted archives.
- Opening attachments is part of everyone's job, so suspicion wears off.
The rest of this post goes through each of these, then covers how to check an attachment before opening it.
How a file becomes an attack
Mail providers block the obvious stuff. Nobody gets far emailing an .exe file to a company these days. So attackers keep changing the packaging. The common forms look like this.
Office documents with macros. A Word or Excel file shows a message like "This document was created in a newer version. Click Enable Content to view." Enabling it runs a macro that downloads malware. This was the classic technique for years, until Microsoft began blocking macros in files from the internet by default in 2022. It still works where that protection is switched off, or when people are talked into removing it.
Containers and shortcuts. When macros got harder, attackers moved to formats that wrap something else: disk images (.iso, .img), shortcut files (.lnk), OneNote files with embedded scripts, and ZIP files containing JavaScript or other scripts. Each wave lasted until Microsoft and mail providers tightened the defaults, and then the next format appeared.
HTML files that pretend to be something else. An attachment called Payment_Advice.html opens in your browser and shows what looks like a Microsoft 365 or bank login page. It's a local file, so there's no suspicious website address to notice. Whatever you type goes to the attacker. A related trick, often called HTML smuggling, uses the file to assemble a malicious download inside your browser, where a mail filter never saw it.
PDFs with links or QR codes. The PDF itself is harmless. It just says "Your document is ready, click to view" or shows a QR code to "verify your account". The danger is the page it sends you to, and with a QR code you open it on your phone, away from your company's security tools.
Clean files with dishonest content. Some of the most expensive attachments contain no malware at all. A perfectly ordinary PDF invoice from a compromised supplier account, with one change: new bank details. No scanner flags it, because there's nothing technical to flag. The attack is the instruction to pay.

Why attachments are so easy to disguise
Most people decide whether to trust a file in about a second, based on three things: who sent it, what it's called, and what icon it has. All three can lie.
The file name and icon. Windows hides known file extensions by default, so Invoice_10482.pdf.lnk can appear as Invoice_10482.pdf with a PDF-looking icon. Long names push the real extension out of view. Some attackers use special Unicode characters that reverse the display order of the text, so the visible name ends in something innocent.
The sender. The display name says "Accounts Payable", while the actual address is a lookalike domain one letter off from the real one. On a phone, many mail apps show only the display name unless you tap it.
The thread. This is the hardest one. When attackers take over a real mailbox, they don't need to fake anything. They reply inside existing conversations, quoting the earlier messages, using the right names and the right project details. Some malware families have done this automatically, harvesting old threads from infected computers and replying to them at scale. A reply in a thread you started feels safe, which is exactly the point.
Why filters don't catch everything
Mail security is good and getting better, but it has blind spots attackers aim for.
- Encrypted archives. A password-protected ZIP can't be opened by a scanner, so it can't be checked. Attackers often put the password in the email body ("password: 2026") for exactly this reason. This is also why many organisations quarantine encrypted archives, including legitimate ones; see why your coworker might suggest encrypting an archive file for the sender's side of that problem.
- Delayed payloads. A link inside a PDF can point to a harmless page when the email is scanned and a malicious one an hour later.
- New formats. Filters learn from known attacks. The first weeks of a new technique are the most dangerous.
- No malware at all. As with the changed-bank-details invoice, a scanner can't detect a lie.
How to check an attachment before opening it
None of this means treating every file as a threat. It means pausing on the ones that don't fit. A few questions catch most of the bad ones:
- Were you expecting it? An unexpected invoice, delivery note, voicemail, "scanned document" or shared file is the single biggest warning sign, even from a known sender.
- Is the sender's actual address right? Look at the address, not the display name. Check the domain letter by letter.
- Does the file type make sense? An invoice should be a PDF, not an
.html,.iso,.lnk,.jsor a ZIP with one file inside. Turn on "File name extensions" in Windows File Explorer so you can see the real type. - Does it ask you to do something? Enable content, enable editing, log in, scan a QR code, "verify". Legitimate documents rarely need any of these.
- Does it change how money moves? New bank details, an urgent payment, a changed process. Confirm by phone using a number you already have, never one from the email.
If something looks off, don't open it to find out. Forward it to your IT or security team, or use your mail client's "Report phishing" button. A false alarm costs them a minute. A real one costs much more.

What organisations can do
Individual caution only goes so far, so the defaults matter more than training slides:
- Block risky file types at the mail gateway: executables, scripts, disk images, shortcut files and other formats your business never needs to receive.
- Keep macros blocked for files from the internet, and don't grant broad exceptions to make one workflow easier.
- Decide on a policy for encrypted archives from outside, such as quarantine with a release process, rather than letting them through unscanned.
- Make reporting easy and thank people who report, including for false alarms.
- Set a rule for payment changes: always confirmed by phone, by someone other than the person who received the request.
The other direction: what your attachments teach people
There's a side to this that's easy to miss. If your company routinely sends payslips, contracts and invoices as attachments, your customers and staff learn that "a document from us, attached, please open" is normal. That's the exact habit attackers exploit, and a well-made fake from "you" works better because of it.
Outgoing attachments also bring their own problems: they go to the wrong person, carry hidden content and stay in mailboxes for years. We go through those in why email attachments are a security risk.
For sensitive files, sending a link instead of an attachment changes the pattern. With Konfidant, the file is encrypted in your browser, the recipient gets a one-time link, and on paid plans that link comes from your own domain, such as share.yourcompany.com, which they recognise. The page tells them what they're about to open and asks before anything is decrypted or downloaded, and once opened the link stops working.
One honest limit: a link doesn't make a file safe to open. Konfidant encrypts files on the sender's device, so it can't see inside them, and that also means it can't scan them for malware. The same advice applies to files you receive through any link as to attachments: only open what you were expecting, from someone you know.
Questions people ask
Can you get a virus just by opening an email?
Rarely. Modern mail clients don't run code in an email by default. The risk almost always comes from opening an attachment, enabling content in it, or clicking a link. Keeping your mail client and operating system updated covers the rare cases where a vulnerability made previewing alone dangerous.
Which email attachments are the most dangerous?
Files that can run code or hide other files: executables, scripts (.js, .vbs), shortcuts (.lnk), disk images (.iso, .img), HTML files, Office documents that ask you to enable macros, and archives, especially password-protected ones. But the file type isn't everything; a normal PDF with changed bank details can do more damage than any of them.
Are PDF attachments safe?
Usually. Most PDF attacks today don't exploit the reader; they use the PDF as a lure with a link or QR code to a fake login page. Open PDFs in an updated reader or your browser's viewer, and treat any PDF that asks you to log in as suspicious.
Is it safe to open an attachment from someone I know?
Not automatically. Compromised accounts are one of the most common sources of malicious attachments, because they come with built-in trust. If an attachment from a known contact is unexpected or asks you to do something unusual, check with them through another channel first.
What should I do if I opened a suspicious attachment?
Tell your IT or security team straight away, even if nothing seemed to happen. If you entered a password, change it and expect to be asked to sign out of other sessions. Disconnecting from the network can help contain malware, but follow your company's process; a quick report matters more than doing everything yourself.
If your team sends sensitive files to clients or employees, try a one-time link free instead of the next attachment. For the sender's side of the risks, read why email is the wrong place for confidential documents.
This article provides general information, not legal advice. It describes Konfidant's features without guaranteeing them; what we provide is set out in our Terms of Service and Data Processing Agreement. Assess whether a tool meets your legal and regulatory requirements before sharing regulated data.
Enjoyed this article?
Get new articles on secrets management and secure sharing in your inbox. No spam, unsubscribe anytime.
We'll email you a link to confirm. Protected by Cloudflare Turnstile. See our Privacy Policy.
Ready to secure your team's secrets?
Stop leaving credentials in Slack. Start using burn-after-reading encryption.
Get started free