---
title: "The Macro Dropper: Code Inside the Document: How One Click Hands Over Your Computer"
description: One click on Enable Content runs a program hidden in a Word file, with your rights. Emotet spread this way for years through fake invoices.
---

[File Security 101 - Threats Beyond Malware explained](https://explore.bowbridge.net/file-security-101)

# [The Macro Dropper: Code Inside the Document: How One Click Hands Over Your Computer](https://explore.bowbridge.net/file-security-101/episode-14-the-macro-dropper-code-inside-the-document)

 Written by [Joerg Schneider-Simon](https://explore.bowbridge.net/file-security-101/author/joerg-schneider-simon) | Nov 26, 2026, 4:13:04 PM

A Word document can carry a complete program, and one click on "Enable Content" runs it with your rights. This is episode 14 of File Security 101, our series on file-based threats your anti-malware does not see.

The video explains it in about two minutes.  
The article adds the details and the research behind it.

## An invoice that says "Enable Content"

The mail looks routine: an invoice, a shipping notice, a CV. The attachment opens in Word with a yellow bar, and the page itself says the content cannot be displayed until you enable it, perhaps because it was "created in an older version" or needs "full layout". Most people read this as a compatibility problem. It is a request to run a program.

## Macros: a program in the file

Office documents can carry a macro project written in Visual Basic for Applications (VBA). In a .docm or .xlsm file, it is a separate part, `word/vbaProject.bin` or `xl/vbaProject.bin`; in the older binary formats, it is a storage inside the OLE file. Some macro names are special: `AutoOpen` and `Document_Open` in Word, `Auto_Open` and `Workbook_Open` in Excel, run automatically when the file opens, once macros are allowed. VBA is not limited to the document. It can create objects for HTTP requests, write files, read the user's documents and start other programs, all with the rights of the user who opened the file.

## The attack: one click on Enable

The attacker writes a macro that downloads malware from their server and starts it, saves it into a document and adds a fake notice to the page that tells the reader to enable content. Office disables macros in documents from untrusted sources, but for years it showed a "Security Warning" bar with an "Enable Content" button. One click on that button runs the macro. From then on, the attacker has a program running on the computer, with access to the user's files and mail, and often a way to download further tools.

## It happened

- **Emotet.** For years, Emotet was spread by emails with malicious Word attachments posing as invoices, shipping notices or COVID-19 information; users were prompted to "enable macros" so the hidden code could install the malware ([Eurojust](https://www.eurojust.europa.eu/worlds-most-dangerous-malware-emotet-disrupted-through-global-action)). Criminals then rented access to infected computers to install banking trojans and ransomware. In October 2020, CISA reported about 16,000 alerts related to Emotet on federal civilian networks since July 2020 ([Dark Reading](https://www.darkreading.com/cyberattacks-data-breaches/cisa-warns-of-renewed-emotet-activity)). On January 27, 2021, authorities in eight countries, coordinated by Europol and Eurojust, disrupted its infrastructure.
- **Microsoft's change, 2022.** Microsoft changed the default so that Office on Windows blocks macros in files from the internet, recognized by the Mark of the Web. Instead of "Enable Content", users see a "Security Risk" banner without that button. The change reached the Current Channel with version 2206 on July 27, 2022 ([Microsoft](https://learn.microsoft.com/en-us/microsoft-365-apps/security/internet-macros-blocked)).
- **The effect.** Proofpoint measured that the use of macro-enabled attachments by threat actors fell by about 66% between October 2021 and June 2022, while container files such as ISO and RAR, and Windows shortcut files, rose ([Proofpoint](https://www.proofpoint.com/us/blog/threat-insight/how-threat-actors-are-adapting-post-macro-world)). Containers matter because files extracted from them may not carry the Mark of the Web.

## Why it slips through

This file does contain malicious code, so why does it get through? VBA is easy to obfuscate. Strings can be built from character codes, reversed or split across variables, and the project can be protected with a password; Netskope described a campaign with a password-protected, obfuscated macro project whose code common analysis tools could not extract ([Netskope](https://www.netskope.com/blog/abusing-microsoft-office-using-malicious-web-archive-files)). Each campaign produces new bytes, and a signature must exist before the first recipient clicks. Detection is a race that the attacker starts ahead.

## What to do

- Keep the default that blocks macros in files from the internet. In Microsoft 365 Apps for enterprise, enforce it with the policy "Block macros from running in Office files from the Internet".
- Where macros are needed, allow only macros signed by publishers you trust, and keep Trusted Locations to a minimum.
- Treat any document that asks you to enable content as suspicious, even if it comes from a known sender.

bowbridge Content Disarm and Reconstruct (CDR) can rebuild supported Office documents from permitted components only, preserving content such as text, tables and images according to policy. A policy that excludes macros keeps them out of the rebuilt copy.

[Join the bowbridge CDR beta program](https://explore.bowbridge.net/en/cdr-beta)

## Sources

- [World's most dangerous malware EMOTET disrupted through global action](https://www.eurojust.europa.eu/worlds-most-dangerous-malware-emotet-disrupted-through-global-action), Eurojust, January 27, 2021
- [CISA Warns of Renewed Emotet Activity](https://www.darkreading.com/cyberattacks-data-breaches/cisa-warns-of-renewed-emotet-activity), Dark Reading, October 8, 2020 (on CISA alert AA20-280A)
- [Macros from the internet are blocked by default in Office](https://learn.microsoft.com/en-us/microsoft-365-apps/security/internet-macros-blocked), Microsoft Learn
- [How threat actors are adapting to a post-macro world](https://www.proofpoint.com/us/blog/threat-insight/how-threat-actors-are-adapting-post-macro-world), Proofpoint, July 28, 2022
- [Abusing Microsoft Office Using Malicious Web Archive Files](https://www.netskope.com/blog/abusing-microsoft-office-using-malicious-web-archive-files), Netskope Threat Labs, January 12, 2022

## Subscribe to upcoming episodes

[View full post](https://explore.bowbridge.net/file-security-101/episode-14-the-macro-dropper-code-inside-the-document)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Joerg Schneider-Simon"
  },
  "dateModified" : "2026-11-26T16:13:04.502Z",
  "datePublished" : "2026-11-26T16:13:04Z",
  "headline" : "The Macro Dropper: Code Inside the Document: How One Click Hands Over Your Computer",
  "image" : {
    "@type" : "ImageObject",
    "height" : 500,
    "url" : "https://2773339.fs1.hubspotusercontent-eu1.net/hubfs/2773339/Blog/File%20Security%20101/Headers/File%20Security%20101%20-%20Blog%20Header.jpeg",
    "width" : 1779
  },
  "mainEntityOfPage" : "https://explore.bowbridge.net/file-security-101/episode-14-the-macro-dropper-code-inside-the-document",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "File Security 101 - Threats Beyond Malware explained"
  }
}
```