Skip to content
Configure macro settings
Essential EightE8-RM-ML3.2

Essential Eight RM-ML3.2 Check Microsoft Office macros for malicious code before signing or trusting

What it says

Microsoft Office macros are checked to ensure they are free of malicious code before being digitally signed or placed within Trusted Locations.

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

In plain English

Review each Microsoft Office macro, including every new version, for malicious code, and sign it or place it in a Trusted Location only once it is found clean.

Each Microsoft Office macro must be checked and found free of malicious code before it is digitally signed or placed in a Trusted Location. Signing it with a trusted publisher's certificate, or placing it in a Trusted Location, lets it run without Office blocking it (E8-RM-ML3.1), so the check must come first. A changed macro is new code and needs a new check. A vendor's signature shows who published a macro, not that it was checked for malicious code.

Why it matters

Office runs a macro signed by a trusted publisher or kept in a Trusted Location without blocking it, so any malicious code inside gets the same trust. Checking first is the point where tampered or malicious code can be found before it gains that trust.

How to implement

  1. Set the checking steps and who performs them.

    Write down what each check covers, what evidence is kept and who is responsible for checks. Give those people the privileged accounts that, under E8-RM-ML3.3, are the only ones able to write to Trusted Locations, and keep signing with the organisation's certificate in the same hands.

  2. Read the full code of each macro.

    Get the source unlocked, refusing password-protected projects that cannot be read, and read every module, including code that runs automatically when a file opens. Look for downloads, calls to Windows functions or other programs, disguised or encoded strings, and anything beyond the macro's stated business purpose.

  3. Scan it and test it in an isolated environment.

    Scan the file with current antivirus, then run the macro on an isolated test device and watch what it does: files written, programs started and network connections made. It should do only what the business asked for.

  4. Sign or place only the file you checked.

    Record the checker, date, result and the file's hash, and confirm the file you sign or copy into the Trusted Location matches it. For vendor macros, checking them and re-signing with your own certificate means a vendor's signature never stands in for your check.

Keep it running

Every new or changed macro, including vendor updates, goes through the check before it is re-signed or replaced in a Trusted Location. Recheck stored macros if the antivirus later flags one or a vendor reports a compromise.

Evidence and audit

  1. Check 1 of 3What an auditor asks for

    Ask for

    A sample of signed macro files found in use on shared drives and workstations, and the macro check records.

    Look at

    Whether each file matches a completed check of the same version, made before it was signed.

    Good evidence

    Each sampled signed macro matches a completed check of that same version, naming the checker and result, made before it was signed.

  2. Check 2 of 3What an auditor asks for

    Ask for

    The contents and change history of each Trusted Location, and the macro check records.

    Look at

    Whether any file in a Trusted Location, or added or changed there recently, has no matching check.

    Good evidence

    Every file in each Trusted Location, including recent additions and changes, matches a completed check made before it was placed there.

  3. Check 3 of 3What an auditor asks for

    Ask for

    A walk-through by a person responsible for checks of a recently checked macro, from receipt to signing or placement.

    Look at

    Whether the code was read in full, scanned and run in isolation before signing, and what happens to a project that cannot be read.

    Good evidence

    The person shows the full code was read, scanned and tested before signing or placement, and that a locked or unreadable project is refused rather than signed.

Mappings

Closest match in ASD Information Security Manual: ISM-1890, Ensure macros are free of malicious code, which asks for the same thing.

ASD ISM

ASD Information Security Manual: 5 mappings

ASD Essentials

ASD Essentials for enterprise IT: 1 mapping

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