
Your developers ship more AI-written code every day, and the flaws in it are harder to spot. Your auditors, customers, and insurers still ask the same question: Who checked this code, against which requirement, and where is the proof? PCI DSS, ISO 27001, SOC 2, and NIST SSDF apply to AI-generated code the same way they do to code a person typed.
This page maps those requirements to each phase of an AI-assisted software development lifecycle and shows what evidence holds up in an audit or a security questionnaire.






Engineering teams using AI coding assistants train with SecureFlag
0 exemptions
No major framework exempts AI-generated code. Code is code, whoever wrote it.
12 months
PCI DSS 6.2.2: software development personnel trained on secure coding at least once every 12 months.
Feb 2, 2025
EU AI Act AI-literacy duty (Article 4) applies to organizations that deploy AI systems, coding assistants included.
Dec 11, 2027
EU Cyber Resilience Act applies in full. Vulnerability reporting duties already apply since September 2026.
44%
Share of coding tasks in which AI-generated code introduced a security flaw, across 11 models (Veracode, 2026).
An AI SDLC is a software development lifecycle in which AI assistants and coding agents take part in design, coding, review, and testing. A secure AI SDLC is the same lifecycle with three additions: security requirements set before AI writes code, a review step that treats AI output as untrusted input, and a record that shows both happened.
The first two are engineering practice. The third is what compliance asks for. Most teams adopting AI assistants have some of the first two and very little of the third.
Require
Security requirements attached to the story before code is generated.
Review
A developer trained to spot what AI gets wrong checks the output.
Record
Evidence per requirement, per developer, ready for an auditor.
For the engineering side of this, see how to build security into AI-assisted software development. This page covers the compliance side: which requirements apply and what proves you met them.
All of the ones that applied before. Frameworks regulate the software and the process that produced it, not the tool that typed it. What changes is how hard it is to show the process worked when much of the code was suggested by a model.
PCI DSS v4.0.1 (Req. 6.2)
ISO/IEC 27001:2022 (Annex A 6.3, 8.25, 8.26, 8.28)
SOC 2 (Trust Services Criteria CC8.1, CC1.4)
EU AI Act (Article 4)
Most teams move security into sprint planning after an incident. The table above makes that move before one.
46.3%
of intermediate-level practitioners solved the prompt injection lab, even with hints available. A developer who cannot fix a flaw cannot reliably review an AI-generated fix for it.
Methodology: 420,383 hands-on lab attempts on the OWASP Top 10 for LLM Applications, intermediate-level practitioners with prior security training. Source: 2026 developer competency in securing LLM applications.
Most compliance guides recite the control text. This table maps the requirements that apply to AI-assisted development to what they mean in practice and to the record that answers the assessor.
Security requirements defined before build
Secure coding principles applied
Developers trained at least every 12 months
Code reviewed before release
AI literacy for staff using AI tools
Vulnerabilities fixed and root causes addressed
Your assessor decides what counts as sufficient.
These records give them the evidence to decide.
A SOC 2 report does not end the questions. Customers and insurers still send security questionnaires, and more of them ask how you govern AI-generated code. The fastest answer is a summary that maps each requirement to a record, without walking anyone through your architecture.
SecureFlag's reporting gives you that record:

Eight questions. Two minutes. A view of where your AI SDLC would hold up in an audit and where it would not.
Do your teams have a written policy on which AI coding assistants are approved, and for what?
Are security requirements attached to stories before AI generates code?
Are AI-generated changes reviewed by someone trained to find security flaws in them?
Can you show, per developer, secure coding training in the last 12 months?
Does that training cover reviewing AI output, not only writing code?
Do you threat model features before they are built?
Can you answer a customer questionnaire on AI-generated code with records rather than a statement?
Do recurring vulnerability types trigger targeted retraining?
Scanners find known patterns, and adding AI reviewers on top of AI-written code does not close the gap. AI-generated flaws are often logic errors and unsafe defaults that look like working code. In Veracode’s 2026 report, roughly 44% of AI code-generation tasks introduced a security vulnerability, a rate the report describes as virtually unchanged since its first edition.
The developer who reviews the change is the control that sees what the code was meant to do. Training that developer, and recording it, is the part of a secure AI SDLC that no tool replaces.
~30%
Pass rate for Java, the lowest of the languages tested (Veracode, 2026)
“It not only covers OWASP Top 10 but also operations technologies like Kubernetes, Cloud, and new technologies like AI/ML.”
Anonymous
AppSec
A software development lifecycle in which AI assistants or coding agents take part in design, coding, review, testing, or operations. A secure AI SDLC adds security requirements before generation, trained review of AI output, and records that show both.
Start with the vulnerability classes AI produces most, and train developers to review AI output, not only to write code. Hands-on labs where developers prompt a coding assistant, review the change it makes and fix what it got wrong build that skill. Record each developer's results by vulnerability class: the same record is the evidence PCI DSS 6.2.2, ISO 27001 and the EU AI Act ask for. For the training itself, see secure coding training for AI-assisted development.
Yes. Requirement 6 covers bespoke and custom software, regardless of how it is written. Developers still need software security training at least once every 12 months (6.2.2), and code still needs review before release (6.2.3).
Article 4 requires organizations that deploy AI systems to take measures to support the AI literacy of their staff and others operating AI systems on their behalf. A development team using coding assistants deploys AI systems. Whether other obligations apply depends on what you build, so check with your compliance team.
The same as for any code: defined requirements, trained developers, documented review, fixed vulnerabilities. When AI produces most of the code, review skill is the control under the most pressure, so evidence of that skill matters most.
SSDF does not single out AI-generated code: its practices apply to all code, however it was produced. For AI output, that means security requirements defined before generation (PO.1.2, PW.1), the code reviewed and tested against them (PW.7, PW.8), vulnerabilities traced to their root cause (RV.3), and the people doing each of those trained for the role (PO.2).
The companion SP 800-218A covers teams that build generative AI models, not teams that use coding assistants. SSDF matters beyond US government sales too: it maps to ISO 27001 and PCI DSS practices, and customers in regulated industries use it in questionnaires.
Since January 2026, US agencies set their own software assurance requirements instead of collecting one standard attestation form, and SSDF is the guidance most of them point to.
This page covers which requirements apply and how to evidence them. For the training itself, see secure coding training for AI-assisted development.
Sources
See how SecureFlag maps training, threat models, and remediation records to the requirements your assessor checks, in the languages your team ships. Thirty minutes, with your stack.