Back to Blog
SOC 2 Compliance for AWS AI/ML Workloads
Compliance Guide·12 min read·

SOC 2 Compliance for AWS AI/ML Workloads

C

Claw GRC Team

Claw GRC Team

A comprehensive guide to mapping SOC 2 Trust Services Criteria to AWS AI/ML services including SageMaker, Bedrock, and CloudTrail. Covers evidence collection, auditor walkthroughs, and common compliance gaps.

SOC 2 Compliance for AWS AI/ML Workloads

SOC 2 was designed for traditional SaaS applications. It assumes your systems have well-defined access controls, change management processes, monitoring, and incident response. AI/ML workloads break many of these assumptions. Models are not code in the traditional sense -- they are statistical artifacts that change behavior based on training data, not deployments. Training pipelines produce different outputs even with the same configuration. Monitoring model quality requires domain-specific metrics that CloudWatch does not provide out of the box.

Auditors are catching up. In 2026, SOC 2 examinations increasingly include AI-specific inquiries: how do you control access to training data, how do you manage model changes, how do you monitor model behavior in production, and how do you govern third-party foundation models like those available through Amazon Bedrock. If you cannot answer these questions with documented evidence, you have gaps.

This guide maps every relevant SOC 2 Trust Services Criterion to specific AWS AI/ML services, provides the evidence collection strategy for each, and walks through the common gaps that trip up engineering teams during auditor walkthroughs.


CC6.1: Logical Access Controls for AI Services

CC6.1 requires that logical access to information assets is restricted to authorized individuals. For AI workloads, "information assets" includes models, training data, inference endpoints, and configuration for guardrails and monitoring.

IAM Roles for SageMaker and Bedrock

Every AI service interaction should flow through a dedicated IAM role with least-privilege permissions. The most common CC6.1 failure is SageMaker execution roles with wildcard permissions.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "BedrockInvokeSpecificModels",
      "Effect": "Allow",
      "Action": [
        "bedrock:InvokeModel",
        "bedrock:InvokeModelWithResponseStream"
      ],
      "Resource": [
        "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-sonnet-4-20250514",
        "arn:aws:bedrock:us-east-1::foundation-model/amazon.titan-embed-text-v2:0"
      ]
    },
    {
      "Sid": "BedrockGuardrailsReadOnly",
      "Effect": "Allow",
      "Action": [
        "bedrock:ApplyGuardrail",
        "bedrock:GetGuardrail"
      ],
      "Resource": "arn:aws:bedrock:us-east-1:123456789:guardrail/*"
    },
    {
      "Sid": "SageMakerEndpointInvokeOnly",
      "Effect": "Allow",
      "Action": "sagemaker:InvokeEndpoint",
      "Resource": "arn:aws:sagemaker:us-east-1:123456789:endpoint/churn-predictor-*"
    },
    {
      "Sid": "DenyModelModification",
      "Effect": "Deny",
      "Action": [
        "sagemaker:CreateModel",
        "sagemaker:DeleteModel",
        "sagemaker:CreateEndpoint",
        "sagemaker:DeleteEndpoint",
        "bedrock:CreateGuardrail",
        "bedrock:DeleteGuardrail",
        "bedrock:UpdateGuardrail"
      ],
      "Resource": "*"
    }
  ]
}

This policy grants the application role exactly what it needs: invoke specific Bedrock models, apply guardrails, and call SageMaker endpoints. It explicitly denies model and guardrail modification, ensuring that changes go through a separate change management pipeline.

Service Control Policies for AI Governance

SCPs enforce organizational boundaries that individual IAM policies cannot override. Use them to restrict which AI services and models are approved for use across your AWS organization.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "RestrictBedrockModels",
      "Effect": "Deny",
      "Action": [
        "bedrock:InvokeModel",
        "bedrock:InvokeModelWithResponseStream"
      ],
      "Resource": "*",
      "Condition": {
        "ForAnyValue:StringNotEquals": {
          "bedrock:FoundationModelId": [
            "anthropic.claude-sonnet-4-20250514",
            "amazon.titan-embed-text-v2:0",
            "amazon.titan-text-premier-v1:0"
          ]
        }
      }
    },
    {
      "Sid": "RequireGuardrailOnInvoke",
      "Effect": "Deny",
      "Action": "bedrock:InvokeModel",
      "Resource": "*",
      "Condition": {
        "Null": {
          "bedrock:GuardrailId": "true"
        }
      }
    },
    {
      "Sid": "RestrictSageMakerRegions",
      "Effect": "Deny",
      "Action": "sagemaker:*",
      "Resource": "*",
      "Condition": {
        "StringNotEquals": {
          "aws:RequestedRegion": ["us-east-1", "us-west-2"]
        }
      }
    }
  ]
}

The RequireGuardrailOnInvoke statement is particularly valuable for SOC 2. It ensures that every Bedrock model invocation includes a guardrail, preventing developers from bypassing content filtering. Auditors will specifically ask whether guardrails can be circumvented -- this SCP proves they cannot.

Compliance Tip: Export your SCPs as evidence artifacts. Include them in your CC6.1 evidence package alongside IAM policy documents. The combination demonstrates both individual access controls (IAM) and organizational guardrails (SCPs). For the complete IAM and SCP guide, see AWS Cloud Security for AI Compliance.


CC6.7: Data Transmission and Encryption Controls

CC6.7 requires that data in transit and at rest is protected. For AI workloads, this covers model artifacts, training data, inference requests and responses, and vector store contents.

VPC Endpoints for AI Services

Inference traffic between your application and SageMaker/Bedrock should never traverse the public internet. VPC endpoints keep traffic on the AWS backbone.

# Create VPC endpoint for Bedrock Runtime (inference)
aws ec2 create-vpc-endpoint \
  --vpc-id vpc-ml-production \
  --service-name com.amazonaws.us-east-1.bedrock-runtime \
  --vpc-endpoint-type Interface \
  --subnet-ids subnet-private-1a subnet-private-1b \
  --security-group-ids sg-bedrock-endpoint \
  --private-dns-enabled

# Create VPC endpoint for SageMaker Runtime (inference)
aws ec2 create-vpc-endpoint \
  --vpc-id vpc-ml-production \
  --service-name com.amazonaws.us-east-1.sagemaker.runtime \
  --vpc-endpoint-type Interface \
  --subnet-ids subnet-private-1a subnet-private-1b \
  --security-group-ids sg-sagemaker-endpoint \
  --private-dns-enabled

# Create VPC endpoint for S3 (training data and model artifacts)
aws ec2 create-vpc-endpoint \
  --vpc-id vpc-ml-production \
  --service-name com.amazonaws.us-east-1.s3 \
  --vpc-endpoint-type Gateway \
  --route-table-ids rtb-private-1a rtb-private-1b

KMS Encryption for AI Assets

Use dedicated KMS keys for different AI asset types. Separate keys for training data, model artifacts, and guardrail configuration enable independent access control and audit trails. Tag every key with its compliance mapping (soc2-cc6.7) and asset type for auditor traceability.

Enforce encryption at the IAM level by adding a deny statement to SageMaker execution roles:

{
  "Sid": "DenyUnencryptedSageMakerResources",
  "Effect": "Deny",
  "Action": [
    "sagemaker:CreateTrainingJob",
    "sagemaker:CreateProcessingJob",
    "sagemaker:CreateTransformJob"
  ],
  "Resource": "*",
  "Condition": {
    "Null": {
      "sagemaker:VolumeKmsKeyId": "true"
    }
  }
}

This deny statement ensures that no SageMaker job can run without volume encryption. Auditors checking CC6.7 will ask whether encryption can be disabled -- this policy proves it cannot.


CC7.1: System Monitoring for AI Workloads

CC7.1 requires that the organization monitors system components and detects anomalies. For AI workloads, this extends beyond infrastructure metrics to model behavior monitoring.

CloudTrail for AI Audit Trails

CloudTrail captures all SageMaker and Bedrock API calls. Enable it in every region where AI workloads run.

# Verify CloudTrail is capturing AI service events
aws cloudtrail lookup-events \
  --lookup-attributes AttributeKey=EventSource,AttributeValue=bedrock.amazonaws.com \
  --start-time "2026-06-01T00:00:00Z" \
  --max-results 10

# Create a CloudTrail Lake event data store for AI-specific analysis
aws cloudtrail create-event-data-store \
  --name "ai-workload-audit-trail" \
  --retention-period 365 \
  --advanced-event-selectors '[
    {
      "Name": "AI-Service-Events",
      "FieldSelectors": [
        {"Field": "eventCategory", "Equals": ["Management"]},
        {"Field": "eventSource", "Equals": [
          "sagemaker.amazonaws.com",
          "bedrock.amazonaws.com",
          "bedrock-runtime.amazonaws.com"
        ]}
      ]
    },
    {
      "Name": "Training-Data-Access",
      "FieldSelectors": [
        {"Field": "eventCategory", "Equals": ["Data"]},
        {"Field": "resources.type", "Equals": ["AWS::S3::Object"]},
        {"Field": "resources.ARN", "StartsWith": ["arn:aws:s3:::ml-training-data"]}
      ]
    }
  ]' \
  --tags-list '[{"Key":"compliance","Value":"soc2-cc7.1"}]'

CloudWatch and SageMaker Model Monitor

CloudWatch provides infrastructure metrics. Model Monitor provides ML-specific metrics. Both are required for CC7.1 compliance. Configure CloudWatch alarms for three critical AI metrics:

  1. SageMaker endpoint error rate (Invocation5XXErrors in the AWS/SageMaker namespace) -- alerts when error rate exceeds threshold, indicating model serving issues
  2. Bedrock throttling (InvocationThrottles in AWS/Bedrock) -- alerts on capacity issues that affect availability
  3. Guardrail intervention spikes (GuardrailBlocked in AWS/Bedrock) -- alerts when blocked request rate exceeds baseline, potentially indicating an attack

Tag every alarm with compliance: soc2-cc7.1 and route alarm actions to SNS topics that feed your incident response pipeline. The alarm history becomes direct evidence for CC7.1.

Model Monitor complements CloudWatch by detecting ML-specific anomalies: data drift, prediction quality degradation, bias drift, and feature attribution changes. These are the metrics that distinguish AI monitoring from traditional application monitoring. For detailed Model Monitor setup, see Complete Guide to AWS AI/ML Governance.

Compliance Tip: SOC 2 auditors evaluating CC7.1 for AI systems will ask three questions: (1) How do you monitor model behavior, not just infrastructure? (2) What triggers an alert, and how quickly? (3) Show me alarm history from the past quarter. Model Monitor execution reports and CloudWatch alarm history answer all three.


CC8.1: Change Management for AI Systems

CC8.1 requires that changes to system components are authorized and managed. For AI workloads, "changes" include model retraining, guardrail configuration updates, endpoint deployments, and training data modifications.

SageMaker Model Registry for Model Versioning

The Model Registry provides a central catalog of model versions with approval workflows. Every model that reaches production must be registered and approved.

import boto3

sagemaker = boto3.client("sagemaker")

# Register a new model version in the model package group
model_package = sagemaker.create_model_package(
    ModelPackageGroupName="churn-predictor",
    ModelPackageDescription="Churn predictor v3.1 - retrained with Q1 2026 data",
    InferenceSpecification={
        "Containers": [
            {
                "Image": "123456789.dkr.ecr.us-east-1.amazonaws.com/churn-model:v3.1",
                "ModelDataUrl": "s3://ml-artifacts/churn-v3.1/model.tar.gz",
            }
        ],
        "SupportedContentTypes": ["text/csv"],
        "SupportedResponseMIMETypes": ["application/json"],
    },
    ModelApprovalStatus="PendingManualApproval",
    CustomerMetadataProperties={
        "training_data_version": "churn-training-v3-q1-2026",
        "training_job_arn": "arn:aws:sagemaker:us-east-1:123456789:training-job/churn-v3.1",
        "bias_report_url": "s3://ml-monitoring/churn-v3.1/clarify/report.html",
        "change_ticket": "JIRA-ML-2045",
        "approved_by": "",
        "approval_date": "",
    },
)

# After review, approve the model (separate IAM role required)
sagemaker.update_model_package(
    ModelPackageArn=model_package["ModelPackageArn"],
    ModelApprovalStatus="Approved",
    CustomerMetadataProperties={
        "approved_by": "ml-governance-team",
        "approval_date": "2026-06-20",
    },
)

The PendingManualApproval status ensures that no model reaches production without explicit approval. The change_ticket field links the model change to your change management system. Auditors checking CC8.1 will follow this chain: change request in Jira, model version in registry, approval record, deployment event in CloudTrail.

CodePipeline for ML Deployment Automation

Automated deployment pipelines enforce consistent change management. Configure CodePipeline with four stages: Source (triggered by new model artifacts in S3), Validation (CodeBuild runs automated bias checks and quality tests), Approval (manual approval gate with SNS notification to the governance team), and Deploy (CodeDeploy rolls out the approved model to production endpoints).

The manual approval stage is the critical CC8.1 control. It produces an auditable record of who approved the deployment, when they approved it, and what validation results they reviewed. Every stage is logged in CloudTrail, creating a complete change management trail from model registration through production deployment.


CC9.2: Vendor Management for Bedrock Foundation Models

CC9.2 requires that the organization manages risks associated with vendors and business partners. Amazon Bedrock is a sub-service: you are using foundation models built by Anthropic, Meta, Cohere, and others. Your auditor will ask how you govern these third-party models.

Documenting Bedrock as a Sub-Service

Create a vendor risk assessment for each foundation model provider you use through Bedrock:

Assessment Area Anthropic (Claude) Amazon (Titan) Evidence Source
SOC 2 Report Available via AWS Artifact AWS SOC 2 covers Titan AWS Artifact download
Model documentation Anthropic Model Card Amazon Titan documentation Provider websites
Data handling Input/output not used for training Input/output not used for training Bedrock documentation
Content filtering Via Bedrock Guardrails Via Bedrock Guardrails Guardrail configuration
Availability SLA Covered by Bedrock SLA Covered by Bedrock SLA AWS Enterprise Agreement
Geographic restrictions Bedrock region availability Bedrock region availability AWS region documentation
Model change notification Bedrock model versioning Bedrock model versioning Bedrock API version pinning

Pin your model versions to avoid unexpected behavior changes. Always specify the full model version in your Bedrock API calls (for example, anthropic.claude-sonnet-4-20250514) rather than using a "latest" alias. When a provider releases a new model version, treat the upgrade as a change management event under CC8.1. Test the new version against your quality benchmarks before updating the pinned version in production.


Evidence Collection Timeline

SOC 2 Type II requires evidence over the entire audit period, typically 6 or 12 months. AI-specific evidence must be collected on a regular cadence to demonstrate continuous compliance.

Evidence Type Frequency SOC 2 Criteria AWS Source Automation
IAM policy snapshots for ML roles Daily CC6.1, CC6.3 AWS Config Config rule evaluation
SCP policy documents Weekly CC6.1 Organizations API Scheduled Lambda
VPC endpoint configurations Weekly CC6.7 EC2 API Config rule evaluation
KMS key usage logs Daily CC6.7 CloudTrail CloudTrail Lake query
CloudTrail AI service events Daily CC7.1, CC7.2 CloudTrail S3 log delivery
CloudWatch alarm history Daily CC7.1 CloudWatch API Scheduled Lambda export
Model Monitor execution reports Per schedule (hourly/daily) CC7.1 SageMaker S3 output delivery
Bedrock Guardrails intervention logs Daily CC6.1, CC7.1 CloudTrail CloudTrail Lake query
Model Registry version history On change CC8.1 SageMaker API EventBridge trigger
CodePipeline deployment history On change CC8.1 CodePipeline API CloudTrail
Model approval records On change CC8.1 SageMaker Model Registry API snapshot
Bedrock model version inventory Monthly CC9.2 Bedrock API Scheduled Lambda
Vendor SOC 2 report collection Annually CC9.2 AWS Artifact Manual download

Key Takeaway: The audit period is continuous, not point-in-time. If you have a gap in evidence collection -- for example, CloudWatch alarms were not configured for the first three months of your audit period -- the auditor will flag it as a control gap. Start collecting AI-specific evidence now, even if your SOC 2 audit period has not started yet.


Preparing for Auditor Walkthroughs on AI Systems

Auditors evaluating AI workloads will conduct system walkthroughs. Here is what to expect and how to prepare.

Common Auditor Questions

Access controls (CC6.1):

  • "Show me the IAM policy for a SageMaker user. Explain why each permission is necessary."
  • "Can a developer deploy a model to production without approval?"
  • "What prevents someone from invoking a Bedrock model without guardrails?"

Encryption (CC6.7):

  • "Show me that training data is encrypted at rest and in transit."
  • "Who has access to the KMS keys used for model artifacts?"

Monitoring (CC7.1):

  • "Show me the last 30 days of CloudTrail events for Bedrock InvokeModel calls."
  • "What happens when your model starts producing incorrect predictions?"
  • "Show me an example of a guardrail intervention from the past quarter."

Change management (CC8.1):

  • "Walk me through the process of deploying a new model version to production."
  • "Show me the approval record for the most recent model deployment."
  • "What testing occurs before a model reaches production?"

Vendor management (CC9.2):

  • "What due diligence have you performed on the foundation model providers you use?"
  • "How do you handle a situation where a foundation model provider changes their model?"
  • "Where is the SOC 2 report for your foundation model provider?"

Walkthrough Preparation Checklist

Prepare these artifacts before the walkthrough:

  1. IAM policy documents for all ML-related roles, with annotations explaining each permission
  2. SCP documents showing organizational guardrails for AI services
  3. VPC architecture diagram showing private connectivity to SageMaker and Bedrock
  4. KMS key inventory with key policies for training data and model artifact keys
  5. CloudTrail Lake query demonstrating AI service event capture
  6. CloudWatch dashboard screenshot showing ML-specific alarms and their history
  7. Model Monitor report sample from the most recent monitoring execution
  8. Model Registry screenshot showing version history and approval records
  9. CodePipeline execution history showing the deployment process with approval gates
  10. Vendor risk assessments for each foundation model provider used through Bedrock

Common SOC 2 Gaps for AI Workloads

These are the gaps we see most frequently in SOC 2 examinations involving AI systems.

Gap 1: No model change management. Teams retrain and deploy models ad hoc, without change tickets, approval workflows, or deployment pipelines. This fails CC8.1. Fix: implement SageMaker Model Registry with approval gates and CodePipeline for deployment.

Gap 2: Guardrails without evidence. Teams configure Bedrock Guardrails but do not capture evidence of their effectiveness. Auditors want to see blocked request logs, not just configuration. Fix: query CloudTrail for guardrail intervention events and export them as evidence.

Gap 3: Training data access is ungoverned. S3 buckets containing training data have overly permissive access policies, and no one monitors who accesses the data. This fails CC6.1 and CC6.3. Fix: implement Lake Formation fine-grained access controls and enable CloudTrail data events on training data buckets.

Gap 4: Model monitoring is infrastructure-only. Teams monitor CPU, memory, and latency but not model quality, bias drift, or data drift. This fails CC7.1 for AI-specific risks. Fix: configure SageMaker Model Monitor for data quality and bias drift monitoring.

Gap 5: Foundation model vendor assessment is missing. Teams use Bedrock without documenting the vendor relationship or collecting SOC 2 reports from foundation model providers. This fails CC9.2. Fix: download SOC 2 reports from AWS Artifact, document vendor risk assessments, and pin model versions.

Gap 6: No evidence of periodic review. Controls exist but there is no evidence they are reviewed and updated. SOC 2 requires ongoing monitoring (CC4.1). Fix: schedule quarterly reviews of IAM policies, guardrail configurations, and monitoring thresholds. Document the review with meeting notes and any changes made.

For the broader SOC 2 audit preparation process, including the 90-day checklist, see SOC 2 Audit Preparation. For the foundational guide to SOC 2 for AI companies, see SOC 2 for AI Companies.


How Claw GRC Automates SOC 2 Evidence Collection from AWS

Claw GRC eliminates the manual work of SOC 2 evidence collection for AI workloads:

Automated evidence collection:

  • IAM policy snapshots for all ML roles (daily via AWS Config integration)
  • SCP documents and organizational policies (weekly)
  • CloudTrail events for SageMaker and Bedrock API calls (daily)
  • CloudWatch alarm configurations and history (daily)
  • Model Monitor execution reports (per schedule)
  • SageMaker Model Registry version history and approval records (on change)
  • Bedrock Guardrails configuration and intervention logs (daily)
  • KMS key usage and policy documents (daily)
  • VPC endpoint configurations (weekly)

Pre-built SOC 2 mappings for AI:

  • CC6.1 mapped to IAM roles, SCPs, and Lake Formation access controls
  • CC6.7 mapped to VPC endpoints, KMS encryption, and S3 policies
  • CC7.1 mapped to CloudTrail, CloudWatch, and Model Monitor
  • CC8.1 mapped to Model Registry, CodePipeline, and deployment approvals
  • CC9.2 mapped to foundation model vendor assessments and version pinning

Audit readiness dashboard:

  • Real-time SOC 2 compliance score for AI workloads
  • Gap identification with specific remediation steps
  • Evidence package generation for each Trust Services Criterion
  • Auditor portal with read-only access to evidence artifacts

For the comprehensive AWS AI governance framework, see Complete Guide to AWS AI/ML Governance.


Start your SOC 2 AI compliance assessment →

CG

Get started with Claw GRC

AI-native compliance automation. 1,026+ controls. MCP-native. Free workspace, no credit card.

Start Free →