The belief: “A Word or Excel file is just a document. Only .exe files are dangerous.” If that were true, half of the world’s phishing campaigns would have no purpose. Let us take it apart in three steps.
Documents can contain programs
Office applications have a built-in programming feature called macros, small programs stored inside the file. They exist for good reasons: a finance team automating a monthly report, an operations desk formatting a daily sheet. A macro runs with the permissions of the user who opens it. It can read and write files, start other programs and use the network. So a macro-enabled document is, in effect, an application that arrives wrapped as a file you expect to read.
For years the defence was a yellow bar that says macros have been disabled and offers an “Enable Content” button. Attackers built entire lures around that button: a blurred invoice, a notice saying “this document was created in an earlier version, enable content to view”. The document did nothing harmful until the user clicked, and the user clicked because the document told them to. That is social engineering with a technical delivery mechanism, a pattern worth recognising generally. The malicious part was not an exploit. It was a persuasive sentence.
Myth two: “They fixed it, so it is over”
Microsoft did make a significant change. In 2022 it began blocking macros by default in files that came from the internet, for Office on Windows. The mechanism relies on a marker that Windows attaches to downloaded files, called the Mark of the Web. When Office sees the mark on a macro-enabled file, it shows a message that the macros were blocked, without the easy “enable” button. Organisations can also set policies to control macros centrally, and many block them entirely for users who never need them. This works, and it pushed macro-based attacks down noticeably.
But the story did not end there, because the block depends on that mark being present. Attackers responded in predictable ways. They put the malicious file inside a container format, such as an archive or a disk image, where the files inside might not inherit the mark in some situations, and Microsoft has since addressed several of these gaps. They moved to other file types that can launch things: shortcut files, scripts, help files, and, for a while, OneNote attachments that tricked users into double-clicking an embedded item. They used HTML files that assemble the real payload inside the browser on the victim’s machine. They sent password-protected archives, with the password in the email body, so email scanners could not look inside. And they sometimes used genuine vulnerabilities in document-parsing code, which need no clicking beyond opening the file.
The pattern is the point. Defenders close one door, and the attacker’s goal, “get the user to run something”, stays the same. They look for the next container, the next file type, or the next believable story. Treating “macros disabled” as a finished job is the mistake.
Myth three: “Our antivirus will catch it”
Antivirus catches known malicious files and many suspicious behaviours. But attackers test their documents against popular products before sending them, they change them for each campaign, and they hide the really harmful step in a later download. The first file may contain nothing but a tiny downloader or a nudge to the user to do something, so scanning the attachment finds little. Security teams therefore watch behaviour instead: an Office process starting a command interpreter, a script host or a system tool is unusual in most companies and makes a strong alert, because legitimate spreadsheets rarely do that.
What to do about it
- Block macros from internet-sourced files for everyone, and allow signed macros or specific trusted locations only for teams with a business reason. Review the exceptions list yearly; it tends to grow.
- At the mail gateway, strip or quarantine risky file types, and treat encrypted archives from unknown senders as suspicious by default.
- Use attack-surface-reduction style rules, where your endpoint product supports them, to stop Office applications from launching child processes.
- Keep Office and PDF readers patched, since exploit-based documents bypass the “enable content” question altogether.
- Give staff a quick way to report a suspect file and make sure reporting is rewarded, not mocked. A report in the first few minutes often limits the damage to one laptop.
For individuals the habit is plain. Be wary of any file that asks you to do something before it will show you its content, especially “enable content”, “enable editing” to view a protected message, or “run” to see a document. An honest invoice just opens. If a vendor genuinely sends macro-enabled files, confirm by a separate channel such as a phone call, using a number you already had.
The honest summary is that the document format is rarely the real weakness. The weakness is a person who is busy, a plausible subject line and a button. Technical controls can shrink the number of times that combination works, but they cannot remove the combination.
Leave a Reply