Skip to content
System hardening
ASD ISMISM-1674

ASD ISM 1674 Ensuring secure execution of Microsoft Office macros

What it says

Only Microsoft Office macros running from within a sandboxed environment, a Trusted Location or that are digitally signed by a trusted publisher are allowed to execute.

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

In plain English

Block every Microsoft Office macro except those running in a sandboxed environment or a Trusted Location, or digitally signed by a trusted publisher.

Only Microsoft Office macros that meet at least one of three conditions may execute. Every other macro is blocked, such as an unsigned macro in an emailed document. The conditions are:

  • running within a sandboxed environment, an isolated space that limits what the macro can reach
  • running from a Trusted Location, a folder whose files Office treats as safe
  • being digitally signed by a trusted publisher, one whose signing certificate Office is set to trust

Why it matters

Malicious actors use macros in documents to compromise workstations, then steal data or deny access to it. Allowing only sandboxed, Trusted Location or trusted publisher macros means a macro from an unknown source either does not run or runs contained in a sandbox.

How to implement

  1. Choose a route for each macro in use.

    Macros stay disabled for users without a demonstrated business requirement (ISM-1671). For each macro the remaining users rely on, pick a Trusted Location or a trusted publisher's signature, both only after the check ISM-1890 requires, or a sandboxed environment. Signing suits files that move between folders; Trusted Locations suit shared templates.

  2. Set every Office application to disable all macros except digitally signed ones.

    Apply this through central policy, block users from enabling untrusted publishers' macros or trusting new publishers (ISM-1675), and turn off Trusted Documents, which otherwise reruns macros a user once enabled in a file. Where Office on another operating system cannot be set this way, disable its macros entirely.

  3. Define only the Trusted Locations and trusted publishers you chose, centrally.

    Set the locations in central policy, turn off the option allowing a mix of policy and user locations, and confirm in the Trust Centre that default and user-added locations no longer apply. Deploy publisher certificates centrally. ISM-1487 limits who can write to Trusted Locations.

  4. Run macros that cannot be checked or signed only in a sandboxed environment.

    Use an isolated environment, such as a separate virtual machine with no access to internal file shares or the user's normal session, for files from outside parties whose macros must run. Without one, such macros do not run.

  5. Test the result on a standard workstation.

    As an ordinary user allowed macros (ISM-1671), open four files: an unsigned macro in an ordinary folder, a macro signed by a trusted publisher, one in a Trusted Location and one signed by an untrusted publisher. Only the second and third should run, and the others should offer no way to enable them.

Keep it running

Recheck effective settings after Office updates or version changes and when a new Office application is deployed. A business process that breaks because its macro no longer runs needs one of the three permitted routes, not a looser setting.

Evidence and audit

  1. Check 1 of 3What an auditor asks for

    Ask for

    A test on a standard workstation, as an ordinary user allowed to run macros under ISM-1671, of four files: an unsigned macro in an ordinary folder, a macro signed by a trusted publisher, a macro in a Trusted Location and a macro signed by an untrusted publisher.

    Look at

    Which macros run, and whether the Message Bar or the File tab's Info page offers a way to enable the others.

    Good evidence

    Only the trusted publisher and Trusted Location macros run, and the unsigned and untrusted publisher macros neither run nor offer any way to enable them.

  2. Check 2 of 3What an auditor asks for

    Ask for

    The effective macro settings for every Office application on workstations sampled from the device inventory, including the Trusted Locations in force and the Trusted Documents setting.

    Look at

    Whether any route other than the three permitted ones could let a macro run, such as a Trusted Documents record or a default or user-added Trusted Location.

    Good evidence

    Every sampled workstation blocks macros outside the three routes in every Office application, and no Trusted Documents record or Trusted Location the organisation did not define can let other macros run.

  3. Check 3 of 3What an auditor asks for

    Ask for

    The sandboxed environment used for running other macros, where one is in use, with a test run from inside it.

    Look at

    Whether a macro run there can reach the user's normal workstation session, internal file shares or other internal systems.

    Good evidence

    Macros run in the sandboxed environment are confined to it and cannot reach the user's normal session, internal file shares or other internal systems.

Mappings

Closest match in ASD Essential Eight: E8-RM-ML3.1, Restrict Office macros to sandboxes, Trusted Locations or trusted publishers, which asks for the same thing.

Essential Eight

ASD Essential Eight: 9 mappings

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