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.
Free. Save your status, tasks and notes.
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
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.
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).
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.
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.
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
- 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.
- 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.
- 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.
- 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.
- 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 Information Security Manual: 4 mappings
This control is broader than ISM-1422.
ISM-1422 mandates preventing unauthorised access to the software source to protect its integrity and confidentiality. ISO/IEC 27001:2022 Annex A 8.4 requires appropriate management of read and write access to source code and related tools. While both focus on source code access, Annex A 8.4 explicitly covers read/write management.
This control partially overlaps ISM-0441.
ISM-0441 requires that when personnel are granted temporary system access, technical controls restrict them to only the data needed to perform their duties. Annex A 8.4 focuses on appropriately managing read/write access to source code, development tools and libraries, which is a specific asset class where least-privilege (including time-bounded access) may be applied. Annex A 8.4 is scoped to development artefacts, while ISM-0441 is broader and explicitly concerned with temporary access across systems and resources.
This control partially overlaps ISM-1746.
Annex A 8.4 requires organisations to appropriately manage read and write access to source code, development tools and software libraries. ISM-1746 relates by restricting who can change file system permissions for approved files and folders, which is a concrete mechanism that can protect code and tool locations from unauthorised modification. However, ISM-1746 is specific to application control path-rule implementations and permission changes, while Annex A 8.4 is broader across repositories, toolchains and library access governance (not just filesystem ACL changes).
This control supports ISM-2024.
Annex A 8.4 requires organisations to manage access to source code, development tools and software libraries, including controlling where and how these assets are obtained and used. ISM-2024 supports this by requiring use of an authoritative source for software development activities, which complements access management by limiting who can introduce or consume code and libraries from untrusted locations. ISM-2024 is focused on supply/source integrity rather than permissioning, so it is complementary rather than overlapping in scope.
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.




