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.28ISO 27001:2022 Annex ANew in 2022

Secure coding

ISO/IEC 27002:2022 attributes

Control type
Preventive
Security properties
Confidentiality · Integrity · Availability
Cybersecurity concept
Protect
Operational capability
System and network security · Application security
Security domain
Protection

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

Plain-language summary

New in 2022: applying secure coding practices to any code your organisation writes — validating input, handling secrets and errors safely, reviewing code and using vetted libraries — so software does not ship with common, preventable vulnerabilities.

What the clause is really asking

Most exploited application flaws are old and well understood: injection, broken access checks, hard-coded passwords, unvalidated input, outdated libraries. This control, new in 2022, asks you to set secure coding principles and apply them before, during and after coding: planning (an agreed standard, approved tools and libraries, trained developers), writing (input validation, parameterised queries, least privilege, safe error handling, no secrets in code), review and testing (peer review, static analysis, dependency checks) and maintenance (updating libraries, fixing reported flaws). Like 8.25, it is commonly excluded by organisations that write no code, with a justification in the Statement of Applicability. Before excluding it, look for scripts, macros, low-code formulas that touch databases, and customisations of your website or ERP — a PowerShell script holding a domain admin password in plain text is a secure-coding failure. The common misunderstanding is that a modern framework or platform makes code secure on its own. The OWASP Top 10 and OWASP's Application Security Verification Standard are the usual reference points.

What auditors look for

Auditors check the Statement of Applicability and, if 8.28 is excluded, test the justification as for 8.25 by asking about scripts, macros and customisations. Where it applies, they ask for the secure coding standard and evidence that developers know it. They pick a recent change and look at the review record, static analysis or dependency scan results, and how findings were handled. They may search a repository or script folder for hard-coded credentials. They ask how third-party libraries are chosen and kept current. The hard question: when a critical vulnerability is announced in a library you use, how do you find every place it is used?

Typical evidence

Secure coding standard or adopted external guide; developer and script-author training records; code review records; static analysis and dependency scanning results with remediation; inventory of third-party libraries and components per application; secrets management approach and secret-scan results; Statement of Applicability justification where excluded; records of fixes for reported vulnerabilities.

How to comply — recommendations

If you write code, adopt an existing standard rather than writing your own — the OWASP Top 10 plus the first level of the Application Security Verification Standard cover most needs — and add a page of house rules: no secrets in code or scripts (use a vault or managed identity), parameterised queries, input validation, least privilege for service accounts. Require a second-person review before production. Switch on the static analysis, secret scanning and dependency alerts your code platform offers. Keep a library list per application. Train developers and script authors annually. If you write no code, record the justification and recheck it at management review.

Common nonconformities

No secure coding standard; hard-coded passwords or API keys in scripts and repositories; no code review before production; vulnerable or unsupported third-party libraries in use; static analysis tools available but unused or findings ignored; script authors never trained; exclusion from the SoA contradicted by in-house code; no record of libraries used.

Related clauses

ISO/IEC 27002:2022 8.28 (guidance); ISO 27001 6.1.3 d) (Statement of Applicability); Annex A 5.17 (authentication information), 8.4 (access to source code), 8.8 (technical vulnerabilities), 8.25 (secure development life cycle), 8.29 (security testing), 8.31; NIST CSF 2.0 PR.PS (platform security); OWASP Top 10 and ASVS.

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.