Skip to main content

Enterprise Compliance Framework

21 min read

Provides compliance frameworks and practical mapping guides that must be followed when operating AI platforms in enterprise environments.

Why AI Compliance Is Needed​

Traditional IT Compliance vs AI Operations Compliance​

Key Difference

Traditional IT compliance deals with static systems, while AI compliance deals with non-deterministic, learning systems.

Table 1. Traditional IT compliance vs AI operations compliance

AreaTraditional IT ComplianceAI Operations Compliance
PredictabilityCode → Same input = Same outputModel → Same input may produce varying outputs
Access ControlDB/API levelModel API + Prompt + Output filtering
Audit TrailTransaction logsInference traces + Token usage
Change ManagementCode deploymentModel version + LoRA adapter + Playbook
Incident ResponseRollback + HotfixModel swap + Guardrails hardening

AI-Specific Risks​

AI-Specific Compliance Risks
  • Hallucination: Model generates factually incorrect information
  • Prompt Injection: Malicious input manipulates model behavior
  • PII Exposure: Personal information leaked from training data
  • Model Bias: Discriminatory outputs against specific groups
  • Token Abuse: Cost explosion and resource exhaustion

These risks must be mapped to existing compliance frameworks to establish actionable controls.


SOC2 Trust Criteria ↔ AI Operations Mapping​

SOC2 (Service Organization Control 2) is a global standard for verifying cloud service security, availability, and confidentiality.

SOC2 Control Mapping Table​

Table 2. SOC2 control mapping to AI operations implementation and technology stack

SOC2 ControlTrust CriteriaAI Operations ImplementationTechnology Stack
CC6.1-6.8Logical/Physical access controlModel API auth + Data access controlPod Identity + RBAC + API Key
CC7.1-7.4System monitoringInference request tracking + GPU resource monitoringLLM Tracing + AMP/AMG + DCGM
CC7.3Anomaly detection and incident responseAutomatic alerts + Playbook rollbackPagerDuty + ArgoCD
CC8.1Change managementPlaybook version control + Approval gatesGitOps + Approval Gate

CC6: Access Control Implementation Example​

The example below attaches an IAM role to the Pod using IRSA (IAM Roles for Service Accounts), which annotates the ServiceAccount with eks.amazonaws.com/role-arn. EKS Pod Identity uses the pod-identity-agent add-on and a Pod Identity association instead of this annotation, so a ServiceAccount carrying this annotation is using IRSA, not Pod Identity. The Kubernetes RBAC Role/RoleBinding below is Kubernetes resource-level authorization that only permits get/list on KServe inferenceservices; it does not authenticate or authorize model-endpoint invocation (inference calls) itself. Model-endpoint access control must be configured separately from this RBAC, through call-path authentication/authorization such as gateway API keys or token validation.

# IRSA (IAM Roles for Service Accounts) + Kubernetes RBAC: resource-level authorization example
apiVersion: v1
kind: ServiceAccount
metadata:
name: model-api-sa
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::123456789012:role/ModelAPIAccessRole
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: model-reader
rules:
- apiGroups: ["serving.kserve.io"]
resources: ["inferenceservices"]
verbs: ["get", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: model-reader-binding
subjects:
- kind: ServiceAccount
name: model-api-sa
roleRef:
kind: Role
name: model-reader
apiGroup: rbac.authorization.k8s.io
CC7.1-7.4 Implementation: LLM Tracing

Record all inference requests as auditable traces. For implementation methods, see Agent Monitoring and LLM Tracing Deployment.


ISO27001 Annex A ↔ AI Operations Mapping​

ISO27001 is the international standard for Information Security Management Systems (ISMS). The current ISO/IEC 27001:2022 Annex A reorganizes controls into 93 controls across 4 themes (the 2013 edition's 114 controls expired with the 2025-10-31 transition deadline).

ISO27001:2022 Control Mapping Table​

Table 3. ISO27001:2022 Annex A control mapping to AI operations implementation and technology stack

Annex AControl Area (2022 edition)AI Operations ImplementationTechnology Stack
A.5.9, A.8.1Asset management (organizational/technological controls)Model registry + LoRA adapter managementECR + MLflow Model Registry
A.5.15-5.18, A.8.2-8.5Access control (organizational/technological controls)API Key management + RBAC + Multi-tenant isolationkgateway + Pod Identity
A.8.15-8.16Operational security logging (technological controls)Logging + Monitoring + BackupCloudTrail + AMP/AMG + S3
A.8.25-8.31Development security (technological controls)Playbook CI/CD + Automated code reviewArgoCD + Guardrails API
A.5.24-5.28Incident management (organizational controls)Automatic detection + Automatic responseAlerts + Playbook rollback
A.5.29-5.30, A.8.14Business continuity (organizational/technological controls)Multi-AZ deployment + AutoscalingEKS + Karpenter

A.14 Implementation: Playbook CI/CD Pipeline​

Figure 1. Playbook CI/CD pipeline (ISO27001 A.14)

Expand the diagram to read labels and follow connections.
Diagram
A.16 Incident Management: Auto-Rollback Example
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: inference-api
spec:
strategy:
canary:
analysis:
templates:
- templateName: hallucination-check
args:
- name: threshold
value: "0.05" # Auto-rollback if hallucination rate > 5%

Financial Regulation Mapping​

Electronic Financial Supervisory Regulation (전자금융감독규정) Mapping​

Table 4. Electronic Financial Supervisory Regulation article mapping to AI operations and implementation

ArticleContentAI Operations MappingImplementation
Article 15Access control and authorization managementModel API authentication + Audit logsAPI Key + CloudTrail
Article 17Electronic financial transaction data encryptionData encryption + TLSKMS + ALB TLS
Article 34Transaction and transfer limit settingsToken usage limits + Rate Limitingkgateway rate-limit

Article 34 Implementation: Token Usage Limits​

apiVersion: gateway.solo.io/v1
kind: RateLimitConfig
metadata:
name: token-limit
spec:
rateLimits:
- actions:
- genericKey:
descriptorValue: "token-usage"
limit:
requestsPerUnit: 100000 # 100K tokens/hour
unit: HOUR

ISMS-P (Korean Personal Information & Information Security Management System) Mapping​

Table 5. ISMS-P item mapping to AI operations and implementation

ItemRequirementAI Operations MappingImplementation
2.6Access controlAPI Key + RBAC + Multi-factor authenticationPod Identity + MFA
2.9System and service development securityPlaybook version control + GuardrailsGit + Guardrails Stack
2.11Information security incident managementAutomatic incident detection and responseAlerts + Auto rollback
ISMS-P Related: PII Detection and Blocking

PII detection/blocking through Guardrails is a technical control that satisfies ISMS-P personal information processing and access control requirements.

For technical implementation, refer to AI Gateway Guardrails — provides implementation patterns and kgateway/Bifrost integration examples including Microsoft Presidio Korean recognizer, Bedrock Guardrails ApplyGuardrail API, and Guardrails AI DetectPII validator.


Automated Verification CI/CD Pipeline​

Figure 2. Compliance automated verification CI/CD pipeline

Expand the diagram to read labels and follow connections.
Diagram

Pipeline Stage Description​

Table 6. CI/CD pipeline stages by purpose, tool, and action on failure

StagePurposeToolAction on Failure
Unit TestsVerify functional integritypytestBlock PR
RAGAS EvalVerify RAG accuracyRAGASBlock PR if below threshold
Guardrails TestVerify PII, hallucination, biasGuardrails AIImmediate failure
Compliance CheckVerify SOC2/ISO27001 controlsCustom scriptNotify audit team
Red-teamingTest adversarial promptsGarakEscalate to security team
Approval GateManual approvalGitHub ActionsWait for approval
Compliance Check Automation Example
def check_compliance(playbook_path):
"""SOC2 CC8.1: Change management control"""
# 1. Verify approvers
approvers = get_pr_approvers()
if len(approvers) < 2:
raise Exception("Requires at least 2 approvers (SOC2 CC8.1)")

# 2. Analyze change impact
affected_models = analyze_affected_models(playbook_path)
if "production" in affected_models:
notify_audit_team(playbook_path)

# 3. Record audit log
log_to_cloudtrail(playbook_path, approvers)

Audit Data Retention Policy​

Per-Data-Classification Retention Criteria​

The retention periods in the table below are examples of an internal organization retention policy. The last column lists related controls that require log and change-history management, for reference only; it does not mean that a law or standard mandates the listed period. Before labeling any retention period as legally required, confirm the edition and provision of the applicable regulation or standard, the data class it covers, and whether it applies to your organization; the provision mapping and periods in this table have not gone through that check (unverified as of 2026-10-29).

Table 7. Audit data retention location, period (example organization policy), access authority, and related control by classification

DataStorage LocationRetention Period (example org policy)Access AuthorityRelated Control (reference)
Inference tracesLLM Tracing + S33 yearsAudit team, DevOpsISO27001 A.12.4
API call logsCloudTrail + S35 yearsSecurity team, Audit teamElectronic Financial Supervisory Regulation (전자금융감독규정) Article 19
Model change historyGit + ECRPermanentDevOps, ML teamSOC2 CC8.1
GPU metricsAMP + S31 yearOperations teamInternal policy
PII detection logsCloudWatch + S33 yearsSecurity team, Compliance teamISMS-P 2.11

S3 Lifecycle Policy Example​

The rule below scopes transitions and expiration to inference-trace objects only by specifying the inference-traces/ prefix in Filter. Without a Filter, the expiration rule applies to the entire bucket and could delete other data classes after 1095 days (3 years) — including API call logs whose retention period is set to 5 years. Separate each data class by prefix and keep a distinct rule matching that class's retention period. Also validate this rule against the target bucket's versioning and Object Lock settings before applying it, to confirm expiration does not delete versions or objects that must be retained.

{
"Rules": [
{
"Id": "inference-trace-lifecycle",
"Status": "Enabled",
"Filter": {
"Prefix": "inference-traces/"
},
"Transitions": [
{
"Days": 90,
"StorageClass": "STANDARD_IA"
},
{
"Days": 365,
"StorageClass": "GLACIER"
}
],
"Expiration": {
"Days": 1095
}
}
]
}
Ensuring Audit Data Integrity
  • S3 Object Lock: Prevent deletion (WORM mode)
  • CloudTrail Validation: Verify tampering with aws cloudtrail validate-logs
  • Distinguish operational telemetry from audit evidence: Traces in LLM tracing systems such as Langfuse are mutable, deletable operational telemetry and are not immutable (WORM) audit evidence by themselves. To use them as audit evidence, export the traces to a separate store with retention and tamper protection applied — for example, an S3 Object Lock bucket, or integrity guaranteed through CloudTrail digests.

Practical Checklists​

SOC2 Audit Preparation​

  • CC6.1-6.8: Pod Identity + RBAC configuration complete
  • CC7.1-7.4: LLM Tracing + AMP/AMG monitoring built
  • CC7.3: PagerDuty alerts + Auto rollback configured
  • CC8.1: GitOps + Approval Gate applied

ISO27001 Certification Preparation​

  • A.8: MLflow Model Registry built
  • A.9: kgateway + API Key management system
  • A.12: CloudTrail + S3 audit log retention
  • A.14: CI/CD pipeline automated verification
  • A.16: Incident response Playbook created
  • A.17: Multi-AZ + Karpenter autoscaling

Financial Regulation Compliance​

  • Electronic Financial Supervisory Regulation (전자금융감독규정) Article 15: API access control
  • Electronic Financial Supervisory Regulation (전자금융감독규정) Article 17: TLS + KMS encryption
  • Electronic Financial Supervisory Regulation (전자금융감독규정) Article 34: Rate Limiting
  • ISMS-P 2.6: MFA applied
  • ISMS-P 2.9: Guardrails API integration
  • ISMS-P 2.11: Automated incident response

References​