Skip to content
Software development
ASD ISMISM-1240

ASD ISM 1240 Ensure input validation and sanitisation for internet data

What it says

Validation and sanitisation are performed on all input received over the internet by software.

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

What it means

In plain English

All internet-received inputs for software must be validated and cleaned to prevent security issues.

This control is about making sure that any information your software receives from the internet is checked and cleaned up before it's used. It's crucial because if untrusted data is allowed into your system, it could lead to security breaches, where someone could steal information or damage your system.

Why it matters

Unchecked internet input can enable injection attacks (e.g. SQLi/XSS), causing data breaches, fraud, or service disruption.

How to implement

  1. The IT team should implement input validation by setting up rules in the software to check that all internet data fits expected patterns before it's used.

    This can be done by using built-in features of programming languages or security libraries to ensure data is safe.

  2. Software developers should sanitise input data by removing or altering any potentially harmful parts.

    They can achieve this through programming methods that strip out harmful characters or commands that could cause damage if entered into the system.

  3. The security manager should regularly train staff involved in software development on safe data handling practices.

    This includes how to identify insecure input sources and what best practices to follow to mitigate risks.

  4. Team leaders should integrate input validation and sanitisation checks into the development lifecycle.

    This involves making these steps part of the software testing phase, ensuring every new piece of code runs through these checks before it goes live.

  5. The IT security team should continuously monitor input validation and sanitisation processes.

    They can use automated tools to scan applications for vulnerabilities and report issues for quick resolution, maintaining strong security over time.

Keep it running

Validate and sanitise all internet input server-side using allow-lists, encoding and safe parsers; add tests and monitor logs for suspicious payloads.

Evidence and audit

  1. Check 1 of 5What an auditor asks for

    Ask for

    The documentation of the input validation processes: Request the specific guidelines or policies developers follow for input validation.

    Look at

    Whether these policies are comprehensive and address all potential data sources.

    Good evidence

    Shows detailed policies outlining specific validation methods used for different types of inputs.

  2. Check 2 of 5What an auditor asks for

    Look at

    Examples where potentially malicious input was neutralised.

    Good evidence

    Provides clear before-and-after data showing how input was cleaned.

  3. Check 3 of 5What an auditor asks for

    Ask for

    Training logs: Request records showing staff training sessions on input validation and sanitisation.

    Look at

    The frequency and content of these sessions.

    Good evidence

    Includes recent, detailed records showing regular training and updates aligned with current threats.

  4. Check 4 of 5What an auditor asks for

    Ask for

    Documentation showing that input validation and sanitisation checks are part of the software testing process.

    Look at

    Whether these checks are applied consistently across all software updates.

    Good evidence

    Includes test results verifying that all tested software versions passed input handling checks.

  5. Check 5 of 5What an auditor asks for

    Ask for

    Monitoring reports: Request reports from any tools used to monitor input validation and sanitisation efforts.

    Look at

    The coverage and issues identified.

    Good evidence

    Includes recent reports showing active monitoring and instances where issues were detected and resolved.

Mappings

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

ISO 27001

ISO/IEC 27001: 1 mapping

  • A.8.25Secure development lifecyclePartially meets

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