A macro virus is malware written in a document's own scripting language — VBA macros inside Microsoft Word, Excel or PowerPoint files. Instead of arriving as a program the operating system warns about, it arrives as an invoice, a resume or a 'quote' that the user opens willingly, and the malicious code runs the moment macros are enabled. It is the oldest trick in email-borne malware and, in 2026, still one of the most productive: Microsoft blocked internet-delivered macros by default in Office starting mid-2022, which cut infections sharply but did not end the technique — attackers simply shifted to asking users to click through the new warnings. This guide explains how macro viruses work in 2026, how they reach your staff, the signs of infection, and the controls that stop them.
TL;DR
- A macro virus is malware written in VBA macros inside Office documents — it runs when the user opens the file and enables macros.
- It arrives the same way every email-borne threat arrives: as a phishing attachment that looks like routine business paperwork.
- Since mid-2022 Microsoft blocks macros from internet-downloaded files by default, so modern attacks press the user through the yellow warning bar instead.
- A macro virus rarely works alone — modern macro malware downloads credential stealers, ransomware loaders or remote-access tools as a second stage.
- The fix is a set: disable unnecessary macros, keep endpoint protection current, and train the open-decision, because the file needs a person to enable it.
What a macro virus actually is
Office documents can contain programs. Macros exist so accountants, engineers and analysts can automate repetitive work inside spreadsheets and documents, and they are written in a full scripting language — Visual Basic for Applications (VBA) — with access to the file system, the network and other applications. A macro virus is that power turned hostile: malicious VBA code saved inside a document, written so it runs when the file opens and spreads by copying itself into other documents or by fetching a payload from the internet.
The names blur together, and the distinctions matter less than the mechanism:
- Classic macro viruses replicate document to document — the 1990s pattern. Melissa (1999) spread through thousands of mailboxes because the macro used Outlook to mail itself onward.
- Macro droppers are the modern form: the macro does not damage the machine itself, it downloads and runs something worse — an infostealer, a remote-access tool or a ransomware loader. Emotet ran this playbook for years at industrial scale.
- Malicious macro lures piggyback on any open document a target expects: invoices, purchase orders, resumes, tax forms.
In every variant the same two things are true: the file is inert until a person opens it, and the malicious code is 'inside' a document type people have been told their whole careers is safe.
How a macro virus reaches your staff in 2026
- Phishing attachments. The dominant route: an email that looks like routine business traffic carries the file. The lure family behind it — fake invoices, payroll changes, 'overdue' documents — is the same one phishing simulations rehearse, which is why simulation matters for this threat specifically.
- Fake download portals. A 'template' or 'form' that a search or a shared link surfaces, preloaded with macros.
- Shared drives and file-sync folders. One infected document uploaded by a partner or contractor spreads to everyone with access.
- USB and physical transfer. Rare now, still real in field industries — a document handed over on a stick.
What changed in 2022 is the friction, not the technique. Microsoft made Office block VBA macros in files that carry the 'mark of the web' — files downloaded from email or the internet — by default. When a user opens such a file, Office shows a yellow banner and a button to enable content. The attacker's work since has been a social-engineering problem: persuade the user that this particular document is safe enough to click Enable Content. Some campaigns even embed instructions in the document itself — 'macros must be enabled to view this invoice correctly'.
What a macro virus does once it runs
- It runs with the user's permissions. Everything the staff member can reach, the macro can reach — the network, the mailbox, the connected drives.
- It downloads a second stage. Almost every modern macro campaign is a delivery mechanism: the macro fetches an infostealer that sweeps browser passwords, or a loader that installs ransomware, or a remote-access tool that gives the attacker standing access.
- It may persist. Registry entries, scheduled tasks or template files (the global Normal.dotm, historically) let the code relaunch after a reboot.
- It spreads. Self-mailing behaviour — Melissa's trick — is less common in 2026, but macros that copy themselves into shared templates or files still propagate inside a business quietly.
The Australian baseline for what follows applies: the Australian Signals Directorate logged more than 84,700 cybercrime reports in 2024-25 — one every six minutes — with small business reporting an average cost of $56,600 per incident (ASD Annual Cyber Threat Report 2024-25). A single malicious document on one finance laptop is exactly the scale of event that produces a report like that.
Signs a document carried a macro virus
- Word or Excel prompts unexpectedly, or the yellow Enable Content bar appears on a file nobody expected to contain macros.
- Documents open slowly, or Word and Excel crash or behave oddly after a particular file was opened.
- Files disappear, appear, or change size on shared drives.
- Unknown processes running, or sudden outbound connections right after a document was opened.
- Colleagues receive odd mail from the user's real address — the self-mailing pattern is rare, still worth reporting.
- Security alerts about 'Office file dropped a file' or PowerShell activity following a document open.
Any one of these after a specific document is a scan-and-rotate moment: disconnect the machine, scan with updated endpoint tools, and rotate credentials used from that device.
How to stop macro viruses
- Trust the Office default, and tighten it further. Keep the 2022 macro-blocking behaviour enabled, and disable macros entirely where no workflow needs them — most businesses genuinely need macros in zero documents.
- Restrict who can enable macros. Standard users without local admin rights limit what a macro payload can install.
- Keep endpoint protection current. Modern tools catch the macro's second-stage download even when the macro itself slips through.
- Watch the warning-bar click. The macro warning is the 2026 equivalent of the suspicious link — treat anyone who reports clicking through it as a scan-and-rotate case, not an embarrassment.
- Train the open-decision. The document has to be opened and enabled by a person. Monthly security awareness training rehearses exactly that decision with simulated attachment lures, and phishing simulations measure who clicks — the same population that will click Enable Content on a real invoice.
- Run a gap assessment to check the technical floor: macro policy, endpoint coverage, patch cadence. A cyber security gap assessment ranks what is missing before an auditor or an attacker does.
Macro virus vs phishing vs other malware
| Macro virus | Phishing | Other malware (direct) | |
|---|---|---|---|
| What it is | Malicious code inside a document's macros | A lure that arrives as a message | Programs delivered as executables |
| What it needs | A user to open the file and enable macros | A user to click, reply or type credentials | A download, exploit or install |
| What stops it | Macro policy + trained enable-decision | Trained reporting reflex | Patching, endpoint protection |
| Business impact | Second-stage payload delivery | Account takeover, payment fraud | Ransomware, infostealers |
The overlap is the point: the macro virus is a delivery format for the same payloads phishing drives, and the staff training that catches one catches both.
FAQ
What is a macro virus in simple terms? Malicious code written into the macros of an Office document. It runs when someone opens the file and enables content, then downloads or installs the attacker's payload.
Are macro viruses still a threat in 2026? Yes, though Microsoft's default macro blocking since mid-2022 cut the volume sharply. Attackers now concentrate on convincing users to click through the warning bar — which makes the open-decision a trained behaviour, not a technical guarantee.
How is a macro virus different from a regular computer virus? A classic virus hides in programs and runs on its own; a macro virus hides in documents and needs the host application — Word or Excel — to run its code. It cannot execute until a person opens the file.
Can a PDF contain a macro virus? PDFs can carry JavaScript and embedded files that launch attacks, but the classic macro virus is an Office-format problem: Word, Excel, PowerPoint. A PDF that urges you to open an attached .docm is a common delivery pattern.
What should I do if I enabled macros on a suspicious file? Treat it as a confirmed infection: disconnect the device from the network, run a full endpoint scan, rotate every credential used on that machine from a clean device, and report the document so colleagues and IT can block it. If money or data moved, report to ReportCyber.
Does blocking macros break legitimate work? Rarely, if you plan it: list the documents that genuinely need macros, allow them from trusted locations, and block everything else. Most small businesses need macros in zero files.
One last thing
Open one Word document on a shared machine today and look at the yellow bar. Every staff member who has ever clicked Enable Content out of curiosity has performed the exact action a macro virus needs — the only difference between that moment and a breach is what was inside the file. Train the bar, not just the link.
Related guides
- Security awareness training — monthly rehearsal of the open-and-enable decision.
- Phishing simulations — measure who clicks the lures that carry malicious documents.
- Security gap assessment — check macro policy, endpoint coverage and patch cadence as a set.