Skip to content
Gateways
ASD ISMISM-1287

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.

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

  1. 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.

  2. 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.

  3. 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.

  4. 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

  1. 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.

  2. 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.

  3. 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 27001

ISO/IEC 27001: 1 mapping

  • A.8.7Protection against malwarePartially meets

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