Skip to content
Software development
ASD ISMISM-1909

ASD ISM 1909 Perform root cause analysis for vulnerabilities

What it says

In resolving vulnerabilities, root cause analysis is performed and, to the greatest extent possible, entire vulnerability classes are remediated.

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

In plain English

When resolving a vulnerability, find its root cause and, as far as possible, remediate the whole class of vulnerability it belongs to, not just the one instance.

When vulnerabilities in software the organisation develops are resolved, root cause analysis must be performed, and entire vulnerability classes must be remediated to the greatest extent possible. Root cause analysis finds why the flaw existed, such as an unsafe coding pattern or a missing check. A vulnerability class is a type of weakness, such as SQL injection. Remediating the class means removing other instances and changing code, libraries or defaults so the same type is not reintroduced. Fixing only the reported instance falls short unless nothing more was possible.

Why it matters

Fixing one instance often leaves the same unsafe pattern elsewhere in the code, and a published fix shows attackers what to look for. Finding the root cause and remediating the whole class closes those other instances and makes the pattern harder to repeat.

How to implement

  1. Make root cause analysis part of closing each vulnerability.

    Add required fields to the vulnerability record in the issue tracker: the weakness type and its CWE identifier, how the flaw got in, and why design review, code review or testing missed it.

  2. Search for the same weakness across all your code.

    Use code search, static analysis rules written for the pattern and the original finding's details to find other instances in every product and repository, not only the affected file, and fix or track each one.

  3. Remove the class at its source where you can.

    Change the shared cause rather than each instance: for example, replace dynamically generated database queries with parameterised queries (ISM-1276), switch to a library or framework default that blocks the weakness, or move a component to a memory-safe programming language (ISM-2041).

  4. Add a check that catches the class if it returns.

    Write a test or static analysis rule that fails on the unsafe pattern and run it in the build, so new code with the same weakness is caught before release (ISM-2032 requires automated testing to pass before software artefacts are built).

  5. Record why any part of the class remains.

    Where it cannot be removed everywhere, such as in third-party code you cannot change, report it to the maintainer, record the remaining instances, the reason and how each is mitigated, and recheck when an update arrives. Any exploitable instance stays an open vulnerability needing timely resolution (ISM-1754), such as replacing the component.

Keep it running

Review findings grouped by weakness type as they arrive: a type that keeps appearing points to a class fixed one instance at a time. Revisit when adopting a new language, framework or third-party component, which can bring back a class removed elsewhere.

Evidence and audit

  1. Check 1 of 4What an auditor asks for

    Ask for

    A sample of resolved vulnerability records from the issue tracker.

    Look at

    Whether each has a root cause analysis that explains why the flaw existed, not only what was changed.

    Good evidence

    Each sampled record names the weakness type and the underlying cause, such as an unsafe pattern or missing check, and says why reviews or tests missed it.

  2. Check 2 of 4What an auditor asks for

    Ask for

    A fresh code search or static analysis scan for the weakness types of sampled vulnerabilities, run across every repository.

    Look at

    Whether other instances of each class remain, and the recorded reason for any that do.

    Good evidence

    The scan finds no remaining instances, or each remaining one is in code the organisation cannot change and is recorded with its reason and mitigation, with any exploitable one still open as a vulnerability rather than closed because of its mitigation.

  3. Check 3 of 4What an auditor asks for

    Ask for

    A test commit in a test branch that reintroduces a remediated pattern.

    Look at

    Whether a test or static analysis rule fails the build.

    Good evidence

    The build fails on the reintroduced pattern for each sampled class that a test or rule can detect, and any class that no test or rule can detect is recorded with the reason.

  4. Check 4 of 4What an auditor asks for

    Ask for

    Findings since the earliest sampled remediation, grouped by weakness type.

    Look at

    Whether a class recorded as remediated has reappeared in code written after its remediation.

    Good evidence

    No class recorded as remediated has reappeared in code written after its remediation.

Mappings

Closest match in ISO/IEC 27001: A.8.8, Management of technical vulnerabilities, which this control partially meets.

ISO 27001

ISO/IEC 27001: 1 mapping

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