ASD ISM 1287 Ensure gateway and CDS file content sanitisation
What it says
Files imported or exported via gateways or CDSs undergo content sanitisation.
Quoted as published. Everything else on this page is written by Control Stack.
In plain English
Active content such as macros and scripts must be removed or neutralised from every file passing through a gateway or cross domain solution, in either direction.
Files imported or exported through a gateway or cross domain solution (CDS) must undergo content sanitisation. Gateways and CDSs control data flows between security domains, such as an internal network and the internet. Sanitisation removes or neutralises active content, meaning code that can run inside a file, such as macros, scripts and embedded executables, while keeping as much of the content as possible. It applies to every file, not only files a scanner flagged. Unlike content conversion (ISM-1286), the file type stays the same.
Free. Save your status, tasks and notes.
Why it matters
Macros and scripts inside files are a common way to run malicious code when a file is opened, and new variants can get past scanners. Removing active content from every file takes that code out before anyone opens it, while the information still arrives.
How to implement
List the active content each allowed format can hold.
Work from the allowed file types (ISM-0649) and cover macros, scripts, embedded executables and automatic actions. Tell the teams who use each format what they will lose, such as macro-driven features, before switching sanitisation on.
Turn on sanitisation for every file on every path, in both directions.
Use the sanitisation feature of the content filter or CDS, sometimes called content disarm and reconstruction, or a sanitisation service the gateway sends files to. Include files unpacked from archives (ISM-1289) and decrypted files (ISM-1293), and exempt no sender.
Deliver only the sanitised file.
Block or quarantine any file the sanitiser cannot process, and remove any option for recipients to retrieve the unsanitised original. Where a bought service cannot sanitise a format, route that format through a stage that can, or remove it from the allowed list.
Test with harmless files that contain active content.
Send a document with a macro, a PDF with a script and a file with an embedded executable, in and out on each path, and confirm each arrives without it and still opens.
Keep it running
Recheck sanitisation when a new file type is allowed (ISM-0649) or the sanitiser, CDS or a bought service is updated, since support for each format varies. Watch for files the sanitiser cannot process, and resolve them without releasing the original.
Evidence and audit
- Check 1 of 3What an auditor asks for
Ask for
The sanitisation settings for every gateway and CDS path, compared with the allowed file types (ISM-0649).
Look at
Whether every allowed format is sanitised in both directions, which kinds of active content are removed, and any sender or format exempted.
Good evidence
Every allowed format on every path and direction is sanitised, removing or neutralising macros, scripts and embedded executable content, with no sender, group or format exempted.
- Check 2 of 3What an auditor asks for
Ask for
Harmless test files with a macro, a PDF script and an embedded executable, sent in and out on each path.
Look at
What the recipient receives, opened in a tool that lists active content, and whether the original can be retrieved.
Good evidence
Each delivered file keeps its readable content but holds no macro, script or embedded executable, and the recipient cannot retrieve the original.
- Check 3 of 3What an auditor asks for
Ask for
Sanitiser logs for a recent period, compared with the gateway's record of files passed.
Look at
Whether every passed file has a sanitisation record, including files from archives.
Good evidence
Every file passed in either direction has a sanitisation record, including files from archives, and none was released after the sanitiser failed or timed out.
Mappings
Closest match in ISO/IEC 27001: A.8.7, Protection against malware, which this control partially meets.
ISO/IEC 27001: 1 mapping
This control partially meets A.8.7.
ISM-1287 requires that files imported or exported via gateways or cross domain solutions (CDSs) undergo content sanitisation to remove harmful or unsafe content. This supports Annex A 8.7 by providing a concrete preventative mechanism to reduce malware introduction via file transfer paths, particularly for externally sourced or cross-boundary files. Annex A 8.7 is broader and includes endpoint/network malware protections and awareness, while ISM-1287 is specific to sanitising files at transfer enforcement points.
Mappings show how controls relate across frameworks. They do not imply full equivalence or certification.




