Insights · For audit firms
Testing AI and LLM controls in a SOC 2 engagement: a checklist for audit firms
By TensorVault · · 6 min read
SOC 2 has no separate criteria for AI. When a client's product sends data to a large language model, the existing Trust Services Criteria still apply: logical access, data transmission, vendor management, change management, monitoring and confidentiality. This checklist shows where AI features land in those criteria, which controls to look for, what evidence to request, and what usually goes wrong.
Why AI features need a closer look
Many SaaS companies added AI features quickly: a chat assistant, document summaries, an agent that takes actions in the product. These features often run on a model provider's API, which means customer data leaves the client's environment on every request.
The controls around that flow are usually newer and less documented than the rest of the system. A service commitment may say customer data isn't shared with third parties while the application sends support tickets to a model API. The gap is often in the code and the API configuration, where standard evidence requests don't usually reach.
Start with the system description
Before testing controls, confirm the AI features are inside the scope management is reporting on.
- Are AI features and the model providers named in the system description?
- How has management presented each model provider: as a vendor, or as a subservice organization? Is that treatment appropriate for how the client depends on it?
- If a provider is carved out, are the complementary subservice organization controls (CSOCs) the client relies on described and plausible?
- Do the service commitments and system requirements cover how customer data is used in AI features?
- Do the data flow diagrams show data going to the model provider, and coming back?
If AI features are missing from the description, that's a description gap to raise with management early, before control testing starts.
The checklist
Each row starts with the control to look for. If the client has no such control, the gap belongs in the risk assessment or the system description discussion rather than in control testing.
| Area | Control to look for | Evidence to request | Related criteria |
|---|---|---|---|
| Vendor risk | Model providers are inventoried and assessed before use and periodically. Contract terms on training use and data retention are reviewed. | Vendor inventory, completed vendor assessments, provider SOC 2 reports and their review, signed terms or DPA | CC9.2 |
| Data sent to models | A defined rule limits what customer data is included in prompts, with masking or removal where needed, enforced in the application. | Data flow diagram, data classification, configuration or code that enforces the rule, results of testing it | CC6.7, C1.1 |
| API keys and model access | Provider API keys are kept in a secrets manager, separated by environment, with access restricted and reviewed. | Secrets manager configuration, access list and access review, rotation records | CC6.1, CC6.3 |
| Tenant isolation | Prompts, retrieval indexes and cached responses are scoped to the requesting customer. | Architecture documentation, access logic for retrieval and vector stores, isolation test results | CC6.1 |
| Agent and tool permissions | AI actions (calling APIs, querying databases, sending email) run with the requesting user's permissions, not a broad service account. | Service account permissions, tool definitions, authorization checks, test results | CC6.3 |
| Prompt injection | Untrusted input (user text, uploaded files, web content) is treated as a threat, with limits on what the model can access or do as a result. | Threat model or risk entry, input and output handling, security test or penetration test results | CC6.6, CC7.1 |
| Logging and monitoring | AI requests are logged with who asked, what data was used and what the model did, and anomalies generate alerts that are reviewed. | Log samples, monitoring rules, alert history and follow-up | CC7.2 |
| Logs as a data store | Prompt and response logs are classified as confidential, with restricted access and a defined retention period. | Log access list, retention settings, disposal records | C1.1, C1.2 |
| Change management | Prompt changes, model version changes and provider switches follow the change process, with review and approval. | Change tickets, pull requests for prompt and model configuration, approval records | CC8.1 |
| Risk assessment | The risk assessment covers AI features and model providers and was updated when AI features launched or changed. | Risk register, risk assessment minutes or reports | CC3.2, CC3.4 |
| Privacy (if in scope) | Personal information used in AI features is covered by notice, consent where required, and use limits consistent with the privacy commitments. | Privacy notice, consent records, data use inventory | P series |
| Output quality (if in scope) | Where Processing Integrity is in scope, model outputs are checked for accuracy and completeness before they're relied on. | Evaluation results, human review steps, error handling | PI1 series |
Criteria references follow the AICPA 2017 Trust Services Criteria (revised points of focus, 2022). Map them to your firm's own control matrix.
For a Type 2 report, these controls need to operate across the whole period. Prompt-change approvals, access reviews for API keys and reviews of AI alerts should show up throughout, not only in the weeks before fieldwork.
Common red flags in AI-built products
- One shared API key used across development, staging and production, often stored in an environment file in the repository.
- No inventory of model providers. Engineers added a second provider for one feature, and nobody updated the vendor list.
- Full records in prompts. The application sends whole customer records when it only needs a few fields.
- Prompts changed outside the release process. Prompt text lives in a database or an admin panel and changes without review.
- Prompt logs nobody owns. Prompts and responses are logged for debugging, with production customer data, and no retention limit.
- Agents running with admin rights. A model that can call internal APIs uses a service account with broad access instead of the requesting user's permissions.
- Commitments and code disagree. Service commitments in the system description or customer contracts describe data handling the code doesn't match.
What good looks like
A client that handles this well can usually show:
- A current list of model providers, each with an assessment and contract terms on training and retention.
- A data flow for each AI feature, showing what's sent and what's removed first.
- Keys stored in a secrets manager, separated by environment, with limited access.
- AI actions limited to the permissions of the user who triggered them.
- Prompt and model changes going through the same review as code.
- Logs that support investigation without becoming an uncontrolled copy of customer data.
Where a technical reviewer fits
Much of the evidence for these controls lives in code, cloud configuration and API settings. Some firms test it with their own IT audit staff. Others bring in a practitioner's specialist for clients with complex AI features, and evaluate that specialist's competence, objectivity and work under the attestation standards.
TensorVault does this work for audit firms. We review the client's code, cloud setup and AI data flows with read-only access, within the scope your firm sets, and give your team findings mapped to the Trust Services Criteria. Your firm decides how to use that work. We don't audit, attest or issue reports, and we don't build or fix systems for clients we review on your behalf.
FAQ
Questions auditors ask
Does SOC 2 have specific criteria for AI?
No. SOC 2 uses the same Trust Services Criteria for AI features as for the rest of the system. AI features mostly affect logical access, data transmission, vendor management, change management, monitoring and confidentiality.
Should an LLM provider be a vendor or a subservice organization?
It depends on how the client relies on it. Management identifies subservice organizations in its system description and chooses the carve-out or inclusive method. Your firm evaluates whether that treatment is appropriate for the engagement.
Is a model provider's SOC 2 report enough?
No. Check that the report covers the specific service the client uses and how much of the period it covers. Check that the client has implemented the complementary user entity controls (CUECs) the report lists. The report also doesn't show what data the client sends, how keys are managed, or whether prompts and responses are logged safely. Those are the client's controls.
Are prompt changes really changes under CC8.1?
If a prompt change can alter what data the system accesses or what actions it takes, it changes system behavior. Treating prompts and model settings as configuration under change management is a reasonable expectation.
Do ISO/IEC 42001 or NIST AI RMF replace this?
No. They are AI governance frameworks a client may also follow. They can support a client's risk assessment, but the SOC 2 report is still tested against the Trust Services Criteria.