# Microsoft Office macro antivirus scanning is enabled

Microsoft Office macro antivirus scanning is enabled (ISM-1672, Essential Eight Maturity Level One).

Source: https://maester.dev/docs/tests/ASD.ISM-1672

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/jusso-dev" title="jusso-dev · Original author"><img src="https://github.com/jusso-dev.png" alt="jusso-dev" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/jusso-dev">jusso-dev</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/asd">ASD</a> · Intune · Device configuration · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId ASD.ISM-1672
```

## Overview

Microsoft Office macro antivirus scanning is enabled (ISM-1672, Essential Eight Maturity Level One).

A macro that is allowed to run can still be malicious. With macro runtime scanning, Office hands the behaviour of a running macro to the Antimalware Scan Interface (AMSI), where Microsoft Defender Antivirus or another registered antivirus inspects it and stops it. This check reads the Intune settings catalog policies for Windows and looks for **Macro Runtime Scan Scope** set to **Enabled** with the scope **Enable for all documents**, in an assigned policy. ASD's [guide to restricting Microsoft Office macros](https://www.cyber.gov.au/publication/restricting-microsoft-office-macros) and the ASD Blueprint for Secure Cloud both set all documents. **Enable for low trust documents** scans only files with the Mark of the Web, whose macros [ASD.ISM-1488](https://maester.dev/docs/tests/ASD.ISM-1488) already blocks, so it does not count.

#### Remediation action

1. In **Microsoft Intune admin center**, go to **Devices** > **[Configuration](https://intune.microsoft.com/#view/Microsoft_Intune_DeviceSettings/DevicesMenu/~/configuration)** > **Create** > **New policy** > **Windows 10 and later** > **Settings catalog**.
2. Add, under **Microsoft Office 2016** > **Security Settings**, the setting **Macro Runtime Scan Scope**, set it to **Enabled** and choose **Enable for all documents**.
3. Assign the policy to all users.

#### Related links

* [Essential Eight maturity model](https://www.cyber.gov.au/business-government/asds-cyber-security-frameworks/essential-eight/essential-eight-maturity-model)
* [ASD Microsoft Office macro security](https://www.cyber.gov.au/business-government/asds-cyber-security-frameworks/essential-eight/microsoft-office-macro-security)
* [Antimalware Scan Interface (AMSI)](https://learn.microsoft.com/windows/win32/amsi/antimalware-scan-interface-portal)

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | ASD.ISM-1672 |
| Severity | Medium |
| Suite | ASD |
| Product | Intune |
| Feature | Device configuration |
| Area | Devices and endpoints |
| Resource type | Tenant |
| User impact | Low |
| Implementation cost | Low |
| MITRE ATT&CK | T1204.002 Malicious File |
| Supports benchmark | ASD Essential Eight maturity model (version 2026.09.4), requirement ISM-1672 |
| Benchmark level | ML1 |
| Essential Eight strategy | Restrict Microsoft Office macros |
| Supports controls | essential-eight:ISM-1672, nist-800-53-r5:SI-3, ism:ISM-1672 |
| PowerShell test | [Test-MtAsdOfficeMacroAntivirusScanning](https://github.com/maester365/maester/blob/main/tests/asd/intune/Test.ASD.ISM-1672.ps1) |
| Services | Graph |
| Compatible licenses | INTUNE_A |

</details>

## Source

- Test: [`tests/asd/intune/Test.ASD.ISM-1672.ps1`](https://github.com/maester365/maester/blob/main/tests/asd/intune/Test.ASD.ISM-1672.ps1)
- Documentation: [`tests/asd/intune/Test.ASD.ISM-1672.md`](https://github.com/maester365/maester/blob/main/tests/asd/intune/Test.ASD.ISM-1672.md)
