ISO 27001 secure development for a small team: coding rules, review, test data and environments
A small software team usually already does much of what ISO 27001 asks of developers. Code goes through pull requests, tests run on each push, and nobody edits the live database by hand on a normal day. What is often missing is the written part: a rule that says how you work, a reason for each control in your Statement of Applicability, and records that show the rule is followed.
This guide covers how the standard is usually read, a secure coding rule that fits on one page, review and testing, test data, separate environments, work done by outside developers, and the records an auditor is likely to ask for.
How the standard is usually read
Most of the development controls are in the technical part of Annex A in ISO/IEC 27001:2022. In plain terms, the standard is read to cover these topics:
- Access to source code: decide who can read and change the code, and manage that access.
- Secure development life cycle: have rules for building software and systems securely.
- Application security requirements: decide the security needs of a feature before you build it, not after.
- Secure design principles: agree a few design principles and use them.
- Secure coding: follow secure coding practice.
- Security testing: test for security, not only for function, during development and before acceptance.
- Outsourced development: direct and check work that someone else builds for you.
- Separate environments: keep development, test and production apart.
- Change management: send changes through an agreed path.
- Test data: choose and protect the data you test with.
- Testing on live systems during an audit: plan it so it does not disrupt them.
ISO/IEC 27002:2022 gives guidance on each one. If you do not develop software at all, most of these may not apply. A practical approach is to say so in your Statement of Applicability, with the reason, and to keep the outsourced development control in view if anyone builds or configures something for you.
A secure coding rule that fits on one page
Most teams do not need a long secure development policy. They need one page that says how work moves from idea to production. For example:
- Before building: any feature that touches personal data, payments, logins or permissions gets a short note of its security needs (who can see what, what is logged, what happens on failure).
- While building: follow a known reference such as the OWASP Top 10 and the NCSC developer guidance. Keep secrets out of the code and out of the repository. Keep dependencies up to date.
- Review: every change to the main branch goes through a pull request reviewed by someone other than the author. If you are a team of one, write down what you do instead, such as a checklist and automated checks before merge.
- Test: automated tests run on every pull request, including dependency and secret scanning where your tools offer it.
- Release: the main branch is protected, deploys come from the pipeline, and a change can be rolled back.
Each line is something an auditor can test against your repository settings and pull request history. That is the point: a rule you can show working.
Review and security testing
Code review is the control most small teams can show best, because the platform records it. Turn on branch protection so a merge needs an approval and passing checks. Then the record of who reviewed what builds itself.
Security testing does not have to mean a paid test of every release. Proportionate steps for a small team:
- Dependency scanning and secret scanning on each pull request.
- A static analysis tool, if your language has a sensible one.
- A short security check in the acceptance step for features that touch logins, permissions or personal data.
- An external test when the risk or a customer contract calls for one, with the findings tracked to a fix.
Findings from any of these are vulnerabilities. Record them, give each an owner and a target date, and close them, as you would a finding from a scanner on your servers.
Test data and separate environments
Test data. Copying the live database into a test system is the most common problem here. Use made-up or masked data for development and testing. If you ever must use real data, record who agreed it, why, how it is protected, and when it was deleted.
Separate environments. Keep development, test and production apart. In practice that means different accounts or projects, different credentials, and no developer credentials that can write to production by default. If one person can deploy, that is fine for a small team, as long as the deploy goes through the pipeline and leaves a record.
Access to source code. Give repository access to named people, use the platform's roles, require multi-factor sign-in, and remove access in your leavers checklist. Review the list on a regular schedule.
Work by outside developers
The outsourced development control is usually read to apply when a contractor or agency builds or changes something for you, even a small integration. Put your security needs in the contract or statement of work: your coding rule, who owns the code, where it is stored, how secrets are handled, and how you accept the work. Then check the work before it goes live, and record that check. Treat the developer as a supplier in your supplier records.
What an auditor is likely to look at
Expect an auditor to pick a recent change and follow it from ticket to production. It helps to keep:
- The secure development rule, approved and dated.
- Your Statement of Applicability, with a reason for each development control you include or exclude.
- Repository settings that show branch protection and required reviews.
- A sample of merged pull requests with reviewers and test results.
- Records of security testing and the vulnerabilities found, with owners and dates.
- How test data is produced, and any agreed use of real data.
- The list of people with access to the code, with a review date.
- For outsourced work, the agreed requirements and the acceptance check.
Common reasons this goes badly: a written rule that says "all changes are reviewed" while the main branch accepts direct pushes; a test system that holds a copy of live customer data from last year; or a former contractor who still has write access to the repository.
Example: Larkspur Veterinary Group (fictional)
Larkspur is a fictional group of six vet practices. It does not have developers, but an outside agency built a small integration between its booking site and its practice management system.
The practice manager kept the outsourced development control in the Statement of Applicability and excluded most of the other development controls, with the reason that Larkspur builds no software itself. The agency's statement of work gained a short security section: no real client data in testing, code stored in a repository Larkspur owns, and secrets kept in the hosting platform, not in the code. Before the integration went live, the IT provider checked it against that section and the practice manager recorded the result. The agency was added to the supplier records with a yearly review.
Questions people ask
We are a team of two developers. Do we need a separate reviewer for every change? Review by the other developer is the simplest way to show that secure coding and change management work in practice. If one person is often away, write down what happens then, such as automated checks plus a review after the fact.
Do we need a penetration test for the security testing control? Not in every case. The control is usually read to ask for security testing that fits your risks. Many small teams use automated scanning on each change and an external test when a customer or a major change calls for one.
Can we use production data to reproduce a bug? Avoid it where you can. If you must, agree it first, limit who sees it, and delete it when the fix is done. Record each step.
Does using a low-code platform count as development? Often, yes, if you build workflows or apps that handle your information. Apply the same review, testing and environment rules in a size that fits.
How ClearIMS helps
ClearIMS keeps change records for your software and your ISMS in one place. If you build software, you can connect a GitHub or Forgejo repository with a read-only token. Each merged pull request becomes a draft change record with the reviewers and CI result filled in, and a person completes the risk assessment, rollback plan and post-implementation review and signs it off. The import never approves anything, and only pull request details are read, never code, diffs or descriptions. Vulnerabilities are recorded with their follow-up, and change records and vulnerabilities appear in the auditor pack. Access reviews and other checks come round as recurring tasks with owners. People still approve; the AI never approves anything. We make the software. Your certification is yours, awarded by your certification body.
The price is £300 a month, monthly with 30 days' notice, unlimited users and no VAT charged. Related reading: change management for a small team, vulnerability and patch management for a small team and ISO 27001 for software development companies.
Book a 20-minute call or try the demo company to see it working first.