Expedition. Free, on-demand.

Technical tracks for practitioners, outcomes for leaders.

AI Security: A Defense-in-Depth Approach to Protecting Enterprise AI

AI systems introduce security risks that extend beyond malicious attacks, particularly when applications and agents access sensitive data and perform business operations. Learn how a defense-in-depth approach applies complementary controls across data, models, applications and agents to help protect enterprise AI.

AI SECURITY DEFINED

AI security encompasses the policies, practices and technical safeguards used to protect AI systems and their interactions with enterprise data and services. It addresses threats to confidentiality, integrity and availability and includes risks associated with model behavior, application integrations and autonomous agent actions.

According to a 2026 Cloud Security Alliance study, 53% of surveyed organizations reported that AI agents had exceeded their intended permissions. The finding points to a broader challenge in securing enterprise AI: Because AI systems access business applications and data, protecting them requires controls that govern the actions those systems are authorized to perform — not just defending against attackers.

A defense-in-depth approach addresses these requirements through overlapping protections across data, models, applications and agents. By extending established security practices to AI-specific threats and enterprise workflows, organizations can manage new risks while maintaining the governance and accountability expected of enterprise systems.

What is AI security?

AI security is the practice of protecting AI systems, the information they process and the resources they interact with against unauthorized access, disclosure, manipulation, misuse and other security risks. It encompasses training and inference data, models, applications, infrastructure and autonomous agents, along with the controls governing how these components operate together.

Much of AI security draws on established cybersecurity practices. Identity and access management (IAM) governs access to data, models and services, for example, while application and cloud security controls protect the environments where AI workloads run. AI security extends these practices to account for model behavior, dynamically assembled context and, increasingly, systems that perform actions on behalf of users. It also addresses attacks that exploit model behavior, including data poisoning, adversarial inputs and prompt injection.

These practices intersect with AI governance, which establishes organizational policies, responsibilities and oversight for AI development and use. Security provides many of the technical controls needed to enforce those requirements, while governance determines which uses are permitted and who is accountable for managing the associated risks.

Watch how Snowflake CoCo helps security and engineering teams apply governance policies and identify and address potential governance gaps early in AI workflows:

Why AI introduces new security challenges

Traditional applications generally operate through defined workflows, with developers specifying how information moves through the system and which operations are available. AI systems introduce variability in how information is interpreted and used, particularly when models process changing inputs or agents determine their own sequence of actions. Securing these systems requires accounting for the different ways information and operations move through an application.

Data moves through new workflows

Training pipelines, retrieval-augmented generation (RAG) applications and inference services process information for different purposes. Depending on the architecture, data may pass through preprocessing pipelines, retrieval indexes, external model endpoints or third-party services.

Each transition presents questions about access, confidentiality, integrity and data movement. Information approved for internal analytics, for example, isn’t necessarily approved for transmission to an external model provider. Similarly, a document included in a retrieval index shouldn’t be accessible to every user of an AI assistant simply because the application can search that index.

Model behavior depends on changing inputs

During inference, AI models generate outputs based on learned patterns and the context supplied with each request. For a generative AI application, that context may include user instructions, retrieved documents, conversation history and tool responses, some of which originate outside the application’s control.

Malicious instructions embedded in retrieved content can influence how a model responds. Through prompt injection, for example, an attacker might place instructions in a webpage that cause an assistant to disregard its assigned task or attempt to disclose sensitive information.

Even without malicious interference, models can produce inaccurate information or propose inappropriate operations. When applications use those outputs to construct database queries, invoke APIs or initiate other actions, the resulting requests need independent validation and authorization.

Agents can act across multiple systems

AI agents extend these considerations to workflows where a model selects tools, evaluates intermediate results and determines subsequent actions. Because the execution path can change from one task to the next, an agent may interact with different data sources and services depending on the information it encounters.

For an agent that retrieves customer information and updates CRM records, for example, authorization must account for the requesting user’s permissions, the agent’s identity and the operation being performed.

The security implications grow as agents connect to additional systems or coordinate with other agents. Each tool invocation introduces another point where permissions must be enforced, while changes to connected applications can alter the scope of operations an agent is capable of performing.

What are the biggest AI security risks?

AI security risks include familiar concerns such as sensitive data exposure, along with vulnerabilities associated with model behavior and autonomous operations. Some involve deliberate attacks, while others arise from configuration errors, excessive privileges or unintended system behavior.

AI security riskHow it arisesPotential consequences
Sensitive data exposureAI applications retrieve, process or transmit information without appropriate access restrictionsDisclosure of confidential, personal or proprietary data
Data and model integrityTraining records, retrieval content, model artifacts or dependencies are modified or compromisedManipulated responses, unreliable predictions or unauthorized changes to model behavior
Prompt injection and adversarial manipulationMalicious inputs or instructions influence a model’s interpretation of its taskDisclosure attempts, altered outputs or unauthorized tool requests
Excessive agent permissionsAgents receive broader access or operational authority than their tasks requireUnauthorized transactions, changes to business records or destructive operations
Model theft and extractionUnauthorized access to model artifacts or systematic queries against inference endpointsIntellectual property exposure or replication of proprietary functionality
Supply-chain compromiseVulnerable or malicious models, libraries, connectors or other dependencies enter AI workflowsCompromised workloads, unauthorized access or manipulated behavior
Uncontrolled AI usage and data movementUnapproved services, integrations or transfers operate outside established policiesPrivacy violations, regulatory exposure or loss of control over sensitive information
Insufficient visibility and accountabilityOrganizations lack adequate records of AI access, tool calls or operational decisionsDifficulty investigating incidents, enforcing policy or demonstrating compliance

The severity of these risks depends on which components are affected, how the system is used and the potential consequences of a security failure. Manipulated training data, for example, could compromise predictions across an entire application, while excessive agent permissions might allow unauthorized changes to financial records. Assessing risk requires examining both the vulnerabilities within individual components and their potential effects on connected systems and business processes.

How defense in depth works for AI security

Defense in depth uses multiple security controls to protect different parts of a system and limit the consequences if one control fails. In an AI application, these protections apply at several points throughout a workflow, from the information supplied to a model to the actions performed in connected systems.

Consider an employee who asks an AI assistant to review a supplier’s outstanding invoices and prepare a payment. Data access policies restrict which records the assistant can retrieve, while model and application safeguards help prevent malicious instructions embedded in those records from influencing the assistant’s behavior. If the assistant generates a proposed transaction, the payment service must verify that the requesting employee has the authority to submit it before proceeding. Logging and monitoring capture activity for security investigations and review.

Protect data before it reaches the model

Data security begins with controlling which information AI systems can access and how that information is used. These requirements apply to training and fine-tuning data as well as the records retrieved during inference.

In a RAG application, for example, an assistant might query both a customer database and a repository of internal contracts. Authorization needs to determine which records are available for the request before they’re supplied to the model. Filtering the generated answer afterward doesn’t provide equivalent protection, since unauthorized information has already entered the model’s context.

Several controls help protect data throughout these processes:

  • Access controls and data protection: Role-based access control (RBAC), row access policies and masking restrict access to sensitive information, while encryption protects data in storage and transit.
  • Data integrity and provenance: Source validation, controlled ingestion and integrity checks help prevent unauthorized changes to training records and retrieval content. Data lineage allows teams to trace affected information back to its source and identify downstream processes that used it.
  • Data movement restrictions: Egress controls and approved integration policies govern where information can be transmitted, including whether applications can send sensitive data to external model providers.
  • Classification and retention: Data classification identifies information requiring additional protection, while retention policies govern how long records and associated AI data are kept.

COMMON PITFALL

A common mistake is relying on output filtering to prevent sensitive data exposure in RAG applications. Once unauthorized records enter a model’s context, filtering the generated response doesn’t provide equivalent protection. Enforce access restrictions during retrieval so the model receives only information authorized for the request.

Secure model behavior and inference

Model security spans development and deployment, with controls addressing the integrity of model artifacts, access to inference services and attempts to manipulate model behavior.

Key protections include:

  • Model artifact security: Access restrictions, integrity checks and versioned model registries protect model weights, training artifacts and dependencies against unauthorized changes. Model registries also help connect deployed models to their approved versions and evaluation records.
  • Inference endpoint protection: Authentication, access controls and rate limits restrict who can use deployed models and help limit endpoint abuse, including attempts to extract proprietary model information.
  • Adversarial testing: Evaluations examine how models respond to manipulated inputs. For a fraud detection model, testing might assess whether altered transaction features produce incorrect classifications. With generative AI, it may focus on prompt injection, information disclosure or attempts to circumvent behavioral restrictions.
  • Runtime safeguards: Prompt-injection detection, input checks and guardrails help identify malicious instructions embedded in user requests, retrieved documents or tool responses.

Model-level safeguards have limitations, so applications also need to validate generated outputs before using them to construct SQL queries, API requests or other operations. The receiving systems are responsible for authorizing those requests.

Enforce application and infrastructure security

The applications and infrastructure surrounding AI models also present substantial security risks. IBM’s 2026 Cost of a Data Breach Report identified compromised APIs, applications or plug-ins, and cloud misconfigurations affecting AI workloads as two causes of AI-related breaches, each reported in 27% of such breaches.

AI applications typically connect models to databases, APIs, retrieval services and other enterprise systems. Each integration must enforce its security requirements independently of the model’s output. Consider a text-to-SQL assistant. If the model generates a query referencing a restricted financial table, the database should reject it if the application’s role lacks the required permissions.

Additional protections operate at the application and infrastructure layers:

  • Authentication and authorization: Application identities and least-privilege permissions restrict access to connected services and the operations those services permit.
  • Input validation and credential security: Validating model-generated parameters before passing them to APIs or commands helps reject malformed requests and values outside permitted constraints. Secure credential management reduces the risk of exposing secrets used by AI integrations.
  • Network and workload isolation: Network policies restrict external connectivity, while workload isolation separates applications from unrelated services and sensitive resources.
  • Sandboxing: Isolated execution environments limit the files, processes and network services accessible to AI-generated code.
  • Software supply-chain security: Approved dependencies, provenance checks and vulnerability management address risks associated with third-party models, libraries and connectors.

Govern agent identities, tools and actions

With agentic AI, security must account for systems that select tools and perform operations across multiple applications. An agent’s service credentials may provide access to resources beyond those required for a particular task, making the distinction between identity and delegated authority especially important.

Several controls govern what agents are permitted to do:

  • Agent identity and delegated authorization: Workload identities specify the service making a request, while delegated permissions establish the authority available when an agent acts on a user’s behalf. An agent’s effective permissions should reflect the task and requesting user’s authority.
  • Tool-level permissions: Policies restrict which tools and functions an agent can invoke. Permission to retrieve purchase order information, for example, doesn’t necessarily authorize submitting a purchase order.
  • Action authorization and approval: Connected services enforce requirements for individual operations, including human approval or transaction thresholds for sensitive actions such as payments, production changes and data transfers.
  • Context and memory protection: Integrity and access controls protect stored memory, retrieved content and tool responses that may influence subsequent decisions.
  • Multiagent authorization: When agents delegate tasks to other agents, the workflow needs to preserve relevant identity and authorization context rather than allowing permissions to expand across handoffs.

As deployments expand, an agentic control plane provides an architectural approach to coordinating policies, identities, tool access and activity visibility across agent environments. Individual services remain responsible for enforcing authorization over their own operations.

QUICK TIP

When configuring an AI agent, evaluate permissions at the operation level, not just the tool level. An agent authorized to retrieve purchase orders, for example, may still need separate approval to submit or modify them. Enforce those restrictions in the connected service rather than relying on the agent’s instructions alone.

Maintain visibility and recoverability

Preventive controls need to be complemented by monitoring and recovery capabilities, particularly as AI systems operate across more applications and services. In the Cloud Security Alliance’s 2026 study, only 16% of respondents expressed high confidence in their ability to detect AI agent-specific threats.

Visibility into AI activity allows security teams to investigate unexpected behavior and determine whether established protections operated as intended. This requires information from several parts of the environment:

  • Tracing and audit logs: Model and agent traces, tool invocation records and application logs provide evidence of data access and requested operations, helping security teams reconstruct activity across AI workflows.
  • Security monitoring: Detection rules and behavioral analysis identify potential policy violations, unusual access patterns and unauthorized connections. An agent retrieving substantially more sensitive information than its assigned task requires, for example, may warrant investigation even when individual requests are permitted.
  • Recovery and containment: Backups, versioned artifacts and rollback procedures support recovery from accidental or unauthorized changes. Transaction limits and approval requirements can also restrict the consequences of unintended operations.
  • Continuous security assessment: Periodic reviews and automated checks identify configuration changes, excessive permissions and risks introduced by new integrations or agent capabilities.

An agent approved to retrieve customer records, for example, may later gain access to financial information through a newly connected tool. Revisiting its permissions and monitoring requirements helps ensure that changes to the workflow don’t quietly expand its authority.

AI security frameworks and guidance

Establishing consistent AI security policies remains a challenge. IBM’s 2026 Cost of a Data Breach Report found that 68% of organizations that experienced breaches either lacked AI governance policies or were still developing them. Translating governance requirements into access restrictions, application controls and ongoing security assessments is an important part of closing that gap.

Security frameworks and industry guidance documents give organizations a consistent way to organize that work. Several established resources address different parts of AI security.

Framework or guidance Role in AI security
NIST AI Risk Management Framework (AI RMF) Provides Govern, Map, Measure and Manage functions for assessing and managing AI-related risks
NIST AI 600-1 Extends the AI RMF with a profile addressing risks associated with generative AI
MITRE ATLAS Documents adversarial AI tactics and techniques that inform threat modeling and security testing
OWASP Top 10 for LLM Applications Identifies significant security weaknesses associated with LLM applications
ISO/IEC 42001 Specifies requirements for establishing and maintaining an AI management system

These resources serve complementary purposes. An application security team might use OWASP guidance to evaluate a RAG application, while MITRE ATLAS informs adversarial testing. The NIST AI RMF supports broader risk management activities, including decisions about acceptable use, oversight and accountability.

Putting these requirements into practice involves several teams. Data owners establish access requirements for sensitive information, security teams define and evaluate safeguards, and application teams implement controls appropriate to their AI systems.

AI security posture management (AI-SPM) adds an operational perspective by providing visibility into security risks across deployed AI environments. By examining model endpoints, application configurations, agent permissions and integrations, AI-SPM tools help security teams identify exposures that may span multiple components and prioritize remediation.

The effectiveness of these practices depends on continued review. Security requirements established during development need to remain enforceable as applications reach production, incorporate new data sources and gain additional capabilities.

AI security on Snowflake

Snowflake provides data governance, access control and AI security capabilities that organizations can incorporate into their broader defense-in-depth strategies. These protections help govern how supported AI workloads access Snowflake data, interact with models and use tools, while customers remain responsible for securing their applications, integrations and connected systems.

Snowflake Horizon Catalog provides data discovery, classification, lineage and governance capabilities. When AI workloads query Snowflake-governed data, applicable role-based access controls, masking policies and row access policies restrict the information returned according to the permissions and policies associated with the request. These controls help protect sensitive information before it enters a model’s context.

For supported AI experiences, Cortex AI Guardrails provide runtime protections designed to detect and help mitigate prompt injection and jailbreak attempts. These safeguards complement data access policies and application-level authorization, reducing exposure to malicious instructions without replacing the controls governing protected information and operations.

Snowflake also provides access controls for Cortex Agents, including privileges governing which users can invoke agents and which Snowflake tools and objects they can access. Actions involving external services remain subject to the permissions and authorization mechanisms of those services.

For security posture visibility, Snowflake Trust Center provides AI-related security findings for supported Snowflake workloads. Its AI Security scanner package can identify certain configuration weaknesses and risky access patterns, helping security teams review findings and prioritize remediation. Monitoring and tracing capabilities for supported Cortex workloads provide additional visibility into AI activity.

Organizations can use these capabilities alongside their existing identity, application, infrastructure and governance controls to protect AI workflows that extend across Snowflake and other systems.

Securing AI throughout the enterprise

As AI applications gain access to more enterprise information and agents take on additional operational responsibilities, organizations need security controls that remain effective across changing workflows and connected systems.

Defense in depth provides a way to manage these risks without relying on any single safeguard. With appropriate protections built into AI development and operation, organizations can expand their use of AI while maintaining control over sensitive information and consequential business actions.

KEY TAKEAWAY

AI security requires protections that remain effective regardless of how a model responds or which actions an agent selects. Defense in depth combines data access restrictions, model safeguards, application authorization and monitoring to address both deliberate attacks and unintended security failures.

Frequently Asked Questions

Your common questions about AI security, answered by Snowflake experts.

AI security addresses threats and weaknesses involving unauthorized access, disclosure, manipulation, misuse and other security risks affecting AI systems and connected resources. AI safety addresses a broader set of concerns involving harmful behavior, unreliable outputs, alignment with intended objectives and appropriate oversight. The two disciplines overlap, particularly in areas such as adversarial testing, runtime safeguards and monitoring.

Responsibilities depend on the provider agreement and service architecture. Providers typically protect the infrastructure and services they operate, while customers retain responsibilities for enterprise information, application configurations, access permissions and integrations within their control. Organizations should review the applicable shared-responsibility arrangements before deploying sensitive workloads.

The answer depends on the provider’s terms, the service being used and its configuration. Organizations should verify the applicable requirements for model training, data retention, encryption, residency, access and deletion before sending sensitive information to an external model service.

Shadow AI refers to AI applications and services used outside established approval and governance processes. Organizations can address the associated risks by identifying unsanctioned tools, evaluating the information those tools process and enforcing appropriate data access and usage policies. Approved AI services with clearly defined security requirements can also give employees a governed way to perform legitimate tasks.

Explore AI Resources

Explore AI Topics

Deep dives into every aspect of artificial intelligence