The vast majority of malware that arrives by e-mail hides in an attachment. Not all formats carry the same risk: some are almost always harmless, others are attackers' favourites because they can run code or get around protections.

The most dangerous formats

  • Compressed archives (.zip, .rar, .7z): they hide a program behind a harmless-looking name, and some are password-protected to prevent scanning.
  • Disk images (.iso, .img): opened with a double click, they often contain an executable or a malicious shortcut.
  • Macro documents (.docm, .xlsm): they ask you to "enable content" to display the document, which launches a script.
  • HTML files (.html, .htm): they open a fake login page directly in the browser, without going through an external website.
  • Shortcuts and scripts (.lnk, .js, .vbs, .bat): they have no business being in a work e-mail.

The double extension trap

Windows hides known file extensions by default. A file named invoice.pdf.exe therefore appears as invoice.pdf, sometimes with a PDF icon. Turning on file extensions in File Explorer is a simple setting that defeats this trap.

An unexpected attachment, even from a known contact, always deserves a check.

Why a known contact might send you a malicious file

When a mailbox is hacked, the attacker uses it to write to all of the victim's contacts, sometimes by replying to real conversations. The message looks legitimate and the attachment seems expected. That is why the file itself must be scanned, not just the sender. Our article on hacked e-mail accounts covers this scenario in detail.

What an e-mail antivirus does

An e-mail antivirus scans every attachment on the server, before the message reaches the inbox. With Passmundi, an infected message is blocked, isolated, and cannot be released by mistake from the customer area. Managers receive an alert, and the "Infected" tab of the quarantine shows who was targeted.

Many malicious campaigns are sent by bots, from disposable servers, before antivirus engines even know the new variant. Validating unknown senders often stops them upstream: this combination is what protects effectively against ransomware delivered by e-mail.

Good everyday habits

  1. Never enable macros in a document received by e-mail without a known reason.
  2. Show file extensions on every computer.
  3. Be wary of password-protected archives, especially if the password is in the message.
  4. If in doubt, call the sender before opening the file.
  5. Keep your systems and device antivirus up to date: the two protections complement each other.

If a suspicious file has been opened anyway, our guide to the first minutes after a ransomware attack sets out the steps that limit the damage.