--- name: security-iso-27001 description: > Use when asked about ISO 27001 or ISO/IEC 27001:2022, an information security management system (ISMS), Annex A controls, a Statement of Applicability, ISO 27002, certification or audit readiness, or how a codebase and its practices map to the standard. Explains the standard's structure (clauses 4 to 10, the 93 Annex A controls, the ISO 27000 family) and runs an evidence-based gap check of a repository against it. Do not use for a vulnerability scan of code (security-code-review), CI scanning setup (security-ci-scanning), legal advice, or declaring an organisation compliant or certified. --- # Security ISO 27001 Stance: ISO 27001 is a management system standard, not a code checklist. A repository can show evidence for some controls and say nothing about others, so this skill maps what it can see, names what it cannot, and never says "compliant" or "certified". Only an accredited third-party auditor can certify. ## Hard rules - Never state that an organisation or repository is compliant with, or certified to, ISO 27001. Mechanism: report which controls have visible evidence, which have none and which are outside what a repository can show. Reason: certification comes from an accredited certification body's audit, and a false claim can mislead customers and regulators. - Never quote or invent clause text, control wording or control numbers beyond what [standard-overview.md](references/standard-overview.md) and [controls-by-principle.md](references/controls-by-principle.md) hold, plus the clause references in [isms-implementation.md](references/isms-implementation.md) and [audit-evidence-by-control.md](references/audit-evidence-by-control.md). Mechanism: the standard is a paid document that is not in this repository; point the user to the official ISO/IEC 27001:2022 and ISO/IEC 27002:2022 for exact wording. Reason: a plausible but wrong control number or requirement in an audit file does real harm. - Do not treat the Annex A controls as all mandatory. Mechanism: the Statement of Applicability lists which controls apply and which are excluded, each with a justification, and the organisation decides. Reason: marking every control as a gap, or excluding one without a reason, both misrepresent the standard. - Treat the books behind this skill as dated secondary sources, not the standard. Mechanism: say which book a point comes from (see the source line in each reference), that the principle grouping is one author's and not ISO's, that the implementation notes are mainly UK-oriented, and that edition and amendment status should be checked against ISO. Reason: standards are revised and a secondary source can lag. - Never auto-apply a policy, document or code change that this skill proposes. Mechanism: present it and stop. Reason: the user approves every change. - Report severity and confidence separately, as in [security-code-review](../security-code-review/SKILL.md). Mechanism: a gap on a high-impact control seen with weak evidence and a gap seen with strong evidence need different handling. - Treat the user's description of their own system as the working fact. Mechanism: check the real files or output first and report facts only. If the evidence differs, say so once, neutrally, with the file and line, and carry on with the user's description. This covers facts about their system, not safety, consent or security rules. - Act only on what the user asked. Before answering or changing anything, open the relevant files and check what is already done; report only what you checked, never guess, and do not redo finished work. Reason: guesses and repeated work waste the user's credit. ## Agent dispatch Before handling a request, follow the agent selection in [security-specialist](../security-specialist/SKILL.md), including when this skill is invoked directly. Give the selected agent this skill's instructions. If no agent is available, continue yourself. ## Gate | Situation | Action | |---|---| | The user asks what ISO 27001, Annex A, the Statement of Applicability or ISO 27002 is | Explain from [standard-overview.md](references/standard-overview.md); no repository scan needed | | The user asks how their repository or practices line up with the standard | Run the gap check in the Steps, using [gap-check-template.md](references/gap-check-template.md) | | The user asks how to set up an ISMS, write a policy, scope it, assess risk or draft a Statement of Applicability | Explain from [isms-implementation.md](references/isms-implementation.md); do not draft final documents without the user's decisions | | The user asks if they are compliant, certified or ready to pass an audit | Say that only an accredited auditor can decide; offer the gap check as preparation | | The request is to find vulnerabilities in code | [security-code-review](../security-code-review/SKILL.md) | | The request is to set up scanning in CI | [security-ci-scanning](../security-ci-scanning/SKILL.md) | | The request is about privacy law or a privacy management system | Explain the link to ISO 27701 from the overview, and hand legal wording to a legal specialist (the book covers EU, China and US law, not New Zealand) | | The request is about AI governance | Explain the link to ISO 42001 from the overview; do not assess AI management in depth | Reason: the standard governs an organisation's management of information security, so only some of it can be judged from a repository. ## Steps 1. **Scope.** Ask what the ISMS or the review covers: the whole organisation, one product or one repository. Without a scope no control can be judged. 2. **Orient.** Explain the structure briefly using [standard-overview.md](references/standard-overview.md): clauses 4 to 10 are the requirements, Annex A holds the controls, and ISO 27002 explains how to implement them. 3. **Find evidence.** For a gap check, open the repository and look for what each control area would leave behind, using the repository evidence table in [controls-by-principle.md](references/controls-by-principle.md) and the per-control audit questions in [audit-evidence-by-control.md](references/audit-evidence-by-control.md): policies and security docs, access and authentication code, secrets handling, logging, backup and recovery config, CI checks, dependency management and incident notes. For AI or IoT code, also use that file's AI and IoT points. Record file and line for every item. 4. **Map.** Place each piece of evidence against the four Annex A groups (organisational, people, physical, technological) using the template. Mark each area as evidence seen, partial, none seen, or not visible from a repository. 5. **Draft the Statement of Applicability inputs.** For each control area, suggest "applies" or "may not apply" with a reason, and mark the suggestion as the organisation's decision to make. 6. **Report** in the format in [gap-check-template.md](references/gap-check-template.md): what was reviewed, what was not, each gap with severity and confidence, and the questions only the organisation can answer. State: "This is a readiness aid, not an audit. Nothing has been changed yet." ## References - [standard-overview.md](references/standard-overview.md): the standard's structure, Annex A groups, the ISO 27000 family, the three approaches, certification, and links to ISO 27701 and ISO 42001, with the source and its limits. - [controls-by-principle.md](references/controls-by-principle.md): the book's eight-principle grouping of the controls it names, what a repository can show per control, AI and IoT points, and how ISO relates to the law. - [isms-implementation.md](references/isms-implementation.md): the order of work, leadership evidence, documentation, policy, scope, risk assessment and Statement of Applicability, from the IT Governance book. - [audit-evidence-by-control.md](references/audit-evidence-by-control.md): for each Annex A control, what an auditor looks for and what evidence to ask for, from the ISO 27001 Controls guide. Use it to choose what to look for in a repository and what questions to put to the organisation. - [gap-check-template.md](references/gap-check-template.md): the evidence table, rating scale and report layout for a repository gap check. ## Next - Find the vulnerabilities behind a gap: [security-code-review](../security-code-review/SKILL.md) - Keep the evidence fresh in CI: [security-ci-scanning](../security-ci-scanning/SKILL.md) - Back to [security-specialist](../security-specialist/SKILL.md)