Skip to content
Gateways
ASD ISMISM-1284

ASD ISM 1284 Ensure content validation for gateway files

What it says

Files imported or exported via gateways or CDSs undergo content validation.

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

In plain English

Every file passing through a gateway or cross domain solution, in either direction, must be validated as well formed for its format, which scanning alone does not do.

Files imported or exported through a gateway or cross domain solution (CDS) must undergo content validation. Gateways and CDSs control data flows between security domains, such as an internal network and the internet. Content validation checks that each file is well formed, meaning its internal structure follows the specification for its format, or an agreed schema for structured data such as XML. It differs from antivirus scanning (ISM-1288) and allowed file type filtering (ISM-0649), and neither of those meets this control.

Why it matters

Many malicious files use deliberately malformed structure to exploit flaws in the software that opens them, and a new exploit may have no antivirus signature. Checking each file's structure against its format can flag such files whether or not the payload is known.

How to implement

  1. Choose a validator for each format on the allowed file types list (ISM-0649).

    Use the format checking in the content filter or CDS, or a file validation service the gateway sends files to, and check structured data such as XML or JSON against an agreed schema. Confirm in vendor documentation that it checks structure, not only type.

  2. Turn on validation for every path, in both directions.

    Include files unpacked from archives (ISM-1289) and decrypted files (ISM-1293). Quarantine files that fail for review (ISM-0652) or block them, but block any too malformed to inspect (ISM-0651).

  3. Close gaps where a format cannot be validated.

    The control makes no exception, so find a validator or remove the format from the allowed file types (ISM-0649). Where a bought email or web service has no format validation, route files through a gateway stage that has it.

  4. Test each validator with malformed samples.

    Send harmless files with broken structure, such as a truncated PDF or an image with a wrong length field, in and out on each path, and confirm each one is caught.

Keep it running

Add a validator before allowing any new file type on a path, and recheck coverage when the content filter, CDS or a bought service is upgraded or replaced. Look into spikes in validation failures, which can mean a faulty sender or someone probing the filter.

Evidence and audit

  1. Check 1 of 3What an auditor asks for

    Ask for

    The allowed file types for each path (ISM-0649), with the validation settings and vendor documentation for each format.

    Look at

    Whether every allowed format is checked against its specification or schema in both directions, rather than only identified or scanned.

    Good evidence

    Every allowed format on every path and direction has structure validation turned on, and no format relies only on antivirus scanning, type identification or an extension check, whatever exceptions have been recorded.

  2. Check 2 of 3What an auditor asks for

    Ask for

    Harmless but malformed test files in several allowed formats, such as a truncated PDF, each with a well-formed copy, sent in and out on each path.

    Look at

    What happens to each malformed file and its well-formed copy, and the reason the logs give.

    Good evidence

    Every malformed file is flagged by validation and held or blocked in both directions, while each well-formed copy passes.

  3. Check 3 of 3What an auditor asks for

    Ask for

    Content filter logs and quarantine release records for a recent period, compared with the gateway's record of files passed.

    Look at

    Whether every passed file, including files unpacked from archives, completed validation, and the review decision for any that failed.

    Good evidence

    Every file passed in either direction, including files unpacked from archives, completed validation before release, and any that failed was released only after a recorded review approved its release.

Mappings

Closest match in ISO/IEC 27001: A.5.14, Information transfer, which this control partially meets.

ISO 27001

ISO/IEC 27001: 1 mapping

  • A.5.14Information transferPartially meets

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