Blog
SOC 2, AI Agents, Auditability, Compliance, Production AI

Passing the SOC 2 Type II Audit With Production AI Agents in Your Stack

October 27, 2026
time
Passing the SOC 2 Type II Audit With Production AI Agents in Your Stack
WRITTEN BY
GlobalNodes
IN THIS ARTICLE

AI agents are increasingly being connected to the systems that run a business. They can retrieve customer information, create support tickets, update records, trigger workflows, and interact with internal APIs.

These capabilities create a new operational challenge. When an agent takes an unexpected action, engineering teams need to explain what happened and demonstrate that the appropriate controls were in place.

This is where an AI agent auditability framework becomes important. It connects model behaviour with application events, permissions, deployment records, and measurable evidence of control effectiveness.

Why SOC 2 Readiness Is Different for AI Agents

Traditional applications often execute predefined code paths. Although they can still fail in unpredictable ways, their intended operations are usually easier to trace.

AI agents can select tools dynamically, generate different outputs for similar requests, and react to information retrieved during execution.

Imagine an agent that receives a request to update a customer account. It retrieves the relevant record, interprets the request, calls an API, and reports success.

If the update fails but the model still tells the user that it succeeded, the final response alone is not enough to establish what actually happened.

A useful audit framework must record the underlying events, including the application's authorisation decision and the external system's response.

Understand What SOC 2 Type II Requires

SOC 2 examinations evaluate controls against applicable Trust Services Criteria. These may cover security, availability, processing integrity, confidentiality, and privacy, depending on the engagement's scope.

A Type II examination assesses the design and operating effectiveness of relevant controls over a specified period. It is not simply a one-time technical inspection.

For an AI platform, the scope may include model endpoints, application services, retrieval systems, tool integrations, identity management, monitoring, and deployment infrastructure.

The organisation should work with its auditor to define the system boundary, control objectives, evidence expectations, and applicable criteria.

The AICPA SOC resources provide a starting point for understanding the framework.

Map the Entire AI Execution Path

Begin by documenting how a request moves through the system.

A typical agent workflow may include authentication, prompt construction, retrieval, model inference, tool selection, policy validation, tool execution, and response delivery.

Each stage has different security implications.

Authentication establishes who initiated the request. Retrieval determines which information becomes available to the agent. Tool authorisation determines which operations are permitted. Execution records show what actually occurred.

Document the systems involved, the data each component can access, and the controls responsible for protecting it.

Do not limit the audit boundary to the model API. The tools connected to the agent may have a greater impact on the organisation than the model itself.

Create Structured Logs for Agent Actions

An AI system needs an execution history that can be queried and reviewed.

Capture the request ID, authenticated principal, tenant, agent version, model identifier, tool name, timestamp, policy result, and execution status.

For retrieval workflows, record source-document references where necessary. For sensitive operations, preserve the relevant approval and execution records.

Keep model-generated explanations separate from verified application events. An agent's statement that it deleted a record is not evidence that the deletion occurred.

The audit trail should reflect the actual response from the underlying system.

Protect Audit Records From Unauthorised Changes

Logs are useful only when their integrity can be trusted.

Restrict write access, separate operational administration from audit administration, and monitor changes to logging configuration.

Depending on the risk profile, use append-only storage, centralised log collection, integrity checks, or tamper-evident mechanisms.

Define retention periods and ensure that sensitive prompts or retrieved documents are not collected unnecessarily. Auditability should not become a reason to duplicate confidential information across multiple systems.

Enforce Security Controls Outside the Model

An AI agent should not decide for itself whether it is authorised to perform a sensitive operation.

Use application-level policy checks for permissions, transaction limits, tenant boundaries, and approval requirements.

For example, an agent may be allowed to draft a refund recommendation but not execute the refund until an authorised service or reviewer approves it.

Use narrowly scoped credentials, validate tool parameters, and apply rate limits. Test whether the application continues to reject unauthorised actions when the model receives adversarial instructions.

Demonstrate Operating Effectiveness

Type II readiness requires evidence that controls operate consistently over the examination period.

Useful evidence may include access reviews, deployment approvals, security alerts, incident records, vulnerability remediation, backup-restoration tests, and samples of approved sensitive operations.

Automate evidence collection where possible, but do not confuse automated collection with proof that a control is effective.

For example, a dashboard showing that access reviews were scheduled does not demonstrate that inappropriate permissions were removed.

Treat Model and Prompt Changes as Production Changes

A new model version or prompt template can change tool selection, response structure, and failure behaviour.

Version prompts, agent definitions, tool schemas, and model configurations. Require appropriate review before deployment and preserve rollback procedures.

Run regression tests after meaningful changes, especially for sensitive workflows. Document the test results and investigate failures before releasing the updated system.

Conclusion

SOC 2 readiness for production AI agents depends on the ability to demonstrate how the system operates, not merely how it was designed.

An effective auditability framework connects structured execution records, deterministic security controls, change management, and evidence of operating effectiveness.

When these capabilities are part of the production architecture, AI agent behaviour becomes easier to investigate, govern, and explain during an audit.

Ready to start your project?

Have a project in mind? We'd love to hear about it. Tell us what you're building and let's explore what's possible.

Email

hello@globalnodes.com

WhatsApp

+91 9873388887

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.