SecureFlag
Compliance

AI SDLC compliance: prove control over AI-written code

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.

  • PCI DSS
  • ISO 27001
  • SOC 2
  • NIST SSDF
  • EU AI Act
  • EU CRA
G2 Best Usability, Fall 2026G2 Easiest Admin, Fall 2026G2 Easiest Setup, Fall 2026G2 Momentum Leader, Fall 2026G2 High Performer, Fall 2026G2 Leader, Fall 2026

Engineering teams using AI coding assistants train with SecureFlag

Thomson ReutersActivisionAONRolexMichelinJetBrainsING
  • Exemptions

    0 exemptions

    No major framework exempts AI-generated code. Code is code, whoever wrote it.

  • PCI DSS 6.2.2

    12 months

    PCI DSS 6.2.2: software development personnel trained on secure coding at least once every 12 months.

  • EU AI Act

    Feb 2, 2025

    EU AI Act AI-literacy duty (Article 4) applies to organizations that deploy AI systems, coding assistants included.

  • EU CRA

    Dec 11, 2027

    EU Cyber Resilience Act applies in full. Vulnerability reporting duties already apply since September 2026.

  • AI-generated code

    44%

    Share of coding tasks in which AI-generated code introduced a security flaw, across 11 models (Veracode, 2026).

01 · Definition

What is a secure AI SDLC?

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.

  1. Step 1

    Require

    Security requirements attached to the story before code is generated.

  2. Step 2

    Review

    A developer trained to spot what AI gets wrong checks the output.

  3. Step 3

    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.

02 · Frameworks

Which compliance frameworks apply to AI-generated code?

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.

Framework
What it asks of development
What changes with AI assistants

PCI DSS v4.0.1 (Req. 6.2)

What it asks of developmentBespoke and custom software developed securely; developers trained at least every 12 months (6.2.2); code reviewed before release (6.2.3)
What changes with AI assistantsReviewers now check far more code than they wrote. Training should cover reviewing AI output, not only writing code.

ISO/IEC 27001:2022 (Annex A 6.3, 8.25, 8.26, 8.28)

What it asks of developmentSecure development lifecycle, secure coding, staff awareness and training
What changes with AI assistantsSecure coding principles should cover how AI assistants are used and which output is accepted.

SOC 2 (Trust Services Criteria CC8.1, CC1.4)

What it asks of developmentChanges authorized, tested, and approved (CC8.1); people competent for their role (CC1.4)
What changes with AI assistantsAuditors ask how AI-suggested changes pass the same approval path.
What it asks of developmentDefined security requirements, trained roles, code review, vulnerability response
What changes with AI assistantsPractices apply unchanged. SP 800-218A adds practices for teams building generative AI models.
What it asks of developmentManufacturer responsible for the security of the whole product through its support period
What changes with AI assistantsNo carve-out for AI-written components.

EU AI Act (Article 4)

What it asks of developmentOrganizations deploying AI systems must take measures to support the AI literacy of their staff and others operating AI systems on their behalf.
What changes with AI assistantsA development team using coding assistants is a deployer. Records of its AI literacy measures show they were taken.
What it asks of developmentManagement system for organizations that develop or use AI
What changes with AI assistantsA structure for an AI coding assistant policy and its controls.
03 · Risk by phase

Where AI changes the risk in your SDLC

Phase
What AI does here
Where it goes wrong
Control to evidence
Requirements and design
What AI does hereTurns tickets into specs, suggests architecture
Where it goes wrongSecurity requirements never reach the prompt
Control to evidenceSecurity requirements recorded per story; threat model before build
Coding
What AI does hereGenerates functions, refactors modules
Where it goes wrongInsecure defaults, injection flaws, weak cryptography, invented packages
Control to evidenceDevelopers trained on the vulnerability classes AI produces most
Review
What AI does hereSummarizes pull requests, flags issues
Where it goes wrongReviewers approve large AI diffs they did not read line by line
Control to evidenceReview skill trained and measured, not assumed
Testing and release
What AI does hereWrites tests, fixes builds
Where it goes wrongTests prove the code runs, not that it is safe
Control to evidenceRelease gate tied to the security requirements from design
Operations
What AI does hereTriages alerts, drafts fixes
Where it goes wrongFixes ship faster than root causes are understood
Control to evidenceRemediation time tracked per developer and vulnerability class

Most teams move security into sprint planning after an incident. The table above makes that move before one.

46.3%

From SecureFlag platform data

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.

04 · Requirements → evidence

AI SDLC requirements, mapped to your development team

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.

Requirement
What it means in practice
How SecureFlag evidences it
01

Security requirements defined before build

SSDF PO.1.2, PW.1; ISO 27001 A 8.26
What it means in practiceEvery story touching data, authentication, or payments carries its security requirements before AI generates code
How SecureFlag evidences itThreatCanvas turns designs and development stories into threat models and countermeasures, with tickets in Jira or Azure DevOps
02

Secure coding principles applied

ISO 27001 A 8.28, PCI DSS 6.2.1
What it means in practiceDevelopers know which AI suggestions to reject
How SecureFlag evidences itHands-on labs where developers prompt, review AI-generated changes, and fix the vulnerabilities in them
03

Developers trained at least every 12 months

PCI DSS 6.2.2
What it means in practiceTraining matches each developer’s role and languages, and now covers reviewing AI output
How SecureFlag evidences itTraining records per developer and technology, with dates, matched to each commit
04

Code reviewed before release

PCI DSS 6.2.3, SOC 2 change management
What it means in practiceReviewers can find the flaw in a 400-line AI diff
How SecureFlag evidences itLab results by vulnerability class, not course completion
05

AI literacy for staff using AI tools

EU AI Act Art. 4
What it means in practiceDevelopers understand what coding assistants get wrong and how to direct them
How SecureFlag evidences itLabs on secure prompting and AI output review, recorded per developer
06

Vulnerabilities fixed and root causes addressed

SSDF RV.3, CRA Annex I, Part II
What it means in practiceRecurring flaws trigger targeted retraining
How SecureFlag evidences itJust-in-time training linked to Jira issues, GitHub pull requests, and CI/CD scan results

Your assessor decides what counts as sufficient.
These records give them the evidence to decide.

05 · Evidence

Proving it, one requirement at a time

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:

  • Which developers trained on which vulnerability classes, and when.
  • Share of commits written by developers already trained on the technology.
  • Lab performance by technology and attack type.
  • Threat models linked to the stories they covered.
  • Remediation time before and after training.
SecureFlag evidence report showing competency, accuracy, runs and total time by tactic, with a Generate report button
06 · Readiness self-assessment

Where does your AI SDLC stand?

Eight questions. Two minutes. A view of where your AI SDLC would hold up in an audit and where it would not.

  • Not started
  • Partly
  • Mostly
  • Fully
Tools vs people

Scanners catch patterns. Developers catch intent.

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)

Reviews

Trusted by security and engineering teams

4.8

Rated on G2

G2 Leader, Fall 2026G2 Momentum Leader, Fall 2026G2 High Performer, Fall 2026G2 Best Usability, Fall 2026G2 Easiest Admin, Fall 2026G2 Easiest Setup, Fall 2026

Recognized by G2 users · Fall 2026

Read our reviews on G2
“It not only covers OWASP Top 10 but also operations technologies like Kubernetes, Cloud, and new technologies like AI/ML.”

Anonymous

AppSec

07 · FAQ

AI SDLC compliance FAQ

What is an AI SDLC?

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.

How do we train engineers to use AI coding assistants securely?

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.

Does PCI DSS apply to AI-generated code?

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).

Does the EU AI Act apply to teams that use coding assistants?

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.

What evidence do auditors ask for on AI-generated code?

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.

Does NIST SSDF cover AI-generated code, and does it matter outside US government sales?

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.

How is this different from SecureFlag's AI-assisted development training?

This page covers which requirements apply and how to evidence them. For the training itself, see secure coding training for AI-assisted development.

Book a demo

Show your auditor how your AI SDLC is controlled

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.