Introduction
SOC 2 Type II audits are no longer optional for teams shipping software in 2026. Customers, partners, and procurement departments expect verifiable proof that your development process includes meaningful security controls — and that proof needs to extend to AI-generated code.
If your team uses tools like GitHub Copilot, Cursor, or Claude Code to write or suggest code, that code enters your commit history, your pull requests, and eventually your production deployment pipeline. SOC 2 auditors are increasingly asking: How do you review, approve, and verify code that a machine wrote?
This article explains what SOC 2 compliance evidence looks like for teams using AI coding tools, which Trust Services Criteria apply, and how to build an audit-ready workflow without slowing down your development velocity.
Why SOC 2 Auditors Care About AI-Generated Code
SOC 2 (Service Organization Control 2) evaluates your organization’s controls against five Trust Services Criteria: Security, Availability, Processing Integrity, Confidentiality, and Privacy. The AICPA’s 2026 updated criteria explicitly address emerging technology risks, including AI-assisted development.
The core concern is straightforward: if code enters your codebase without adequate human review, you cannot demonstrate that your change management controls are operating effectively. Auditors are not asking you to ban AI coding tools. They are asking you to show that every change — human-written or AI-suggested — goes through a defined review and approval process.
The March 2026 Delve scandal reinforced this point. Delve, a Y Combinator-backed compliance automation startup, was accused of generating 494 nearly identical SOC 2 audit reports with boilerplate conclusions, undermining trust in “automated compliance” claims that skip actual evidence collection. The lesson for your team: real compliance evidence means real review, not rubber stamps.
Which Trust Services Criteria Apply
CC2 — Communication and Information
You need evidence that your team communicates about AI code risks. This includes:
- Documented policy that AI-generated code must undergo the same review process as human-written code
- Change management procedures that identify AI-suggested changes in pull requests
- Training records showing developers understand how to evaluate AI suggestions critically
CC6 — Logical and Physical Access Controls
Access controls extend to AI tools themselves:
- Audit logs showing who accessed AI coding assistants and when
- Configuration evidence that AI tools are restricted to approved repositories
- Network-level controls preventing AI tools from accessing sensitive data repositories
CC7 — System Operations
Operational controls require evidence of ongoing monitoring:
- CI pipeline logs showing that AI-generated code passes security scanning gates
- Pre-commit hook outputs demonstrating that secrets and vulnerabilities are caught before merge
- Incident response records showing how AI-introduced issues were detected and resolved
CC8 — Change Management
This is the most directly relevant criterion:
- Pull request evidence showing that AI-suggested code was reviewed by a qualified human
- Approval chains demonstrating that AI-generated changes went through the same gate as manual changes
- Rollback procedures tested and documented for AI-originated changes that introduced defects
Building an Audit-Ready AI Code Review Workflow
Step 1: Tag and Track AI-Generated Changes
Every pull request that includes AI-suggested code should be identifiable. This does not mean labeling every line, but it does mean your team has a process for flagging PRs where AI tools contributed meaningfully.
Practical approaches:
- Use PR labels or templates that ask “Did AI tools contribute to this change?”
- Configure your CI system to add metadata about AI-assisted commits
- Maintain a simple log of which repositories regularly use AI coding tools
Step 2: Apply Consistent Review Gates
Your review process for AI-generated code should match or exceed the rigor applied to human-written code. This is where CodeRiskTools’ CI gates for AI-generated code become directly relevant — they provide automated, documented security checks that serve as objective evidence of your review process.
For each AI-influenced PR, document:
- The reviewer who approved it (name and role)
- The security scan results from CI gates
- The specific security categories checked (secrets, injection paths, dependency risks)
- The final disposition (approved, rejected, or modified)
Step 3: Collect and Preserve Evidence
SOC 2 evidence is only valuable if you can produce it on demand. Build evidence collection into your daily workflow rather than scrambling before an audit:
- Automated CI logs: Configure your pipeline to export scan results with timestamps and commit hashes
- PR review records: Ensure your Git platform preserves review comments and approvals
- Secret scan outputs: Run secret scanning on every push and store results in a queryable format
- SBOM records: Generate software bill of materials for every release and archive them alongside deployment records
Step 4: Map Evidence to Controls
Create a living document that maps each SOC 2 control to the specific evidence your team produces:
| SOC 2 Control | Evidence Type | Tool or Process | Retention |
|---|---|---|---|
| CC2.1 — Communication of policies | AI code review policy document | Confluence/Notion | 3 years |
| CC6.1 — Logical access | AI tool access logs | GitHub Audit Log | 1 year |
| CC7.1 — Defect detection | CI scan results | CodeRiskTools CI gates | 2 years |
| CC7.2 — Incident monitoring | Secret scan findings | CodeRiskTools secret scanner | 2 years |
| CC8.1 — Change approval | PR review records | GitHub/GitLab | 3 years |
Common Gaps That Auditors Flag
Gap 1: No Documented Policy for AI Code Review
Many teams use AI coding tools informally. An auditor will ask for a written policy. Without one, your CC2.1 evidence is incomplete.
Fix: Write a brief policy (one page is sufficient) stating that AI-generated code must pass the same review gates as manual code. Reference your AI code review checklist as the operational standard.
Gap 2: No CI Gate Evidence for AI-Originated Changes
If your CI pipeline runs security scans but does not capture or store the results in a way that can be traced to specific changes, auditors cannot verify your CC7 controls.
Fix: Configure your CI system to export structured scan outputs (JSON or SARIF format) with commit hashes. CodeRiskTools’ scan outputs are designed for this — they produce structured severity reports that map directly to security control categories.
Gap 3: Secret Scanning Skipped for AI-Generated Code
AI coding tools frequently suggest code that includes API keys, tokens, and connection strings. If your review process does not include automated secret scanning for AI-suggested changes, this is a CC7.2 gap.
Fix: Run secret scanning on every push. Store findings with resolution status. This produces defensible evidence that you detect and remediate leaked secrets, including those introduced by AI tools.
Gap 4: No SBOM or Dependency Tracking for AI-Introduced Packages
AI coding assistants often suggest adding new dependencies. If these additions bypass your normal dependency review, your CC8 evidence has a hole.
Fix: Generate an SBOM for every release. Cross-reference AI coding tool logs with your dependency manifest. Use SBOM audit workflows to verify that every dependency was reviewed before inclusion.
The Delve Lesson: Why Real Evidence Matters
The Delve compliance fraud case (March 2026) is a cautionary tale for any team pursuing SOC 2. Delve automated SOC 2 audit report generation to the point where 494 reports shared nearly identical conclusions — without collecting actual evidence from client systems.
The takeaway is not that automation is bad. It is that automation must produce real, specific, verifiable evidence — not generic templates. Your CI scan results, PR review records, and secret scanning outputs should be traceable to actual commits, actual findings, and actual resolutions.
CodeRiskTools operates on this principle: every scan produces a structured output with specific findings, severity levels, and remediation paths. This is the kind of evidence auditors can verify, and it is the kind that holds up under scrutiny.
SOC 2 Readiness Checklist for Teams Using AI Code
- ☐ Written policy requiring AI-generated code to pass the same review gates as human-written code
- ☐ PR labels or metadata identifying AI-contributed changes
- ☐ CI security gates configured and producing structured, stored output
- ☐ Secret scanning running on every push, with findings logged and tracked
- ☐ SBOM generated for every release, cross-referenced against dependency review records
- ☐ Change approval records preserved in Git platform (reviewer, timestamp, comments)
- ☐ Incident response process that covers AI-introduced defects
- ☐ Evidence mapping document connecting each SOC 2 control to specific, produced evidence
- ☐ Quarterly review of AI tool access and configuration
- ☐ Training records showing developers understand AI code review requirements
Conclusion
SOC 2 compliance for teams using AI-generated code is not about avoiding AI tools — it is about ensuring that the same rigorous, documented review process applies regardless of who or what wrote the code. Auditors want to see evidence: scan results, review records, approval chains, and resolution logs that trace back to specific changes.
The tools and workflows you need are the same ones that improve your code quality: CI gates, secret scanning, SBOM generation, and structured review checklists. The difference is that you need to produce and preserve evidence in a way that maps to SOC 2 Trust Services Criteria.
If you are preparing for a SOC 2 audit and want to see how automated security scanning produces audit-ready evidence, review the CodeRiskTools comparison page to find the right toolkit for your team size and compliance needs.
Frequently Asked Questions
Does SOC 2 require me to stop using AI coding tools?
No. SOC 2 requires you to have controls around how code enters your codebase, regardless of its origin. You can use AI coding tools as long as you have documented review processes and evidence that those processes are followed.
What evidence do I need for AI-generated code specifically?
You need the same categories of evidence as for any code change: review records (who approved it), security scan results (what was checked), and resolution logs (what happened when issues were found). The key is being able to show that AI-suggested code went through these gates.
How do CI gates help with SOC 2 compliance?
CI gates produce structured, timestamped evidence of security checks. Each gate runs on every push, captures findings with severity levels, and stores results in a format that can be traced to specific commits. This is exactly the type of evidence auditors look for under CC7 and CC8 controls.
Can I use CodeRiskTools for SOC 2 evidence collection?
Yes. CodeRiskTools produces structured scan outputs with severity levels, specific findings, and remediation paths. These outputs can be archived alongside your CI pipeline results and mapped directly to SOC 2 Trust Services Criteria. See the comparison of available toolkits to find the right fit for your team.
What is the difference between SOC 2 Type I and Type II for AI code?
Type I assesses your controls at a single point in time. Type II evaluates whether those controls operated effectively over a period (typically 6-12 months). For AI-generated code, Type II is more relevant because it requires evidence of ongoing, consistent review — not just a one-time policy document.


