Cyberkracht

Apps and programsMicrosoft Word

Be careful with macros in Word

Macros from unknown documents can be harmful. Here is what a macro is and what to do when Word asks for one.

Advanced · 4 min read

A macro is a small program inside a Word document that carries out tasks automatically, such as formatting a table or filling in data. Handy, but also risky: a macro can do things on your device without you seeing it. In the hands of scammers it can download harmful software, steal passwords or encrypt your files.

Scammers therefore like to hide macros in documents that look harmless, such as an invoice, a quote or a CV. The document then asks you to enable macros or 'content' 'so that you can read it'. That is the trick: only once you give permission can the macro start.

Watch out: Never enable macros at the request of an unknown or unexpected document.

How to recognise a suspicious document

  • You were not expecting the document, or the sender does not match the content.
  • The document is blurred or unreadable and says you have to choose 'Enable Content' or 'Enable Editing' to see it.
  • The message puts you under pressure: 'urgent', 'final warning' or 'pay today'.
  • The file name ends in .docm. That is a Word file that can contain macros.
  • The document comes from someone you know, but the message does not fit how that person normally writes. Their account may have been hacked.

A concrete example

You receive an e-mail from 'accounts' with the attachment 'Invoice.docm'. You open the file and see a blurred screen with the text: 'Click Enable Content to view the invoice.' If you do, a macro starts in the background that puts harmful software on your computer. The invoice itself does not exist. A genuine sender who sends an invoice never needs macros to show you a simple amount.

Tip: Are you really expecting a document with macros from a colleague? Confirm that first through another channel, such as a call to a number you already knew.

Common mistakes and questions

This often goes wrong:

  • Clicking 'Enable Content' straight away so you can read the document.
  • Trusting an attachment because the sender or the name seems familiar.
  • Clicking away a warning from Word because you are in a hurry.
  • Simply opening and editing a document you downloaded from the internet.

Can I read a document without enabling macros?
Usually yes. You can often just view the text and ordinary content. If you need the macro in order to see anything, that is itself a warning sign.

Are all macros bad?
No. At work, some teams use macros for their own documents. Only enable them for files from a source you know and trust.

What do I do at work with a suspicious document?
Do not open it any further and report it to IT, following the internal procedure.

What if it goes wrong anyway?

Did you enable macros and notice that something is wrong? Close the document, disconnect the device from the network and change your most important passwords from a safe device. Do not be ashamed: scammers are well prepared and anyone can fall for it. Read our pages I clicked on a phishing link, My account has been hacked and My files are being held to ransom (ransomware). You can read more about macros and Protected View at Why Word sometimes blocks macros and Take Protected View in Word seriously. You can read more about fake login pages in documents at Documents that lead to a fake login page. You can find more help at I am a victim.

Test your resilienceMicrosoft: explanation of blocked macros(opens in a new tab)

Log in to save your reading progress.