Skip to content
Technological controls
ISO 27001A.8.4

ISO 27001 Annex A 8.4 Access to source code

What it says

Read and write access to source code, development tools and software libraries shall be appropriately managed.

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

In plain English

Appropriately manage read and write access to source code, development tools and software libraries, with your organisation deciding what appropriate means from its risks.

Your organisation must appropriately manage read and write access to source code, development tools and software libraries. It decides what appropriately means, based on its risks and context. Read and write access can differ, for example wide read access with write access limited to code owners. All three items count:

  • Source code: program code and items kept with it, such as designs and specifications.
  • Development tools: compilers, build and integration tools, and test platforms.
  • Software libraries: reusable code components, written in-house or obtained from others.

Why it matters

Someone with write access can slip in unauthorised functionality or break a build, and someone with read access can copy valuable code or secrets left in the development environment. Managing both kinds of access reduces the chance of malicious or accidental changes and of leaks.

How to implement

  1. Hold source code centrally in a source code management system.

    Find repositories, scripts and shared-drive copies, and move them in. List your development tools and library sources alongside. If you write no software, check for scripts and configuration code. For outsourced work, Annex A 8.30 covers directing and reviewing the supplier's development.

  2. Set read and write access separately, by role.

    Read access can be wide where code is shared internally. Keep write access to designated owners and people whose role needs it, with no default write permission. Apply the same split to open-source and third-party code you hold. Base grants on your access rules (Annex A 5.15).

  3. Route code changes through your change process.

    Protect main branches so changes merge only after review and approval (Annex A 8.32 covers change management). Have developers work through tools that enforce permissions, with no direct access to the repository's server or storage. On a bought platform, use its organisation-level default permission and branch settings.

  4. Restrict who can read and change build tools and library stores.

    Limit who can edit build pipelines, integration tools and test platforms, who can read passwords and keys stored in pipelines, and who can publish to internal software libraries. Give build systems their own limited service accounts. Annex A 8.31 requires separated, secured development, test and production environments.

  5. Log access and changes, and review who holds access.

    Turn on the platform's audit log for reads, clones, pushes and permission changes, and export it to storage developers cannot edit, since a platform may keep these events for only days. Review access when someone changes role or leaves (Annex A 5.18).

Keep it running

Review access when people change role or leave, and when you add a repository, build tool or library source. Keep access and change logs where developers cannot edit them.

Evidence and audit

  1. Check 1 of 5What an auditor asks for

    Ask for

    A live permission export from the source code management system, compared with the current staff and contractor list.

    Look at

    Who holds read access and who holds write access, whether leavers remain, and whether any default setting gives everyone write access.

    Good evidence

    Read and write access each match a recorded role or need, nobody who has left remains, and no default setting grants write access to all.

  2. Check 2 of 5What an auditor asks for

    Ask for

    An attempted direct push to a protected branch, using a normal developer account.

    Look at

    Whether it is refused, and whether administrators can bypass the rule unrecorded.

    Good evidence

    The push is refused, changes reach the branch only through the approved route, and any administrator override is logged.

  3. Check 3 of 5What an auditor asks for

    Ask for

    The repositories and library sources your build tools actually pull from, compared with the managed list.

    Look at

    Any source outside the managed system, such as a personal account or shared drive.

    Good evidence

    Every source your builds use is on the managed list. Those the organisation controls have read and write access set, and outside sources are recorded as approved.

  4. Check 4 of 5What an auditor asks for

    Ask for

    Access settings for build tools and software library stores.

    Look at

    Who can read or edit build definitions and stored secrets, who can publish packages, and whether service accounts are limited.

    Good evidence

    Only people whose recorded role needs it, and service accounts limited to their job, can change build definitions or publish to libraries, and others have only the read access their role needs, or none.

  5. Check 5 of 5What an auditor asks for

    Ask for

    The source code audit log for a recent period, matched to change records.

    Look at

    Whether sampled changes and permission changes trace to an authorised person and an approved change.

    Good evidence

    Each sampled change traces to an authorised person and an approved change record, and developers cannot edit the log.

Mappings

Closest match in ASD Information Security Manual: ISM-1422, Prevent unauthorised access to software source, which this control covers in full and more.

ASD ISM

ASD Information Security Manual: 4 mappings

  • ISM-1746Restrict file system permission changesPartially overlaps

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

Get help with this control

ISO 27001 training

Mindset Cyber, a PECB Authorised Titanium Partner, sells official PECB ISO/IEC 27001 courses that map directly to the controls in this library.