ASD ISM 1673 Prevent Win32 API calls by Office macros
What it says
Microsoft Office macros are blocked from making Win32 API calls.
Quoted as published. Everything else on this page is written by Control Stack.
In plain English
Block Microsoft Office macros from making Win32 API calls, the Windows functions a macro could otherwise use to act beyond Office.
Microsoft Office macros must be blocked from making Win32 API calls. Win32 APIs are the programming functions Windows offers to applications, and a macro can call them directly to do things Office itself does not offer. The control sets no exception, so the block also covers approved macros that ISM-1674 allows to run, such as those signed by a trusted publisher or run from a Trusted Location. Win32 is specific to Windows, so this applies to Office on Windows.
Free. Save your status, tasks and notes.
Why it matters
Through Win32 calls a macro can reach past Office, for example launching malicious code in memory without writing anything to disk for a file scan to find. Blocking these calls removes that reach, even for a macro someone has enabled.
How to implement
Find approved macros that call Win32 APIs.
Search macro source code for Declare statements, which is how macros reference functions in Windows libraries. Start with macros in Trusted Locations and those signed by a trusted publisher, and ask vendors of macro-based add-ins whether theirs rely on them.
Run the Windows blocking rule in audit mode first.
Use the attack surface reduction rule 'Block Win32 API calls from Office macros'. Audit mode logs what would be blocked, so macros your search missed show up. Rewrite each one with built-in Office features, or replace it.
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, and the Antimalware Scan Interface available, so check both on every device.
Cover devices where the rule cannot run.
Where another antivirus product is primary, use its equivalent rule and test it. If it has none, disable macros on those devices, which also meets this control. A device with neither is a known shortfall.
Keep it running
Recheck after changing antivirus product, because another product taking over as primary turns this rule off. Look for Declare statements in each new or changed macro during the check ISM-1890 requires, so a new dependency is caught before rollout.
Evidence and audit
- 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 Windows device with Microsoft Office shows the rule in block mode with the built-in antivirus active, a tested equivalent, or macros disabled.
Good evidence
Every Windows device on either list shows the rule in block mode with the built-in antivirus active, has a tested equivalent, or has macros disabled. None shows audit, warn, off or no status.
- 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, and the source code of macros there that sit in Trusted Locations or are signed by a trusted publisher.
Look at
Whether any exclusion exempts a macro from the rule, and, for any sampled macro that still contains Declare statements, whether its Win32 calls are blocked when it runs.
Good evidence
No exclusion exempts a macro from the rule, and every sampled macro that still contains Declare statements has its Win32 calls blocked when run. A recorded exclusion is a known shortfall and fails this check.
- 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 makes a Win32 API call, run once from a Trusted Location and once signed by a trusted publisher, with macros permitted for the test account.
Look at
Whether the call goes through in either run, and what the device logs.
Good evidence
The call is blocked in both runs and the device logs a block event for the rule each time. Because macros were permitted, the rule and not a macro setting blocked it.
Mappings
Closest match in ASD Essential Eight: E8-RM-ML2.1, Microsoft Office macros are blocked from making Win32 API calls, which asks for the same thing.
ISO/IEC 27001: 1 mapping
This control partially meets A.8.9.
ISM-1673 requires implementing a specific security configuration: blocking Win32 API calls from Microsoft Office macros. ISO/IEC 27001:2022 Annex A 8.9 requires establishing, documenting, implementing, monitoring and reviewing system configurations in general, including security configurations. ISM-1673 is a single, prescriptive configuration item that would sit within the broader configuration management discipline required by Annex A 8.9.
ASD Essential Eight: 8 mappings
This control is equivalent to E8-RM-ML2.1.
E8-RM-ML2.1 requires blocking Microsoft Office macros from making Win32 API calls, which aligns with ISM-1673's equivalent mandate. Both controls directly address the same macro-to-Win32 API interaction and have matching scope and intent, ensuring that implementing one satisfies the other.
This control partially overlaps E8-AH-ML2.2.
E8-AH-ML2.2 requires Microsoft Office to be blocked from creating child processes to reduce Office-based malware execution and living-off-the-land activity. ISM-1673 specifically blocks Microsoft Office macros from making Win32 API calls, which is another common technique used by malicious macros to execute payloads or evade controls. Both reduce macro-enabled attack paths in Office, but E8-AH-ML2.2 focuses on process creation, while ISM-1673 focuses on API-level macro capabilities and does not necessarily prevent non-macro Office components from spawning processes.
This control partially overlaps E8-AH-ML2.3.
ISM-1673 requires that Office macros cannot directly call Win32 APIs, limiting low-level system interaction from macro code. E8-AH-ML2.3 blocks Microsoft Office from creating executable content, reducing the likelihood that a macro-driven workflow can drop or generate binaries. The controls intersect in reducing macro-enabled malware execution paths, but ISM-1673 is focused on API call capability whereas E8-AH-ML2.3 is focused on preventing a particular payload creation behaviour.
This control partially overlaps E8-AH-ML2.4.
E8-AH-ML2.4 requires Microsoft Office to be blocked from injecting code into other processes. ISM-1673 blocks Office macros from making Win32 API calls, which can be used to perform or facilitate process injection and related malicious behaviours. ISM-1673 is broader in constraining macro capabilities, while E8-AH-ML2.4 is a specific mitigation focused on the injection technique regardless of how it is initiated.
This control partially overlaps E8-AH-ML2.5.
ISM-1673 requires blocking Win32 API calls by Office macros to constrain macro capability. E8-AH-ML2.5 requires configuring Office to prevent activation of OLE packages, addressing a different Office abuse vector commonly used to execute embedded or linked content. Both reduce Office-borne code execution pathways, but they address different technical mechanisms (macro API calls versus OLE activation).
This control partially overlaps E8-RM-ML1.2.
ISM-1673 requires that Office macros are blocked from making Win32 API calls regardless of origin, limiting what macros can do if they run. E8-RM-ML1.2 blocks macros in files originating from the internet, reducing the likelihood of untrusted macros executing in the first place. E8-RM-ML1.2 is about trust/origin-based prevention, while ISM-1673 is about capability restriction for macros that may execute.
- E8-RM-ML3.1Restrict Office macros to sandboxes, Trusted Locations or trusted publishersPartially overlaps
This control partially overlaps E8-RM-ML3.1.
ISM-1673 requires that Office macros are blocked from making Win32 API calls, limiting macro capability even when execution is permitted. E8-RM-ML3.1 restricts macro execution to sandboxed environments, Trusted Locations, or trusted signatures, controlling where and under what trust conditions macros can run. Both reduce macro-driven compromise, but E8-RM-ML3.1 is about execution allow-listing/trust boundaries while ISM-1673 is a specific runtime restriction on API access.
This control supports E8-RM-ML1.4.
ISM-1673 requires enforcing a specific macro hardening setting: blocking Win32 API calls from Office macros. E8-RM-ML1.4 requires preventing users from changing macro security settings, which helps ensure the ISM-1673 protection remains enabled and cannot be bypassed by end users. E8-RM-ML1.4 is broader about configuration integrity, whereas ISM-1673 is one particular macro restriction.
Mappings show how controls relate across frameworks. They do not imply full equivalence or certification.




