Menu
InfoQ Architecture·June 15, 2026

Governing AI in the Cloud: Securing AI Deployments with Discovery, Classification, and Policy-as-Code

This article provides a practical guide for architects on securing AI deployments in the cloud, addressing the challenges posed by "Shadow AI" and unapproved tool usage. It outlines strategies for discovering AI integrations, classifying data at creation, and enforcing policies using IAM and policy-as-code tools like OPA. The focus is on creating a robust governance framework to prevent data leaks and unauthorized AI usage while maintaining developer agility.

Read original on InfoQ Architecture

The Challenge of Shadow AI in Cloud Environments

The proliferation of AI tools, both sanctioned and unsanctioned, within cloud environments presents significant security and governance challenges. Many organizations are unaware of the extent of AI integration, leading to a widened attack surface. Developers often integrate AI APIs or self-host models for quick proofs-of-concept, which can inadvertently end up handling production traffic with sensitive data, bypassing traditional security controls and audit processes. This "Shadow AI" phenomenon necessitates a shift from reactive security measures to proactive discovery, classification, and enforcement at the infrastructure layer.

Multi-pronged Discovery Strategy for AI Integrations

Identifying all AI entry points is the foundational step. The article advocates for a multi-pronged approach combining Cloud Access Security Brokers (CASBs), service mesh telemetry, and API Gateway audit logs to gain comprehensive visibility. Each tool offers a different perspective, covering both external AI service calls and internal model deployments.

  • CASB (e.g., Microsoft Defender for Cloud Apps, Netskope): Provides immediate visibility into calls to known public AI providers (OpenAI, Anthropic, Hugging Face) from user devices. It's excellent for initial discovery and baseline creation but lacks depth on data content or internal AI deployments.
  • Service Mesh Telemetry (e.g., Istio, Linkerd, AWS App Mesh): Ideal for self-hosted AI models within Kubernetes clusters. By querying existing telemetry, architects can identify pods running AI frameworks (TensorFlow, PyTorch) and audit network policies for external egress, providing deep insight into internal AI workloads.
  • API Gateway Audit Logs (e.g., AWS API Gateway, Kong, Apigee): Serves as a choke point for auditing all requests passing through the gateway, whether to managed models, self-hosted LLMs, or traditional microservices. Requires diligent logging and aggregation to be effective.
💡

Centralizing Signals for a Unified View

For complete visibility, centralize signals from CASBs, service meshes, and API gateways into a Security Information and Event Management (SIEM) system or a data platform. This allows for a unified dashboard to track all AI usage and identify approved versus unapproved paths, transforming guesswork into actionable intelligence.

Mandatory Data Classification and Policy Enforcement

To prevent sensitive data from reaching unapproved AI models, data classification must occur at the point of creation. Modern cloud platforms offer native classification services (e.g., AWS Macie, Microsoft Purview, Google DLP) that use ML and pattern matching to automatically scan and tag content as it enters storage. This establishes a critical foundation for automated policy enforcement.

Enforcement mechanisms include Identity and Access Management (IAM) and policy-as-code tools like Open Policy Agent (OPA). IAM can restrict access to sensitive data based on its classification, preventing it from being consumed by unapproved AI pipelines. OPA allows organizations to define scalable, declarative policies that govern data flow, model access, and other AI-related operations. The challenge lies in tuning these policies to prevent data leaks without impeding productive work, emphasizing collaboration between security, engineering, and product teams.

AI GovernanceCloud SecurityShadow AIData ClassificationPolicy-as-CodeCASBService MeshAPI Gateway

Comments

Loading comments...