PublishedISO 9001:2026 published 16 Sept 2026 · 2015 certificates must transition by 30 Sept 2029What changed →
Internal Auditor course (ISO 19011:2026):free until 31 Oct · then $59 for three monthsStart free now →
← Back to Clause Explorer
A.8.4ISO 27001:2022 Annex A

Access to source code

ISO/IEC 27002:2022 attributes

Control type
Preventive
Security properties
Confidentiality · Integrity · Availability
Cybersecurity concept
Protect
Operational capability
Application security · Secure configuration · Identity and access management
Security domain
Protection

Attribute tags as published in ISO/IEC 27002:2022, compiled from public listings — confirm against your licensed copy.

Plain-language summary

Controlling who can read and change source code, development tools and software libraries, so that code cannot be altered without authority, intellectual property does not walk out of the door, and secrets embedded in code are not exposed.

What the clause is really asking

Source code is both valuable intellectual property and a blueprint of how your systems could be attacked or changed, so access to it has to be managed. The control asks you to manage who can read and change code, development tools and libraries; in practice that means holding code in a central, controlled repository; granting read and write access according to role and need, with write access restricted more tightly; routing changes through approved, reviewed paths rather than direct edits; logging access and changes; and protecting development tools and libraries from tampering. Branch protection and pull-request review are the everyday mechanisms. The common misunderstanding is 'we do not develop software, so this is not applicable'. Most organisations have code somewhere: the website, integration scripts, automation flows, infrastructure templates, report queries, or the bespoke application a contractor built and still hosts. If a supplier writes your code, ask who owns the repository, who has access, and whether you could get the code back if the relationship ended. Passwords and API keys left in code are a practical part of the scope.

What auditors look for

Auditors ask where the code lives and who can reach it, then pull the repository's member list and compare it with the development team and any contractors. They check whether the main branch is protected, whether changes need a reviewed pull request, and whether anyone can push straight to production. They look for leavers and former contractors still holding access. They ask how build tools and third-party libraries are controlled. Where development is outsourced they ask for the contract clause on code ownership and access. The hard question: show me a change running in production and trace it back to who wrote it and who approved it.

Typical evidence

Source code access procedure; repository inventory with owners; repository member and permission lists; branch protection and review settings; access and change logs; records of access reviews and removals; secret-scanning configuration and results; contracts covering code ownership, access and escrow for outsourced development; controls over build tools and third-party libraries.

How to comply — recommendations

Inventory every repository you own or rely on, including the website, scripts and supplier-held code, and name an owner for each. Move code into a managed platform such as GitHub, GitLab or Azure DevOps under an organisation account you control, not a developer's personal account. Grant access through teams, give write access only to those who need it, and protect the main branch so every change needs a reviewed pull request. Enforce MFA on the platform. Switch on secret scanning and rotate any credential it finds. Review repository membership quarterly and remove leavers on the day they go. For outsourced work, put code ownership and your right of access in the contract.

Common nonconformities

Code held in developers' personal accounts or on laptops; former staff or contractors still with repository access; write access to the main branch for everyone; production changes with no review or approval trail; passwords and API keys committed to code; no agreement on ownership of, or access to, supplier-developed code; repository access never reviewed.

Related clauses

ISO/IEC 27002:2022 8.4 (guidance); ISO 27001 6.1.3; Annex A 5.18 (access rights), 5.32 (intellectual property rights), 8.2 (privileged access), 8.25 (secure development life cycle), 8.28 (secure coding), 8.30 (outsourced development), 8.32 (change management); NIST CSF 2.0 PR.AA (access control), PR.PS (platform security).

Resources for this clause

Get the free ISO 27001 Annex A — 93 Controls Quick Reference (A3 PDF)

Free, instant download. We'll only email you the occasional practical quality update — no spam, unsubscribe anytime.

Qlause provides interpretive guidance only and is not a substitute for the standard. Refer to your licensed copy of the relevant standard for the authoritative text.

Certification & implementation

Working on a certification or system implementation project?

Implementing ISO 9001, moving to the 2026 edition, getting ready for a certification audit, or stuck on a clause that doesn't seem to fit your operation? Tell us where you are and where you're stuck. We'll look at it and suggest a practical next step, or connect you with people we trust who can help.

Email hello@qlause.app

No sales pitch, no obligation — we read every message.