Control 8.28 asks you to write code securely, check that you did, and expect the same from anyone who codes for you. Scripts and automations that run in production count too.
ISO 27001 Annex A 8.28 requires secure coding principles to be applied to software development, in-house or outsourced. In practice: a written secure coding standard (often based on OWASP), developers trained on it, pull request reviews that check security, and dependency and secret scanning. If nobody writes code that runs in production, you may exclude it with a justification.
Brian Colborne, a deployment engineer with 25 years of testing whether systems work the way their documentation says they do. He runs independent pre-audit diagnostics on ISO 27001 management systems. About PassISOaudit
Control 8.28 covers the whole development life: before, during and after coding.
An auditor testing 8.28 picks a recent merged change and asks to see the review, who approved it, which checks ran, and what happened to any security alert they raised.
A small software company meets 8.28 with OWASP guidance as its standard, the dependency and secret scanning its code platform offers, and a security line on the review checklist. If you only write scripts or low-code automations, apply a light version. If you write no code at all, record a justified exclusion in your Statement of Applicability.
| Record | How often | Where it comes from |
|---|---|---|
| Secure coding standard (2 to 4 pages, OWASP-based, your languages) | Reviewed yearly | Secure development policy |
| Developer training record | On joining, then yearly | Training log |
| Pull requests with an approving review before merge | Every change | Branch protection or ruleset on the main branch |
| Dependency alerts and how they were closed | Continuous; triaged weekly | Dependabot or equivalent |
| Secret scanning alerts | Continuous | Code platform or a pre-commit hook |
| Supplier secure coding clause | At contract and renewal | Development contracts (see 8.30) |
A practical rule of thumb (our advice, not a requirement of the standard): if code that you or a supplier wrote runs in production and touches your data or your clients' data, 8.28 applies, whatever language or platform it is in.
The exclusion is where we see 8.28 go wrong in pre-audit diagnostics: the Statement of Applicability still says "not applicable, no software development" while the company now builds its own tools, scripts or integrations. A justification written at certification goes stale quietly. Check it against what your team actually runs before each audit. The frequencies in the evidence list above are sensible defaults, not rules of the standard.
Related controls: 8.9 Configuration management · 8.11 Data masking · 8.12 Data leakage prevention.
If you do no development, in-house or outsourced, you can usually exclude 8.28 with a justification in the Statement of Applicability. Scripts, macros, low-code automations and serverless functions that run in production count as development, so check before excluding, and recheck the exclusion each year.
No. ISO 27001 does not name OWASP. OWASP guidance, such as the OWASP Top 10 and the secure coding practices checklist, is a widely used and credible basis for a secure coding standard.
Three GitHub settings do most of the work: a branch protection rule or ruleset requiring an approving review before merge, Dependabot alerts (available on all plans), and secret scanning with push protection. Secret scanning is on by default for public repositories; on private repositories it needs GitHub Secret Protection, which Team plans can buy (GitHub Docs). GitHub records the alerts; you record what you decided.
Yes, if the review is required and covers security. Require at least one approval on the main branch, and add a short security checklist (input validation, authentication, secrets, dependencies) to the pull request template. Branch protection on private repositories needs a paid GitHub plan.
No. Control 8.25 sets the rules for the whole development life cycle; control 8.28 covers the coding itself. A small company can cover both, with 8.29 testing and 8.30 outsourced development, in one secure development policy.
A two-developer startup can meet 8.28 with a short coding standard, one recorded training session a year, required pull request reviews (each developer reviews the other), and dependency and secret scanning switched on. The records matter more than the size of the standard.
No. ISO 27001 does not require developer certification. It requires developers to be competent in secure coding, which a dated training record shows, such as an internal OWASP Top 10 session or an online course; repeating it yearly is a sensible default.
Yes. Code written with AI assistants is still your code under 8.28. It goes through the same review, scanning and testing, and your standard should say which AI tools developers may use and that client data is not pasted into them.
Control 8.28 applies to outsourced code too. Put secure coding requirements in the contract, ask for evidence such as scan results or review records, and test what they deliver before it goes live (see 8.30).
