Skip to content
System hardening
ASD ISMISM-1668

ASD ISM 1668 Prevent Microsoft Office from creating executable files

What it says

Microsoft Office is blocked from creating executable content.

Quoted as published. Everything else on this page is written by Control Stack.

In plain English

Block Microsoft Office from creating executable content, meaning files that can run as code, whatever prompts Office to write them.

Microsoft Office must be blocked from creating executable content, meaning files that can run as code, such as programs, libraries and scripts. The block applies to Microsoft Office as a whole, including when a macro prompts it to write the file, and the control sets no exception. It differs from ISM-1667, which covers Office starting another program. Application control (ISM-1657) limits what may run on a system, and meeting it does not meet this control.

Why it matters

A macro or exploit can use Office to save a malicious component to disk, where it survives a restart and can run later. Blocking Office from creating executable content removes that way of staying on the device.

How to implement

  1. List every device running Microsoft Office.

    Compare the software registers (ISM-1493) with licence records and endpoint management data. Note each device's operating system and active antivirus, because the Windows rule in the next steps depends on them.

  2. Run the Windows blocking rule in audit mode first.

    Use the attack surface reduction rule 'Block Office applications from creating executable content'. Audit mode logs what would be blocked, so macros, add-ins and reporting tools that generate code through Office show up.

  3. Rework anything the audit shows writing code through Office.

    Change the macro or add-in, or move the work to an approved application outside Office. An exclusion leaves that path open, so treat it as a known shortfall until removed.

  4. Switch the rule to block mode.

    Audit mode takes no action and warn mode allows a bypass. The rule needs the built-in Windows antivirus active with real-time protection on.

  5. Cover devices the rule cannot reach.

    It runs only on Windows, and not where another antivirus product is primary. Use your endpoint protection product's equivalent rule and test it. Any device still uncovered is a known shortfall.

Keep it running

Recheck after changing antivirus product, because another product taking over as primary turns this rule off. Also recheck when a new add-in or macro-based tool arrives, since it may try to generate code through Office.

Evidence and audit

  1. Check 1 of 3What an auditor asks for

    Ask for

    Rule status from endpoint management, compared with Office install records from licensing or a software inventory scan.

    Look at

    Whether every device with Microsoft Office shows the rule in block mode with the built-in antivirus active, or a tested equivalent.

    Good evidence

    Every device on either list shows the rule in block mode with the built-in antivirus active, or has a tested equivalent. None shows audit, warn, off or no status.

  2. Check 2 of 3What an auditor asks for

    Ask for

    All rule exclusions and antivirus process exclusions configured in endpoint management for every group, with those in effect on sampled workstations.

    Look at

    Whether any exclusion lets Office create executable content.

    Good evidence

    No exclusion lets Office create executable content. One that does is a known shortfall and fails this check, even if it was approved and recorded.

  3. Check 3 of 3What an auditor asks for

    Ask for

    A live test on a workstation picked from the inventory scan, using a harmless macro that writes a small program file, a library and a script to the user's temp folder and tries to open each, with macros permitted for the test account.

    Look at

    Whether each file can be created, opened or run, and what the device logs.

    Good evidence

    Each file is either not created or cannot be opened or run, and the device logs a block event for the rule each time. Because macros were permitted, the rule and not a macro setting blocked them.

Mappings

Closest match in ASD Essential Eight: E8-AH-ML2.3, Block Microsoft Office from creating executable content, which asks for the same thing.

Essential Eight

ASD Essential Eight: 6 mappings

Mappings show how controls relate across frameworks. They do not imply full equivalence or certification.