Under attack? Call 1-800-716-8955, 24/7 Serving Calgary, Edmonton and communities across Alberta
Threat library

HTML Smuggling

A harmless-looking web page or attachment builds a malicious file inside your browser, slipping past email and web filters that would normally block it.

HTML Smuggling

Layer 6: Presentation Medium risk

How it works

Security filters at the email gateway and network edge look for dangerous files as they pass through. HTML smuggling gets around this by not sending a dangerous file at all. Instead, the email carries an HTML attachment or a link to a web page that contains hidden, scrambled code. When the page opens in your browser, that code assembles the malicious file on your own computer and offers it as a normal download, or displays a convincing fake login page that never touched the internet.

To the person on the other end, it just looks like a document preview, a shared file or a secure message portal. Because the file is built locally, many perimeter tools never see it, and the fake login pages can be harder to block because they have no web address to flag. The technique is used to deliver malware and to steal Microsoft 365 passwords, and it often appears alongside invoice and payment themes.

Warning signs

  • Email attachments ending in .html or .htm, especially for invoices or voicemails
  • A document preview that immediately downloads a file you did not request
  • Login pages that open from an attachment rather than a website
  • Downloaded zip or disk image files with names matching the email subject

How to defend against it

  • Block or quarantine HTML attachments from outside senders where practical
  • Use endpoint protection that inspects files as they are created
  • Require phishing-resistant MFA so captured passwords are less useful
  • Train staff that real documents do not arrive as web page attachments
  • Make it easy for staff to report suspicious emails in one click

If it happens to you

  1. Delete the downloaded file and do not open it
  2. Contact IT if the file was opened or a password was entered
  3. Change the affected password and revoke active sessions from a clean device

If you think this is happening right now, call our incident line at 1-800-716-8955. We answer 24 hours a day, whether or not you are a client. What to do while you wait.

All your tech problems. One phone call.