SOC 2 and Vibe Coding: Keeping AI-Written Code Audit-Ready
SOC 2 has no AI carve-out. See which criteria apply to vibe-coded software, what evidence auditors ask for, and how to keep AI-written code audit-ready.
On this page
Vibe coding does not change what SOC 2 asks of you. Code written by an AI agent is still a change to your system, and it must be authorized, tested, reviewed and approved, with records that prove it happened. The teams that pass are the ones whose process produces that evidence automatically. Axiom Studio’s VibeFlow and Vera are built for this: agent work starts from a tracked work item with an execution log, Vera, our free code review agent, reviews each pull request with evidence, and the Security Lead agent records compliance findings against SOC 2 sections.
TL;DR
- SOC 2 has no AI exemption. The Trust Services Criteria do not mention AI, but read against them, AI-generated code is a change under CC8.1 and the AI tool is a vendor under CC9.2.
- Auditors want evidence the process produced while it ran: named human approval, attributed commits, test and scan records, and tamper-resistant logs.
- The agent that wrote the code cannot approve it. Treat the person who directed the agent as the author, so a second person approves.
- AI-specific criteria are only proposed so far. Build to today’s criteria and the proposed 2027 wording will follow naturally.
What SOC 2 asks of AI-assisted development
SOC 2 is a report from a CPA firm. It gives an opinion on your controls against the AICPA’s Trust Services Criteria, which cover security, availability, processing integrity, confidentiality and privacy. Security is in every report. Type 1 tests design at a point in time, and Type 2 tests whether controls operated effectively over a period. It is an opinion, not a certification or a checklist. Our SOC 2 guide for AI-assisted development covers the framework in more depth.
The criteria do not mention vibe coding, and they do not need to. An app enters the system boundary through what it touches or does, not how it was built: if it handles customer data, holds privileged access or evidences a control, it is in scope. Three groups of criteria carry most of the load:
| Criterion | What it covers | What it means for AI-written code |
|---|---|---|
| CC8.1 | Change management | Every change, including agent-authored ones, is authorized, tested, approved and implemented under a documented process |
| CC6.1, CC6.3 | Logical access, least privilege, segregation of duties | Agents need their own scoped identities, and the same person should not write and ship a change |
| CC6.8, CC9.2 | Malicious software, vendor risk | The AI coding tool is approved software and a vendor you assess |
Ryz Labs maps the same areas, adding CC7.1 and CC7.2 for vulnerability detection and anomaly monitoring. It also found that mainstream compliance automation tests check whether changes were reviewed and approved, not whether a model wrote them. The question auditors ask is whether your process controlled the change.
Where vibe coding strains your controls
Change management (CC8.1)
The 2022 points of focus say changes should be authorized before development, tested before production and approved before implementation, and that one user should not both develop or test and push a change to production. AI-written code strains this in four places:
- Authorship. An agent running on a developer’s credentials makes logs unable to tell human work from machine work.
- Segregation of duties. Treat the person who directed the agent as the author, and require a second approver.
- Review quality. An approval click looks identical for 20 lines or 2,000.
- Test independence. An agent that writes both the code and its passing tests proves little.
Auditors apply CC8.1 to commits no human wrote, with no AI carve-out. They expect a change request, authorization, testing, rollback and operating-effectiveness evidence across the Type 2 period, typically 3 to 12 months.
Security flaws in the code itself
The Canadian Centre for Cyber Security lists the risks of vibe coding: insecure generated code such as XSS and SQL injection, hallucinated package names that attackers register and fill with malware (“slopsquatting”), prompt injection, and leaks of sensitive information to AI providers. Its recommendations are security testing across the lifecycle, software bills of materials (SBOMs), least privilege, sandboxing and qualified human review before deployment. Each maps to a control you already have to evidence under CC6.8 and CC7.1.
Data leaving your boundary
The scoping question is what source code or secrets are sent to the tool and how generated code reaches production. An agent that reads environment credentials is logical access under CC6.1, and file contents sent to a model API cross a trust boundary under CC6.7, as mapped by one practitioner guide.
Govern AI coding tools before you audit them
The OWASP AI Security Verification Standard, Appendix C, gives a workable baseline for the policy an auditor will ask to see:
- A written workflow naming approved tools, prohibited uses and allowed data classifications.
- Review by a qualified human who is not the identity that requested the generation. The agent does not count as the reviewer.
- Automated security scanning on every pull request containing AI-generated code.
- Merges blocked on critical findings (CVSS 9.0 or higher) unless a human approves a written exception.
- Agents unable to approve, merge, sign or deploy their own artifacts, enforced technically rather than by policy alone.
Assess the tool as a vendor too. The tool’s own SOC 2 report covers the vendor’s controls, not yours, so keep your own vendor assessment, contract review and follow-up under CC9.2.
For related engineering practice on guardrails, telemetry and red teaming for agents, see guardrails for AI agents.
The evidence auditors ask for
Good intentions do not pass a Type 2 period. Evidence has to be produced by the process while it ran: a coding standard is a document, but the auditor wants the standard, the mechanism that applied it and the records. Instructions given to an agent are context, not control. Only the check on the change proves the standard was applied.
Expect requests like these, drawn from Finray’s auditor-request list:
- The population of changes, with the task, review, tests and named human approval for a sample.
- A credential register that includes agent tokens, with access reviews.
- The list of approved AI tools with vendor reviews.
- Incidents, including any data that reached an AI tool against policy.
For each agent action, a log entry should capture the authenticated human or system that triggered it, the tool called, target resource, arguments, result, timestamp, channel and any approval, including who decided and when. Logs should be append-only and immutable. Commit history should name the agent identity and model version in trailers, so each AI-generated change traces to a work item.
OWASP goes further: artifacts should carry model identity and version, agent identity, prompt hash, human involvement and session IDs, and artifacts with incomplete metadata should be rejected before merge, with the rejection logged.
The bar is plan-level, not keystroke-level. Aletheia Security’s whitepaper argues that agents can meet the same evidentiary standard as human engineers when governance produces plan records, session-bound identities and tamper-evident logs. The auditor needs the artifacts to exist.
A routine that holds up in an audit
- Write the policy. Name approved tools, data classes and prohibited uses. Record the tool’s adoption in your change-advisory minutes.
- Give each agent its own identity. Scope it to least privilege. Do not let it run on a developer’s personal credentials.
- Tie every change to a ticket. Authorization should exist before the agent starts. VibeFlow tracks features, todos and issues on a Kanban board, and items created from chat land in review for a human before agents pick them up, so the ticket, the agents’ work and the merge sit in one place.
- Scan every pull request. Run SAST, dependency (SCA) and secret scanning in CI. In VibeFlow, the Security Lead agent also reviews each finished work item and maps its findings to frameworks including SOC 2 and GDPR, with section references such as CC6.1. Our quality gates guide walks through the gate sequence.
- Require a human approver who is not the author. Enforce it with branch protection on your Git host. Vera reviews every pull request and gives that approver the evidence for each finding, but it does not replace the approval.
- Keep the trail. In VibeFlow, every work item keeps an append-only execution log, and each commit is traced to its work item, which gives you the per-change records a Type 2 sample draws from.
- Review quarterly. Check agent tokens, approved tools and exceptions, and keep the results as evidence.
For a deeper look at the security side, read how teams ship AI-written code safely.
What is changing in SOC 2 guidance
Today’s reports are measured against the 2017 criteria with revised 2022 points of focus. The AICPA published TQA Section 9561 on September 11, 2026. It addresses how a service organization’s AI use affects SOC 1 and SOC 2 examinations, and it is nonauthoritative guidance that does not replace the criteria.
A proposed 2027 revision dated October 27, 2026, adds AI wording to points of focus under 17 of 50 criteria but no AI-specific criterion. Comments are due January 15, 2027, and if finalized it applies to engagements beginning on or after December 31, 2027. Check the AICPA’s site for the final status. The controls above are the ones those points of focus describe.

Where VibeFlow and Vera fit
Teams adopting AI coding often end up with a tracker, an AI reviewer and a compliance add-on, each holding part of the evidence. VibeFlow runs a team of nine specialist agent personas across planning, development, security, QA and delivery, with work tracking built in. Vera reviews each pull request with evidence and verifies fixes with a fresh review. After a work item is built, the Security Lead agent reviews it and records compliance findings, and the QA Lead agent tests it. The execution log on each work item ties the request, the commits and the reviews together.

Plans are listed on the pricing page: Starter (free), Pro at $20 per month, Team at $49 per seat per month with a three-seat minimum, and Enterprise. Vera is free on every plan. If your audit is approaching, you can request a demo. Compliance leads can also read how VibeFlow supports compliance and GRC work.
Sources
- 2017 Trust Services Criteria
- Does SOC 2 apply to AI agents?
- Compliance for vibe-coded apps
- SOC 2 for AI-Assisted Codebases, Ryz Labs
- AI-Written Code and SOC 2 / ISO 27001 Change Management
- AI-Generated Code vs SOC 2 and ISO 27001 Change Management
- Managing security risks in vibe coding (ITSM.60.043)
- SOC 2 for AI Companies (2026)
- SOC 2 and AI coding agents
- OWASP AISVS Appendix C
- Guardrails for AI agents
- SOC 2 evidence for AI-assisted software development
- Compliance Audit Logs for Coding Agents
- What evidence does a SOC 2 auditor need for AI-written code
- The Evidence Gap: AI Agents, Attribution, and SOC 2 CC8.1
- AICPA TQA Section 9561
- Proposed 2027 SOC 2 Trust Services Criteria
Recommended
- AI Coding Governance for CISOs
- AI Coding Compliance and GRC with VibeFlow
- SOC 2 Scanning for Code: What to Scan and What to Keep
- SOC 2 Compliance Automation: What It Covers and How to Start
Frequently asked questions
Does SOC 2 have separate requirements for vibe coding?
No. Existing criteria cover AI-generated code, and no separate "SOC 2 for AI" is needed. Change management (CC8.1), access (CC6) and vendor risk (CC9.2) apply as they do to human-written code.
Can an AI agent approve its own pull request?
No. OWASP's guidance says the agent cannot count as the human reviewer, and agents cannot approve, merge or deploy their own artifacts. Approval must come from a qualified person who did not request the generation.
Is the AI coding tool's SOC 2 report enough for my audit?
It covers the vendor's controls, not yours. You still assess the tool under CC9.2 and evidence your own review, testing and release controls.
Do auditors need to see every line the agent wrote?
Not at keystroke level. Auditors look for change plans, authorization, test and scan records, named approvals and tamper-resistant logs for a sample of changes across the period.
Which SOC 2 criteria apply to AI-generated code?
CC8.1 covers change management, CC6.1 and CC6.3 cover access and segregation of duties, CC6.8 covers malicious software, and CC9.2 covers the AI coding tool as a vendor. CC7.1 and CC7.2 add vulnerability detection and anomaly monitoring.
Are there AI-specific SOC 2 criteria yet?
Not yet. A proposed 2027 revision adds AI wording to points of focus under 17 of 50 criteria but no AI-specific criterion. If finalized, it applies to engagements beginning on or after December 31, 2027.
Written by
Axiom Studio