SOC 2 for AI Agents in Production: The Controls Auditors Will Look For

本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。

If AI agents act in your production environment as part of the service your SOC 2 report covers, they are part of your in-scope system. There are no special “AI criteria” in SOC 2. The same Trust Services Criteria apply. What changes is the shape of the controls, because agents don’t behave like employees, shared service accounts or traditional software. This post is for engineering teams running agents in production who want to know what a SOC 2 auditor will expect. It’s written from the auditor’s side.

如果人工智能代理在您的生产环境中运行,并且属于您的 SOC 2 报告所涵盖的服务的一部分,那么它们就属于您的受控系统范围。SOC 2 中没有特殊的“人工智能标准”,依然适用相同的信任服务标准(Trust Services Criteria)。发生变化的是控制措施的形式,因为代理的行为方式与员工、共享服务账户或传统软件不同。本文旨在为在生产环境中运行代理并希望了解 SOC 2 审计员期望的工程团队提供指导,内容从审计员的角度撰写。

The short version Four domains shape agent controls: Governance and accountability (CC1, CC3), Access control (CC6), Change management (CC8), System monitoring (CC7). Agents also need to show up in your risk and control assessments (CC3, CC4), your customer communication (CC2) and your system description.

简而言之,四个领域决定了代理控制:治理与问责(CC1, CC3)、访问控制(CC6)、变更管理(CC8)以及系统监控(CC7)。代理还需要出现在您的风险与控制评估(CC3, CC4)、客户沟通(CC2)以及系统描述中。

Why it matters for enterprise deals: When a report ignores agents in production, enterprise security teams can spot the gap during due diligence. They’re left without assurance over a potentially consequential part of your service, and they’ll ask for more evidence, controls or contractual commitments. Reviews slow down or stall. A report that shows agentic risks were considered, controlled and independently tested gives buyers a much stronger basis for saying yes.

这对企业交易为何重要:当报告忽略了生产环境中的代理时,企业安全团队在尽职调查期间就能发现这一缺口。他们无法获得关于您服务中潜在重要部分的保证,因此会要求提供更多的证据、控制措施或合同承诺。这会导致审查放缓或停滞。一份展示了代理风险已被考虑、控制并经过独立测试的报告,能为买方提供更有力的决策依据。

Domain 1: Agent governance and accountability: A big chunk of SOC 2 is about managing people: security awareness, policy sign-offs, performance reviews, employment contracts and consequences. That creates accountability for everything else. An AI agent can’t be disciplined, fired or denied a reference. People controls don’t create accountability for it. Agent governance fills that gap: Define every agent. Keep an inventory with its purpose, objectives, responsibilities, scope and boundaries. Assess the risk of each agent. Document what it can do, what it can affect and the risks that follow. Revisit when agents are added or changed. Assign an accountable owner. A named person who understands the agent’s role, monitors its behaviour and can restrict or stop it. That governance record becomes the baseline for the agent’s permissions, change authority and monitoring.

领域 1:代理治理与问责:SOC 2 的很大一部分内容是关于人员管理的:安全意识、政策签署、绩效评估、雇佣合同及后果。这为其他一切建立了问责制。人工智能代理无法被纪律处分、解雇或拒绝提供推荐信。针对人员的控制措施无法为其建立问责制。代理治理填补了这一空白:定义每个代理。建立包含其目的、目标、职责、范围和边界的清单。评估每个代理的风险。记录其功能、影响范围及随之而来的风险。在添加或更改代理时进行复核。指定一名负责任的所有者。即一名了解代理角色、监控其行为并能限制或停止其运行的指定人员。该治理记录将成为代理权限、变更授权和监控的基准。

Domain 2: Access control: Agents with production access should follow the same access principles as everyone else: Authorised access: permissions approved before they’re granted, in line with the agent’s purpose. Least privilege: only what the role requires. Periodic review: confirm the access is still appropriate. Unique identity: one account per agent. Don’t share a single service account across several agents. Audit logging and traceability: every action links to the agent that took it, and through the governance record to its owner. Privileged and break-glass access: approved, least-privilege, time-limited and logged. The common failure isn’t that agents need a separate process. It’s that service and agent accounts get missed from user access reviews, or reviewed less carefully. For each agent account, ask the same question you ask for people: is this access still needed, and does someone understand and monitor it?

领域 2:访问控制:具有生产访问权限的代理应遵循与其他所有人相同的访问原则:授权访问:权限在授予前经过批准,并符合代理的目的。最小权限:仅限于角色所需。定期审查:确认访问权限仍然适当。唯一身份:每个代理一个账户。不要在多个代理之间共享同一个服务账户。审计日志和可追溯性:每个操作都链接到执行它的代理,并通过治理记录链接到其所有者。特权和紧急访问:经过批准、最小权限、有时限且有记录。常见的失败不在于代理需要单独的流程,而在于服务和代理账户在用户访问审查中被遗漏,或审查不够仔细。对于每个代理账户,请问自己与对待人员时相同的问题:是否仍然需要此访问权限,以及是否有人了解并监控它?

Domain 3: Change management: The principles don’t change: changes are authorised, tested, reviewed and promoted to production in a controlled way. What changes is where those steps sit. Human in the loop. An agent writes code, a human reviews it and ships it through peer review and deployment as their own change. Existing controls sit on top. AI-assisted coding alone typically doesn’t materially change the controls described in a SOC 2 report. Agent deploys to production itself. Now the design has to cover the steps it might otherwise skip: authorisation before deployment, review immediately after where appropriate, alerts for unexpected changes, and rollback with a defined response time. Post-deployment review isn’t a blanket substitute for approval and testing. The right sequence depends on risk, service commitments and the safeguards around the agent. If customer users direct or approve changes an agent makes, describe that split clearly in your report, including the relevant complementary user entity controls (CUECs).

领域 3:变更管理:原则没有改变:变更必须以受控方式进行授权、测试、审查并推送到生产环境。改变的是这些步骤所处的位置。人在回路中。代理编写代码,人类进行审查,并通过同行评审和部署将其作为自己的变更发布。现有控制措施依然适用。仅人工智能辅助编码通常不会实质性改变 SOC 2 报告中描述的控制措施。代理自行部署到生产环境。现在,设计必须涵盖它可能跳过的步骤:部署前授权、适当情况下的部署后立即审查、意外变更警报以及具有明确响应时间的回滚。部署后审查不能完全替代批准和测试。正确的顺序取决于风险、服务承诺以及围绕代理的保障措施。如果客户用户指导或批准代理所做的变更,请在报告中清楚地描述这种分工,包括相关的补充用户实体控制(CUECs)。

Domain 4: System monitoring: Agents affect monitoring in two ways: they’re something new to monitor, and they may do the monitoring. Monitoring agents means logging their production actions, tracking their changes and alerting on behaviour outside the purpose and boundaries in the governance record. The owner receives and acts on those alerts. If agents take part in incident management: What the agent does Impact on controls Performs the same incident steps a human would Control may stay the same, but authority, oversight and evidence still need to support it. Adds monitoring or on-call coverage alongside humans: An additional control may describe the extra coverage. Remediates issues by changing the system: Change management applies: authorisation, review and rollback. Four questions to answer for autonomous incident response: Defined authority: which steps can the agent take alone, and which must it escalate? Human oversight: how are its triage and impact assessments reviewed? Customer communication: who approves notifications to impacted customers? Traceability: are its actions logged for post-incident review?

领域 4:系统监控:代理以两种方式影响监控:它们是需要监控的新对象,并且它们本身可能执行监控。监控代理意味着记录其生产操作、跟踪其变更,并对超出治理记录中目的和边界的行为发出警报。所有者接收并处理这些警报。如果代理参与事件管理:代理所做的工作对控制的影响:执行与人类相同的事件步骤:控制措施可能保持不变,但仍需授权、监督和证据支持。在人类之外增加监控或值班覆盖:额外的控制措施可能描述这种额外的覆盖范围。通过更改系统来修复问题:适用变更管理:授权、审查和回滚。自主事件响应需要回答的四个问题:明确的授权:代理可以独立采取哪些步骤,哪些必须升级?人工监督:其分类和影响评估如何审查?客户沟通:谁批准向受影响的客户发送通知?可追溯性:其操作是否被记录以供事后审查?

Beyond the four domains: Risk and control assessments (CC3, CC4) should reflect the role agents play. Usually that means updating existing assessments, not inventing a new process. Customer communication (CC2) should explain the role AI plays in the service, the relevant risks and what customers are responsible for. The system description (DC 200) should make AI features and agents clear enough for customers to put the controls in context. Vendor management (CC9.2) should cover your model and AI platform providers. Data handling should cover the customer data agents can access, including Confidentiality criteria if that category is in scope. Indicative criteria mapping: These follow the 2017 Trust Services Criteria (with 2022 revised points).

超越四个领域:风险和控制评估(CC3, CC4)应反映代理所扮演的角色。通常这意味着更新现有的评估,而不是发明新的流程。客户沟通(CC2)应解释人工智能在服务中的作用、相关风险以及客户的责任。系统描述(DC 200)应使人工智能功能和代理足够清晰,以便客户能够将控制措施置于背景中理解。供应商管理(CC9.2)应涵盖您的模型和人工智能平台提供商。数据处理应涵盖代理可以访问的客户数据,如果该类别在范围内,还应包括机密性标准。指示性标准映射:这些遵循 2017 年信任服务标准(包含 2022 年修订要点)。