Skip to content
Software development
ASD ISMISM-2016

ASD ISM 2016 Validate and sanitise all input that software receives over a local network

What it says

Validation and sanitisation are performed on all input received over a local network by software.

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

In plain English

Every input that software receives over a local network must be validated and sanitised, including input from internal users, internal APIs and other internal systems.

Every input that software receives over a local network, such as the organisation's internal network, must be both validated and sanitised. Validation checks input against what is expected, such as type, length or format, and rejects the rest. Sanitisation removes or neutralises anything that could be harmful where the input is used. Input from internal users, internal systems and message queues counts, however trusted the sender. ISM-1240 covers internet input. The ISM applies this to software the organisation develops or commissions.

Why it matters

A malicious actor who has compromised one internal system, or a malicious insider, can send crafted input to other internal software. Validating and sanitising local network input removes the easy path of exploiting software that trusts anything from inside the network.

How to implement

  1. List every way the software receives input over a local network.

    Include internal web pages, internal APIs, service-to-service calls, message queues, administration interfaces and files read from network shares. Compare the list with routes, queue subscriptions, file reads and outbound call responses in the code, and with network flow records or connection logs, so undocumented interfaces and senders show up.

  2. Normalise each input, including Unicode, then validate it on the receiving side.

    Check it against an allow-list of the expected type, length, format, range or values, and reject the rest. Do not skip checks because the caller is internal or authenticated: authenticating internal API clients (ISM-2013, ISM-2014) is a separate requirement and does not make their input safe.

  3. Sanitise input for the place it will be used.

    Neutralise characters with special meaning to the destination, such as a database query, command line or internal web page. Use parameterised queries or stored procedures (ISM-1276), and document and test each rule as ISM-2057 requires.

  4. Put checks in front of software you cannot change.

    Where legacy in-house software takes local network input and its code cannot be changed, route that input through a wrapper service or gateway that validates and sanitises it first. Where a supplier develops the software, put this requirement in the contract and ask for test results.

Keep it running

Add validation and sanitisation in the same change that adds an internal interface, queue or integration. Recheck the input list when systems are newly connected, when an internal service is opened to more callers, or after an incident involving an internal system.

Evidence and audit

  1. Check 1 of 3What an auditor asks for

    Ask for

    The list of local network inputs for a sample of software, with the routes, queue subscriptions, file reads and outbound call responses found in its code, and network flow records or connection logs showing which systems actually send to it.

    Look at

    Whether every interface found in the code and every sender seen in the network records is on the list, and what checks each listed input gets.

    Good evidence

    Every interface found in the code and every sender seen in the network records is on the list, and each listed input is both validated and sanitised.

  2. Check 2 of 3What an auditor asks for

    Ask for

    A test from a host on the local network, in an environment configured like production, that sends malformed, oversized, encoded and special-character values to a sample of internal interfaces, using valid credentials where they are required.

    Look at

    Whether the receiving software rejects or neutralises each value even though the caller is internal and authenticated.

    Good evidence

    Every value that breaks a rule is rejected, special characters that a field allows reach their destination neutralised, and no check is skipped because the caller is internal or authenticated.

  3. Check 3 of 3What an auditor asks for

    Ask for

    The code for a sample of service-to-service calls and message queue consumers.

    Look at

    Whether input from other internal systems passes through the same validation and sanitisation as user input.

    Good evidence

    Input from internal systems is validated and sanitised before use, with no code path that trusts a caller because of where it sits on the network.

Mappings

Closest match in ISO/IEC 27001: A.8.25, Secure development life cycle, which this control partially meets.

ISO 27001

ISO/IEC 27001: 2 mappings

  • A.8.25Secure development life cyclePartially meets
  • A.8.28Secure codingPartially meets

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