← Overnight blog Compliance & Audit

SOC 2 and AI-Generated Code: What Auditors Now Expect

The controls didn't change. What generates the code did. Here is how SOC 2's change management, access, and monitoring criteria read once an agent wrote and shipped the app with no human in the loop.

Guide 5 min read Updated July 21, 2026

SOC 2 was written for a world where a person wrote every line and another person approved it. That assumption is now quietly false. When you evaluate SOC 2 AI-generated code, the Trust Services Criteria themselves haven't changed, but three of them start to strain, because the evidence they demand assumes a human author who is no longer in the loop. Auditors have noticed. The controls that break first are change management, logical access, and monitoring.

Change management: SOC 2 AI-generated code breaks CC8.1 first

Common Criteria 8.1 is the control most directly stressed. It requires that an organization "authorize, design, develops or acquires, configures, documents, tests, approves, and implements changes" before they reach production. In practice that means a documented request, an approval, evidence of testing, and a reviewer who is not the author, so segregation of duties keeps a single actor from pushing unreviewed code to production (SOC2Auditors).

Code that no human reviewed fails the "authorized changes" premise on its face. There is no approver to name, no pull-request record with a second signature, no test artifact tied to the change. Auditors treat this the way they treat a developer deploying straight to production on a Friday night: as an exception. And change management is already among the most-cited sources of exceptions in Type 2 audits, before you add agents to the mix. As Teleport's SOC 2 guidance puts it, "if an AI system or pipeline updates production without a ticket, test artifacts, or a documented rollback procedure, it can directly conflict with change management expectations" (Teleport).

Logical access: which identity is the agent acting under?

CC6 governs logical access, meaning who and what can touch systems and data. Here the AI problem is subtler and much harder to paper over. SOC 2 expects privileged actions to be attributable to an accountable individual, which an autonomous agent or a shared service account is not. When an agent reads a customer table or calls an internal API, the audit question is simple: under whose identity?

Most ungoverned setups answer badly. The agent inherits a broad service credential, or worse a developer's personal token, and every action it takes collapses into one over-privileged identity that maps to no accountable person. That defeats least-privilege and role-based access in a single step. Teleport frames the auditor's position plainly: autonomous agent identity is "an accountability gap," and SOC 2 wants those actions traceable to a human who owns them.

Monitoring: can you evidence what actually ran?

CC7 covers system operations and monitoring, including detecting anomalies and reconstructing events after the fact. For AI-built apps the expectation has sharpened. Auditors now want every agent action logged with its inputs, outputs, and trigger events in a tamper-evident repository, plus the ability to trace a production incident back to the decision that caused it.

This is where shadow AI apps quietly fail. They run, they touch data, and they leave no attributable trail. When the auditor asks the one question that matters, what ran against our data, and who approved it?, the honest answer is a shrug. A log of approvals with no rejections in it is itself a red flag, because it suggests the control never actually gated anything (CC8.1 evidence).

The auditor's real question

SOC 2 never asks "is the code good?" It asks whether every change was authorized, every action attributable, and every event evidenced. Ungoverned AI code fails all three at once, and buggy code has nothing to do with it. It fails because nobody can prove who approved it or what it did.

What auditors now ask, and how teams are adapting

The questions have gotten specific. Auditors ask how you even know which code was AI-generated, since a commit-message label doesn't count. They ask who reviewed it and whether that review was substantive, and whether you can produce an immutable record covering the full audit period. They deliberately look for flagged or rejected changes as proof the control operates, since a wall of approvals proves nothing (CC8.1 evidence). For AI companies specifically, shadow AI and agent accountability are among the first gaps auditors probe (SOC2Auditors).

Teams adapt by forcing AI-driven changes back through the same gates as human ones: tickets, branch protection, required reviews, CI logs, scoped identities, tamper-evident logging. That genuinely works. The part that falls over is doing it per app.

Why per-app evidence-gathering doesn't scale

Here is the structural trap. If safety and evidence live inside each generated app, then every app is its own audit. Every agent-built tool needs its own review record, its own scoped credentials, its own logging wired up correctly, its own rollback path. A fleet of agents produces these faster than any GRC team can vet them one at a time, and the moment one slips through unreviewed it becomes a finding. Re-proving the same controls for the hundredth internal tool is a treadmill wearing a compliance program's clothes.

The way out is to detach the controls from the code and attach them to the boundary the code runs inside. Approve one runtime that enforces authorized change, scoped identity, and complete logging, then let every app inherit that compliance posture. The audit moves from N apps to one boundary.

Sources

  1. "A Practical Guide to SOC 2 Change Management Controls" (CC8.1 requirements and evidence auditors request), SOC2Auditors · soc2auditors.org
  2. "How AI Agents Impact SOC 2 Trust Services Criteria" (change management, logical access, and monitoring expectations for AI agents), Teleport · goteleport.com
  3. AICPA Trust Services Criteria (2017, with revised points of focus 2022) — the criteria a SOC 2 examination tests against · aicpa-cima.com
  4. "SOC 2 for AI Companies (2026): What Auditors Test First," SOC2Auditors · soc2auditors.org
Early access

Request access

Tell us where you want to run AI-written code and we will get back to you.

We use this to connect with you, and for nothing else. No recurring marketing emails.