AI Life-Cycle Security Gates (ISO/IEC 5338)
Seven security gates across the AI system life cycle — inception, data, build, verification and validation, deployment, operation and retirement — with concrete pass criteria, so go-live and change decisions rest on evidence rather than optimism.
Template & sample only — a structured starting point with sample content, not legal, audit, certification or investment advice.
Security and assurance gates for each stage of an AI system's life — from inception to retirement — following the life-cycle stages described in ISO/IEC 5338. Mark each gate criterion Met, Partially met, Not met or N/A with evidence. A material criterion that is Not met puts its gate on HOLD; the generated record shows the outcome for every gate and is the evidence trail for go-live and change decisions.
- Adversarial security testing covers direct and indirect prompt injection, jailbreaks, data extraction and evasion; findings are fixed or formally risk-accepted
Your context
Gate 1 — Inception & requirements
Before any data is collected or code written: is this the right problem for AI, and do we know what "safe" means for it?
Intended purpose, intended users, and explicitly out-of-scope uses are documented and approved by the accountable business owner5338 / 42001 A.6material
Regulatory risk class and internal risk tier are recorded, and an impact assessment is triggered where the tier requires itEU AI Act / 42005material
Security and privacy requirements include AI-specific threats: prompt injection, data poisoning, model extraction, evasion and sensitive-data disclosure27090
Success metrics and acceptance thresholds (accuracy, error rates by group, latency, cost) are agreed before build starts
An initial threat model covers data flows, model supply chain, integrations, tool permissions and the level of autonomy
Gate 2 — Data acquisition & preparation
The data decides the model. Prove you are allowed to use it, that it is fit for purpose and that nobody tampered with it.
Rights to use every dataset for this purpose are confirmed: licence terms, lawful basis for personal data, contractual permissions5259 / 8183material
Data quality criteria (completeness, accuracy, timeliness, representativeness) are defined and measured, and results recorded5259
Personal data is minimised or pseudonymised before use, and a DPIA is completed where requiredGDPR
Integrity controls protect training data: authenticated sources, hashes, access-controlled storage, and screening for poisoned or anomalous records27090material
Dataset versions and lineage (source → transformations → training set) are recorded so the training set can be reproduced8183
Gate 3 — Design & build
Architecture review confirms trust boundaries, least-privilege permissions for tools and agents, and that secrets and sensitive data are never placed in promptsmaterial
Third-party models, weights and libraries come from approved sources, are pinned, integrity-checked and scanned (including for unsafe serialisation formats)27090material
Training and build environments are segregated from production and hardened, with experiment tracking and access logs
Input and output guardrails are designed: content filtering, output encoding, schema validation for structured outputs, rate limits
Human oversight, override and escalation are designed in proportion to the impact of outputs42001 A.9
Gate 4 — Verification & validation
Evidence, against the thresholds set at Gate 1, that the system does what it should and resists what it should.
Performance meets the agreed thresholds on held-out data that represents production conditionsmaterial
Error rates are compared across relevant groups, and any disparity is explained, mitigated or accepted by the owner
Adversarial security testing covers direct and indirect prompt injection, jailbreaks, data extraction and evasion; findings are fixed or formally risk-accepted27090material
Robustness is tested against distribution shift, edge cases and malformed inputs, and failure behaviour is safe
V&V results are signed off by someone independent of the build team
Gate 5 — Deployment
Go-live is approved by the accountable owner, with residual risks and open findings explicitly accepted42001 A.6material
The deployed configuration matches what was validated: model version pinned, system prompts and guardrail settings under version control
A rollback plan and kill switch exist and have been exercised
Users and affected people are told they are interacting with AI, with instructions for use and limitations42001 A.8 / EU AI Act
Gate 6 — Operation & monitoring
Monitoring covers quality drift, abuse patterns, guardrail hits and cost anomalies, with thresholds, alerts and named respondersmaterial
Inputs, outputs and decisions are logged with retention that balances privacy and investigation needs
An AI incident playbook covers harmful outputs, data leakage, model compromise and notification duties, and has been exercisedmaterial
Changes — retraining, model upgrades, prompt edits — re-enter verification in proportion to their risk
Performance and impact are re-assessed on a fixed cadence and when the context of use changes42005
Gate 7 — Retirement
Decommissioning is planned: dependent systems and users notified, endpoints removed, credentials and API keys revoked
Model artefacts, training data, embeddings and logs are retained or securely deleted according to the retention schedule, with evidence8183material
The AI register is updated and lessons learned are recorded
Loading…
Sample report · illustrative data
Sample result: AI Life-Cycle Security Gate Record
Example record for an invented claims-triage assistant that is currently in verification and validation, with each gate criterion marked Met, Partially met, Not met or N/A.
Gate outcomes
| Gate | Outcome | Note |
|---|---|---|
| Gate 1: Inception & requirements | Conditional pass | Open criteria recorded with an owner |
| Gate 2: Data acquisition & preparation | Conditional pass | Data rights and integrity controls only partly evidenced |
| Gate 3: Design & build | Conditional pass | Supply-chain checks partly in place |
| Gate 4: Verification & validation | HOLD | Adversarial testing not yet done (a heavily weighted criterion) |
| Gates 5 to 7: Deployment, operation, retirement | Not assessed | Reached later in the life cycle |
Example criterion rows from the record
| Criterion | Status | Notes | Owner |
|---|---|---|---|
| Threat model covers data flows, model supply chain, tool permissions and autonomy | Partially met | Data flows done; tool permissions not modelled | Security architect |
| Performance meets agreed thresholds on held-out data | Met | Precision above the agreed threshold | ML lead |
| Adversarial testing covers prompt injection, jailbreaks and data extraction | Not met | Red-team exercise booked for next sprint | AppSec lead |
Progression
Do not move the system past a gate on HOLD. For a conditional pass, record each open criterion with an owner and date and confirm it at the next gate.
Made-up example data. Your own run uses your inputs. Downloads of the full report need Pro.
TL;DRWhat this template gives you
4 points
- ISO/IEC 5338 describes the processes of an AI system's life cycle, building on established software life-cycle processes and adding AI-specific ones such as data handling and continuous validation.
- This template turns those stages into seven gates with 32 concrete criteria — prompt-injection testing, data rights, model supply chain, rollback, monitoring and safe retirement among them.
- A material criterion marked Not met puts its gate on HOLD; otherwise the gate passes or passes with conditions.
- The generated record is the evidence trail a reviewer or auditor asks for when a system went live.
Frequently asked questions
What is ISO/IEC 5338?
It is the international standard for AI system life cycle processes. It adapts the familiar system and software life-cycle process model to AI, adding processes for things that are different about AI systems — acquiring and preparing data, building and evaluating models, and continuously validating a system whose behaviour can drift after deployment.
Do I have to use all seven gates?
Use the gates that match how you work, but do not skip the data and verification gates — most AI incidents trace back to data that should not have been used or attacks that were never tested. For a bought-in system, the data and build gates become questions to the supplier.
How does this relate to ISO/IEC 42001?
An AI management system expects responsible design, verification, deployment and monitoring of AI systems. Gate records like these are a practical way to show those activities happen for each system. The template is a starting point, not evidence of conformity on its own.
Is this a finished document I can rely on?
No. Every tool in this suite is a template with sample content. It gives you a structured, editable starting point and generates a document from your own answers, but it is not legal, audit, certification, investment or professional advice. Review and adapt the output, and have it checked by the appropriate specialist before you rely on it.
Who can use it?
The page and sample are public. Customising the template is Pro; a free account gets 3 runs in total, shared across every Pro tool, and the generated document is free to view on the page. Download is Pro: downloading or copying the document (Word, PDF, Markdown, CSV) is never part of the free runs. Pro is $5/month or $40/year. Your work is saved in your own browser.
More security tools
The tools people use most on PlayCISO.
Catch injected instructions hiding in content your AI agent should only read.
Score your readiness against the first international standard for AI security threats.
Critical CVEs across 21 major vendors, month by month — and what the 2026 surge means.
Build an ordered ruleset, replay labelled packets and catch shadowed and any-to-any rules.
Self-assess all six Functions, from Govern to Recover, and see your weakest one.
Search 172 threat actors across Microsoft, CrowdStrike, Mandiant and community names.