Glossary
Malicious attachment
Definition
Malicious attachment: A file attached to an email that is built to harm the device that opens it, such as a program disguised as a document, an Office file with harmful macros, an archive hiding either, or a web page file that shows a fake sign-in form.
Also known asmalicious email attachmentdangerous attachmentinfected attachmentweaponized attachmentattachment malware
In short
A malicious attachment is a file sent with an email that harms the device that opens it: a program disguised as a document, an Office file with macros, an archive hiding either, or a web page file that shows a fake sign-in. CISA advises caution with unsolicited attachments even from people you know. Ask whether you expected this file, and confirm before opening.
Key takeaways
- A malicious attachment does its harm when opened; the email around it is only the delivery.
- Common disguises are double extensions, archives, disk images, shortcuts, web page files and macro documents.
- CISA says to be wary of unsolicited attachments, even from people you know.
- Confirm an unexpected file through another channel before opening it.
- If you opened one, disconnect, scan and change passwords from a clean device.
Last reviewed 5 December 2026 by Foxcolab Team
A malicious attachment is a file sent with an email that's built to harm the device that opens it. It might be a program dressed up as a document, an Office file whose macros download malware, an archive hiding either one, or a web page file that opens a fake sign-in form on your own computer. The email is the delivery. The attachment does the damage when you open it.
Common disguises#
| Looks like | Actually is |
|---|---|
invoice.pdf.exe | A program with a double extension, shown as a PDF when extensions are hidden |
Statement_March.docm | A Word file that can run macros |
scan_0420.zip | An archive with a program inside |
Payment_Advice.html | A local web page that shows a fake sign-in |
report.iso or report.lnk | A disk image or shortcut that runs code |
Gmail's list of blocked file types shows how wide the field is: as of December 2026 it refuses .exe, .js, .iso, .lnk and dozens more, including inside archives, along with "documents with malicious macros" and "password-protected archives with archived content."
Why caution beats trust#
CISA's advice on attachments begins: "Be wary of unsolicited attachments, even from people you know." Addresses can be faked, and real accounts get taken over. Its other steps: "Keep software up to date," "Trust your instincts," and "Save and scan any attachments before opening them."
A quick test before you open anything: were you expecting this file, from this person, in this format? An invoice from a supplier you've never paid, or a "voicemail" that arrives as a web page file, fails it. Confirm through a phone number or chat you already use.
If you opened one#
Disconnect the device from the network, run a full scan, and change your passwords from a different, clean device. Tell your IT team straight away, because speed limits the damage. More on what the payload might be in malware.
In Foxcolab#
On the web, Foxcolab Mail asks before you download a file whose type can run a program, such as .exe, .js, .iso or .lnk (This kind of file can harm your device), and before archives, web page files and macro-enabled Office files (Download this file?). Cancel has the focus; Download anyway is a deliberate choice. When you attach files, Foxcolab Mail checks each one on your device first, and programs or disguised files can't be attached at all. For sensitive files, a Foxcolab Drive link is the better way to send them: Drive files and file names are end-to-end encrypted, and the link can carry a password, an expiry date and a download limit (how). Create a free account to try both.
Keep exploring
Related terms
- MalwareMalware is any software or file built to harm a device or steal its data, from viruses and trojans to ransomware and spyware. Most of it still arrives through email attachments and links.
- Trojan horse (malware)A Trojan horse is malware disguised as something useful, like an invoice, an update or a free app. Here's how Trojans get in, what they do, and how to keep them out.
- RansomwareRansomware encrypts your files and demands payment for the key, and most attacks also steal data first. What helps is a copy the attacker can't reach.
- PhishingPhishing is impersonation used to trick people into handing over passwords, approving payments or opening malware. Here's how it works and what actually stops it.
- Spam filterA spam filter decides which incoming email is unwanted and keeps it out of your inbox. Here's how filters decide, why none is perfect, and what encryption changes.
- Endpoint securityEndpoint security protects the laptops, phones and desktops people use to reach data. Here's what it covers and why it matters more when data is end-to-end encrypted.
Where Foxcolab uses it

Foxcolab
Private work tools, without the ads.
Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.