AI Security & Access Control | Layer 3 | T3

Layer 03 · AI governance

AI Data Security & Access Controls

Protect AI data, models, credentials and agents from misuse, leakage and attack.

Classic data security still matters: encryption, access control and key management. But AI introduces a new attack surface that traditional security controls were never designed to handle. Prompts can hijack instructions, model outputs can be treated as trusted, and AI agents can be given more access than their tasks require.
AI data security brings these protections together. It safeguards data at rest, in transit and in use while extending security controls to AI-native threats such as prompt injection, sensitive-data disclosure, excessive agency and AI agent tool poisoning.

AI data security and access control illustration

Active defence

Data protected. Access controlled. Keys secured.

AI expands the attack surface through new data flows, model interfaces, credentials, agents and automated actions. Effective AI data protection requires organisations to understand what data AI systems can access, who or what can reach them, and how much authority each model or agent has.
This layer combines five foundational controls with AI-specific safeguards to protect sensitive information, models and systems throughout the AI lifecycle.

0threat classes
0traffic encrypted
0roles scoped
0key controls

Illustrative figures for a representative estate.

Monitoring access

01 · Where it begins

AI Data Security & Access Challenges

AI security goes beyond protecting a database or restricting access to an application. Organisations need to understand how data moves through AI systems, what models can access, and what an AI agent can do when something goes wrong.
Five questions determine whether an AI environment is properly protected. Each one points to a core control in this layer.

02 · The controls, explained

Five Controls That Secure AI

Effective AI data security combines established information-security principles with controls designed for AI-specific risks. Each control provides a distinct capability, from protecting data and credentials to limiting model and agent access.

01

Encryption

Protecting data at rest, in transit and in use.

Definition

Encryption prevents sensitive AI data from being exposed if storage, networks or infrastructure are compromised.

How it works

For AI systems, this includes training datasets, embeddings, prompts, model inputs, outputs, API traffic, application databases and backups.

How we help

Modern AI environments also need to consider protection while sensitive information is being processed. For high-risk workloads, encryption-in-use technologies can provide additional protection around data during computation.

What it protects

Training and inference data
Customer and employee information
Prompts and model outputs
Vector and embedding stores
API traffic
Model credentials and secrets
Data stored in cloud infrastructure

AI security extension

Encryption does not stop prompt injection or malicious model behaviour, but it limits the value of stolen data and strengthens the security boundary around AI workloads.

02

Anonymisation

Ensuring models see only the information they need.

Definition

The safest sensitive information is often information the model never receives.

How it works

Anonymisation, pseudonymisation and context minimisation reduce the amount of personal or confidential information exposed to AI systems. This strengthens AI data privacy while reducing the consequences of a model, application or agent being compromised.

How we help

Instead of sending an entire customer record to a model, an application can provide only the fields required to complete the task.

What it protects

Personal information
Customer records
Financial information
Healthcare information
Employee data
Confidential business information
Sensitive identifiers

AI security extension

Data minimisation also reduces the impact of prompt injection and data exfiltration because an attacker cannot extract information that the model never receives.

03

Role-Based Access

Controlling who and what can reach models and data.

Definition

AI access controls determine which users, applications, services and agents can interact with specific models, datasets, tools and systems.

How it works

ARole-based access control provides a structured foundation by assigning permissions according to defined responsibilities.

How we help

For more dynamic environments, organisations can extend this with attribute-based access control, evaluating factors such as identity, device, location, workload, sensitivity and context.

What it controls

Model access
Dataset access
Vector database access
AI tools
APIs
Production systems
Administrative functions
Agent capabilities

AI security extension

AI systems need identities of their own. An agent should not automatically inherit the permissions of the person who created it or the application in which it operates.

04

Least privilege

Minimising the blast radius and the risk of excessive agency.

Definition

Every AI system should have only the permissions required to perform its intended task.

How it works

Least privilege becomes especially important when AI moves from responding to users to taking actions. An agent with access to customer records, payment systems, email, databases and internal applications can create significant damage if its instructions are manipulated.

How we help

Permissions should therefore be scoped to the smallest practical set of resources and actions.

What it limits

Unnecessary system access
Agent capabilities
Tool permissions
Database operations
API access
Administrative functions
High-impact actions

AI security extension

Least privilege is the primary defence against excessive agency. When an AI system is compromised, restricted permissions limit what it can reach and what it can do.

05

Key management

Governing the secrets that protect everything else.

Definition

AI systems depend on credentials to access models, databases, APIs, cloud platforms and external services.

How it works

Poorly managed API keys can create both security and financial risks. A leaked model credential can expose sensitive information or allow an attacker to generate large volumes of model requests.

How we help

AI Secrets Management should therefore include secure storage, rotation, access control, monitoring and revocation.

Key controls include

Centralised secret storage
Automatic credential rotation
Per-service credentials
Key expiry
Access logging
Separation of duties
Emergency revocation
Usage and spend limits

AI security extension

Model credentials should be treated as production secrets, not application configuration. Every key should have an owner, defined scope, and clear lifecycle.

Threat coverage

AI-Native Threats × the Controls That Meet Them

Traditional security controls remain essential, but AI introduces threats that require additional safeguards. The matrix below shows how core security controls address common AI-native risks.

NonePartialGoodStrong

03 · A practical reference

AI-Native Threats and the Controls That Meet Them

Firewalls and encryption alone cannot stop a prompt-based attack or an AI agent from taking an unintended action.
These risks are specific to AI applications and require controls across data, models, applications, agents, and infrastructure. The following risks align with the OWASP Top 10 for LLM Applications (2026 edition, published 4 August 2026) and broader AI security practice. Agent-specific risks - including agent tool poisoning - are covered by the companion OWASP Top 10 for Agentic Applications (ASI 2026).

AI-native security risks, and how they are mitigated
RiskWhat it isPrimary mitigations
Prompt injection
LLM01:2026
Malicious instructions in user input or retrieved content attempt to manipulate model behaviour.Privilege separation, human approval, input validation and context minimisation
Sensitive-info disclosure
LLM02:2026
The model reveals personal information, credentials, confidential data or system prompts.Anonymisation, least privilege and output filtering
Excessive agency
LLM03:2026
An AI agent has more autonomy, permissions or tool access than its task requires.Least privilege, tool-scope limits and action gating
Supply-chain risk
LLM04:2026
Compromised models, datasets, adapters or dependencies introduce malicious behaviour, including hallucinated package names registered by attackers ("slopsquatting"). Provenance, registry controls and dependency review
Data and model poisoning
LLM05:2026
Training, fine-tuning or embedding data is manipulated to alter model behaviour.Data provenance, dataset validation and anomaly detection
Unbounded consumption
LLM06:2026
Runaway requests create denial-of-service or denial-of-wallet conditions.Rate limits, spend caps, monitoring and key management
Misinformation
LLM07:2026
The model produces output that is wrong but credible enough to be acted on downstream.Grounding, confidence scoring, cross-validation and human review of consequential outputs
Hidden context exposure
LLM08:2026
System prompts, retrieved policy text, tool schemas and other non-user-facing context are extracted and exposed.Secrets kept out of context, output filtering and designing so disclosure has limited impact
Vector and embedding weaknesses
LLM09:2026
Retrieval systems or embedding stores are manipulated, or cross-tenant information is inferred from similarity search.Vector-store access control, tenant isolation, anonymisation and encryption
Improper output handling
LLM10:2026
Model output is trusted, rendered or executed without validation, including into terminal, IDE and auto-fetching renderers.Output validation, sanitisation and treating model output as untrusted

Treat Model Output as Untrusted Input One of the most important principles in LLM data security is simple: model output should never automatically be treated as trusted.
An AI model can be influenced by malicious instructions contained in user prompts, documents, websites, retrieved information or tool responses. Its output should therefore be validated before it is executed, rendered into a sensitive application or used to trigger an action.
The same principle applies to AI agents. An agent should not be allowed to execute high-impact operations simply because a model generated the instruction.

03b · Standards mapping

Where Each Control Satisfies a Recognised Obligation

AI security draws on established information-security standards alongside AI-specific frameworks and guidance.
Mapping controls to recognised standards helps security, compliance and engineering teams connect AI security requirements with existing governance processes.

Security & access: control-to-standard mapping
ControlEU AI ActAI securityISO / other
EncryptionArt. 15OWASP LLM02ISO/IEC 27001 A.8
AnonymisationArt. 10 · 15OWASP LLM02ISO/IEC 27701
Role-based accessArt. 15MITRE ATLASISO/IEC 27001 A.5
Least privilegeArt. 15(5)OWASP LLM06ISO/IEC 42001 §8
Key managementArt. 15OWASP LLM10ISO/IEC 27001 A.8

04 · What AI-ready security adds

Beyond Classic Data Security

Strong information security is necessary for AI, but it is not sufficient.
Generative AI data security introduces additional requirements because models can interpret untrusted instructions, generate unpredictable outputs and interact with tools and external systems.
A secure AI deployment therefore adds controls around the model and its surrounding ecosystem.

  • Defence Against Prompt Injection Inputs, retrieved documents and third-party content are treated as potentially untrusted. Validation, context isolation and instruction hierarchy help reduce the risk of malicious instructions overriding intended behaviour.
  • Untrusted Output Handling Model output is validated before it is executed, rendered into sensitive systems or used to trigger an action.
  • Agent Identity and Scope Every AI agent has a distinct identity, defined permissions and limited tool-access scope.
  • Action Gating High-impact operations require confirmation or additional controls instead of executing automatically.
  • Consumption Limits Rate limits, quotas and spend caps protect against denial-of-service and denial-of-wallet attacks.
  • Encryption in Use Sensitive workloads can use additional protection for data during processing, where appropriate to the risk and technology environment.
  • AI Just-In-Time Access Temporary permissions can be granted only when an AI system or agent needs them, reducing the exposure created by persistent credentials and standing privileges.

From the white paper

When AI stops responding and starts acting, errors are no longer outputs. They become actions.

That is why guardrails become architecture rather than an afterthought. Least privilege becomes the blast-radius control for every AI agent. Action gating becomes a protection against unintended consequences. Monitoring becomes a way to detect abnormal behaviour before it becomes an incident.

Guardrails are enablers, not constraints.

Failure modes

How AI Access Control Fails

AI can widen the attack surface faster than traditional controls can adapt. Common failure patterns include excessive permissions, static roles and poorly designed agent guardrails.

The over-privileged agent

One agent has access to everything it might possibly need. If the agent is compromised or manipulated, the attacker inherits that reach.

Fix Apply least privilege, tool-level permissions and per-agent scope.

Title-based access

A user's job title provides access to multiple models or datasets that are unrelated to their current task.

Fix Use attribute-based access control to evaluate identity, device, location, workload and context.

No kill switch

An autonomous agent has no tested mechanism for stopping an action once execution begins.

Fix Implement fail-safe controls, emergency shutdown, rollback and safe fallback procedures.

Guardrails bolted on later

Security controls are added after deployment instead of being designed into the AI architecture.

Fix Treat guardrails as deployment architecture and measure their reliability through incidents, false positives and operational testing.

Illustrative failure patterns, not client-specific incidents.

The building blocks

Two ladders worth knowing

The vocabulary that separates mature AI access control from ordinary IAM.

The access-control ladder

Role-basedLeast privilegeAttribute-based (ABAC)Just-In-Time Access

The seven guardrails for agents

Intent & scopeInput & contextDecision transparencyAction guardrailsHuman-in-the-loopContinuous monitoringFail-safe & recovery

05 · In practice

Real-World AI Security Scenarios

AI security becomes clearer when applied to real operating environments. Each scenario below illustrates how security controls can address common AI data protection and access-control challenges.

Financial services
Retail bank · Prompt-injection exposure

Challenge

A retail bank's customer assistant retrieved information from internal knowledge articles. The organisation had not tested whether malicious instructions embedded in those documents could influence the model.

Controls applied

AnonymisationLeast privilege

Outcome

An indirect prompt-injection path was identified and closed using context minimisation. The assistant's tool permissions were also restricted so that a compromised interaction could not reach payment functions.

Key learning

Retrieved content is untrusted input. Protecting the model boundary is as important as protecting the network around it.

Healthcare
Health provider · Data minimisation

Challenge

An AI application was receiving complete patient records even though only a small number of fields were required for its task. This increased both privacy exposure and the potential impact of a security incident.

Controls applied

AnonymisationEncryptionAccess

Outcome

Sensitive fields were masked and context was minimised at the application boundary. The most sensitive workloads also adopted additional protection during processing.

Key learning

The safest data is the data an AI system never sees. Minimisation reduces both breach exposure and compliance scope.

Retail
Retail group · Agentic assistant

Challenge

A retailer deployed an agentic assistant that could take actions on customer accounts. Permissions had been granted broadly during initial deployment to make integration easier.

Controls applied

Least privilegeRole-based accessKey management

Outcome

Tool permissions were reduced to the minimum required. High-impact actions were placed behind confirmation controls, while model credentials received usage and spend limits.

Key learning

AI agents inherit the reach they are given. Least privilege needs to be designed into the system before deployment.

Technology / SaaS
SaaS platform · credential exposure

Challenge

A SaaS platform had embedded model API keys in application code without automated rotation or usage limits. A leaked credential could therefore have resulted in both unauthorised model access and uncontrolled costs.

Controls applied

Key managementLeast privilege

Outcome

Model credentials were moved into a managed secret store with rotation, separation of duties and per-key spend limits.

Key learning

Model credentials are production secrets. They can create both a cybersecurity risk and a direct financial attack surface.

Disclaimer: illustrative use cases based on anonymised real-world scenarios.

06 · Questions leaders ask

AI Data Security Q&A

AI data security is the practice of protecting AI models, prompts, training data, business information, credentials and outputs from unauthorised access, leakage, manipulation and attack. It combines traditional controls such as encryption and access management with AI-specific protections such as prompt-injection defence, output validation and agent permission controls.
AI data privacy focuses on ensuring personal and sensitive information is collected, processed and exposed appropriately when AI systems are used. Data minimisation, anonymisation, access controls and encryption help reduce unnecessary exposure.
AI access controls determine which people, applications, models and agents can access specific AI systems, datasets, tools and services. They can combine role-based permissions with attribute-based controls, least privilege and Just-In-Time Access.
Prompt injection occurs when malicious instructions are introduced through user input, retrieved documents or other content and attempt to manipulate an AI model into ignoring its intended instructions or performing an unintended task.
AI data leakage prevention requires multiple controls, including data minimisation, anonymisation, encryption, access restrictions, output validation, secrets management and continuous monitoring. Sensitive information should only be exposed to a model when it is required for the task.
Excessive agency occurs when an AI system or agent has more autonomy, permissions or tool access than its task requires. Least privilege, action gating, human approval and scoped tool access help reduce this risk.
AI Agent Tool Poisoning occurs when malicious or manipulated information influences an agent into selecting or using a tool in an unsafe or unintended way. Tool validation, allowlisting, permission scoping and human approval can reduce the risk.
AI Secrets Management is the secure lifecycle management of API keys, credentials, certificates and other secrets used by AI systems. It includes secure storage, access control, rotation, monitoring, expiry and emergency revocation.
AI Just-In-Time Access gives a model, application or agent temporary permissions only when those permissions are required. It reduces the risk associated with persistent credentials and standing access.
Secure AI deployment requires security controls across the complete AI lifecycle. This includes encryption, data minimisation, identity and access management, least privilege, secrets management, prompt-injection defence, output validation, agent guardrails, monitoring and recovery controls.
OWASP provides widely used guidance on security risks affecting large language model applications, including prompt injection, sensitive information disclosure, excessive agency and improper output handling. It helps organisations identify AI-specific threats and map them to appropriate security controls.
AI security protects the data and systems established by the data foundation layer. Model testing and assurance then challenge these controls through testing, red teaming and adversarial evaluation.

Continue through the stack

Related Layers

Next step

Next Step — Is Your AI Defended Against AI-Native Attacks?

Book an AI security review: a structured session that benchmarks your data, model and agent security against the five controls in this layer.
The review can examine encryption, anonymisation, AI access controls, least privilege and key management, alongside AI-native risks such as prompt injection, excessive agency, credential exposure and tool poisoning.

Book a review →
EMAILcontact@t-3.ai
WEBt-3.ai
UK+44 20 8087 0917
US+1 213 659 0224

Why T3

Why T3 for AI Data Security & Access Controls?

T3 is an award-winning AI implementation partner for high-risk industries.

We support the adoption of trustworthy AI across the entire lifecycle. We design and engineer bespoke AI security controls, conduct adversarial red teaming on models and AI systems, and implement end-to-end AI governance operating models.

Our approach aligns AI security with recognised frameworks and standards, including the EU AI Act, ISO/IEC 42001, and NIST AI RMF.

Where off-the-shelf GRC platforms stop, we build the custom controls, integrations and assurance that fit your technology stack, models, data and regulatory environment.

Trusted by two-thirds of BigTech and Financial Services, this is where policy meets engineering.