Skip to content
Software development
ASD ISMISM-1816

ASD ISM 1816 Prevent unauthorised changes to software sources

What it says

Unauthorised modification of the authoritative source for software is prevented.

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

In plain English

Block every change to the authoritative source for software that has not been authorised, including new code, rewritten history and replaced components, whoever makes it.

Unauthorised modification of the authoritative source for software must be prevented. That source is the designated, trusted repository for the organisation's code and imported components (ISM-2023). Modification means any change to what it holds: new commits (saved code changes), merges, deleted or rewritten history, moved release tags and replaced components. Prevented means the platform blocks a change that has not been authorised, whoever or whatever makes it, rather than detecting it afterwards. ISM-1422 covers who may view or copy it.

Why it matters

Someone who can change the authoritative source without authorisation can plant malicious code or a tampered component that every later build includes and users trust as genuine. Blocking unauthorised changes protects the integrity of what is built and released.

How to implement

  1. Decide who may change each repository, and by what route.

    Grant write access only to those who need it, and keep administrator rights to a few named people (ISM-1508 limits privileged access to what duties require). Agree the route a change must take, such as a pull or merge request approved by a second person.

  2. Protect the branches and tags releases are built from.

    Block direct pushes, force pushes and deletion, require an approved pull or merge request before merging (ISM-2060 requires code reviews), and stop release tags being moved. Apply the rules to administrators too, and on a hosted platform set them at organisation level so repository owners cannot turn them off.

  3. Stop published components being replaced.

    In the artefact repository, make each published version immutable so it cannot be overwritten, limit deletion to accounts authorised to remove components, and limit import rights to the accounts that run the checks ISM-2026 to ISM-2028 require.

  4. Limit what pipelines and AI tools can change.

    Give each its own token scoped to the repositories and actions it needs, let AI coding agents propose changes through pull or merge requests rather than merge them, and keep pipeline definitions under the same branch protection.

Keep it running

Recheck protection settings when a repository, branch or release process is added, and alert on any change to protection rules or administrator rights. An unexplained commit, a force push or a replaced component version should trigger an investigation.

Evidence and audit

  1. Check 1 of 4What an auditor asks for

    Ask for

    A test of a direct push, a force push and a merge without approval to a protected branch, by a developer account and an administrator account, in a test repository with the same settings or in production under change control.

    Look at

    Whether each attempt is blocked.

    Good evidence

    Every unapproved change is refused for both accounts, so even an administrator would first have to change the protection rules.

  2. Check 2 of 4What an auditor asks for

    Ask for

    The protection settings for every repository in the authoritative source and for the artefact repository, with the accounts allowed to delete component versions, exported from the platform.

    Look at

    Whether each repository that releases are built from protects its main and release branches and tags, whether published component versions can be overwritten, and who can delete them.

    Good evidence

    Every repository that releases are built from refuses force pushes and deletion on its main and release branches and tags and accepts changes there only through the agreed approval route, no published component version can be overwritten, and only accounts authorised to remove components can delete one.

  3. Check 3 of 4What an auditor asks for

    Ask for

    A sample of commits on release branches, chosen from the repository history rather than from change records, with the platform's audit log of permission and protection setting changes.

    Look at

    Whether each commit came through the agreed route from an account authorised to change that repository, and who changed protection settings or rights.

    Good evidence

    Every sampled commit reached the branch through an approved pull or merge request from an account authorised to change that repository, and every change to protection settings or rights was made by a named administrator and matches an approved change.

  4. Check 4 of 4What an auditor asks for

    Ask for

    The accounts with write or administrator rights on a sample of repositories and on the artefact repository, exported from the platform, with the current staff and contractor directory and the approved pipelines and AI tools.

    Look at

    Whether every account that can change each repository is current and authorised to change it.

    Good evidence

    Every account with write or administrator rights is authorised to change that repository and used only by current people, pipelines or AI tools, and no leaver or unexplained account holds them.

Mappings

Closest match in ISO/IEC 27001: A.5.15, Access control, which this control partially meets.

ISO 27001

ISO/IEC 27001: 3 mappings

  • A.5.15Access controlPartially meets
  • A.8.3Information access restrictionPartially meets
  • A.8.32Change managementPartially meets

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