What a macro is, and why attackers like them
Macros automate work in Word and Excel. The legitimate ones are usually unglamorous: a spreadsheet that formats a report exported from the accounting system, or a template that fills in a quote. They’re written in a language called VBA, and when a macro runs, it can do almost anything the person running it can do.
That’s what makes them useful to attackers. The classic approach is an email with an attachment called something like Invoice_0412.xlsm and a message saying the document is protected, so click Enable content to view it. One click and the macro downloads whatever it was written to fetch, using that person’s access to the network and files.
Are all macros dangerous?
No. Most macros are harmless, and plenty of businesses rely on one or two of them every day. The risk is a macro in a file you weren’t expecting, from someone you can’t check with.
The file name tells you whether a file can carry one. Word, Excel and PowerPoint files that contain macros end in .docm, .xlsm and .pptm. An ordinary .docx or .xlsx file can’t hold a macro. The older .doc and .xls formats can, which is one reason attackers still send them.
A simple rule for staff: if a file that arrived by email asks you to enable macros or content, stop and ring the sender. You never need macros turned on just to read a document.
What Microsoft already does
Since 2022, Office on Windows blocks macros in files that came from the internet, which includes email attachments and downloads. Instead of the old yellow bar with an Enable content button, people see a red Security Risk banner with no button at all.
It’s a good default, and it has stopped a lot of attacks. It still leaves gaps:
- Anyone can unblock a file themselves, by right-clicking it, opening Properties and ticking Unblock. An attacker’s email only needs to explain how.
- It only covers the Windows desktop apps.
- It catches legitimate files too. Opening a shared folder by its IP address, for example, makes Office treat the files as coming from the internet. When a real macro breaks, the quick fix people find online is to turn macros on for everything, which removes the protection completely.
What the Essential Eight asks for
The Australian Signals Directorate’s Essential Eight sets four requirements for macros at Maturity Level One, the level most small businesses aim for first:
- Macros are turned off for anyone without a demonstrated business need for them.
- Macros in files from the internet are blocked.
- Macro antivirus scanning is turned on.
- Staff can’t change the macro security settings themselves.
Microsoft’s default goes a long way towards the second. Scanning works with Microsoft Defender but is a setting someone has to check is on. The first and the fourth only happen if someone sets them up deliberately, and in most small offices nobody has.
The licensing catch
Microsoft’s own documentation says its central policies for macro settings only work with Microsoft 365 Apps for enterprise. They aren’t available for Microsoft 365 Apps for business, which is the version included in Business Standard and Business Premium, the plans most small businesses use.
That matters most for requirement four. “Staff can’t change the settings” is hard to show an assessor or an insurer without settings that are enforced from the centre. If your business has to demonstrate Essential Eight compliance rather than simply follow it in spirit, check which Office version you’re licensed for before you start, because it changes the approach. Choosing the right Microsoft 365 plan covers the differences.
How to check the setting on your own computer
In Word or Excel on Windows, go to File, Options, Trust Center, Trust Center Settings, then Macro Settings. On some computers it is spelt Trust Centre. There are four choices:
- Disable all macros without notification. Nothing runs and nobody is asked. This is the right choice for anyone who doesn’t use macros.
- Disable all macros with notification. Macros are off, and a warning bar offers to turn them on for that file. This is how Office is normally set.
- Disable all macros except digitally signed macros. Only macros signed by a publisher you have trusted will run.
- Enable all macros. Everything runs without asking.
Excel words these slightly differently, and each app has its own setting, so changing it in Excel doesn’t change it in Word. If the choices are greyed out, the settings have been locked from the centre, which is what requirement four asks for.
How to approach it in a small office
Find out who actually uses macros. Ask rather than guess. It’s usually one or two people, often in accounts, and often only for one or two files.
Turn macros off for everyone else. For most staff the setting should be the strictest one, and they’ll never notice.
For the people who need them, trust the file, not every file. Keep the macro files in one folder that only those people can save to and mark it as trusted, or ask the software vendor whether they sign their macros. Both let the real work carry on without opening the door for every attachment.
On one computer, macros kept running although the office policy blocked them. The policy was working. The user had clicked Enable Content on hundreds of files over the years, and Office remembers each one as trusted and stops checking it. The fix was one locked folder for the single spreadsheet that needed macros.
Never “fix” a blocked macro by enabling all macros. Microsoft labels that setting “not recommended” for good reason.
Write it down. Keep a short record of who needs macros and why. Essential Eight assessors ask for exactly that, and it saves rediscovering the answer next year.
Macros are one control out of eight. The Essential Eight explained covers the rest, and most attacks that use macros start with a convincing scam email. To find out where your business stands on all eight, start with the free health check described under cyber security for small businesses.