Search
Mobile menu Mobile menu
Security , AI Strategy , Data science & AI Sep 21, 2026

The Inference Gap: Why Encrypting AI Prompts at Rest and in Transit Is Not Enough for Enterprise Security Teams

VECTOR Labs Team
VECTOR Labs Team
The Inference Gap: Why Encrypting AI Prompts at Rest and in Transit Is Not Enough for Enterprise Security Teams
Last updated on: Sep 22, 2026

Enterprise security teams have spent years building layered encryption strategies, and most have done it well. TLS in transit, AES-256 at rest, key management policies that would satisfy any auditor. What those controls do not address is the moment a hosted AI model actually reads your data. At inference time, the prompt is decrypted into plaintext, loaded into GPU or CPU memory, and processed in an environment that the enterprise does not control. That window is where the real exposure sits, and closing it requires a different class of architectural decision than encryption policy alone can provide.

What Encryption Does Not Cover

Encryption protects data while it moves between systems and while it sits on disk. It is not designed to protect data while it is being used. This distinction is fundamental to cryptography and is not a vendor limitation. It is a property of how computation works.

When a hosted model receives a prompt containing regulated data, that prompt must be decrypted before the model can process it. The decrypted content lives in memory on infrastructure owned and operated by the model provider. Hypervisors, orchestration layers, and privileged operators on that infrastructure can, in principle, access that memory. Whether any given provider has strong controls against that access is a separate question from whether the structural exposure exists. It does.

The Plaintext Memory Problem at Scale

The exposure surface grows with usage volume. A single enterprise deployment sending thousands of prompts per day creates a persistent plaintext memory footprint across shared inference infrastructure. Each prompt represents a discrete window of exposure, and those windows accumulate.

GPU memory is particularly relevant here. Large language models run on GPU clusters where memory is pooled and reused across inference requests. Without explicit memory isolation and scrubbing between requests, residual data from one inference run can persist in memory regions allocated to the next. Most hosted inference APIs do not publish their memory isolation guarantees at this level of specificity, which means security teams are making implicit trust assumptions they may not have consciously evaluated.

The commercial implication is straightforward. If your organisation processes HIPAA-covered health data, PCI-scoped payment records, or proprietary deal information through a hosted model, the question is not whether your TLS configuration is correct. The question is what happens to that data after decryption and before the response is returned.

The Identity Federation Attack Surface

The inference gap does not begin at the model API. It begins at authentication. Most enterprise AI deployments federate identity through SSO, connecting corporate identity providers to model provider accounts via SAML or OIDC. That chain introduces a category of risk that sits upstream of any inference-time control.

SSO Token Exposure

A compromised SSO token grants access to the model provider account with the same permissions as the federated user. If that user has broad prompt access or can retrieve conversation history, the attacker inherits that access without touching the model provider's own authentication systems. The OpenAI internal systems breach, which involved a threat actor accessing internal discussion forums through a compromised employee account, illustrates how identity federation creates lateral movement paths that bypass infrastructure-level controls entirely.

Privilege Scope and Least-Access Configuration

Federation configurations in enterprise AI deployments frequently inherit overly broad permission scopes from initial setup. Access reviews that cover SaaS applications often do not extend to AI API credentials or model provider accounts with the same rigour. The result is a set of standing privileges that exceed operational requirements and expand the blast radius of any credential compromise.

Confidential Computing as a Structural Response

Confidential computing addresses the plaintext memory problem at the hardware level by executing computation inside a trusted execution environment (TEE). A TEE isolates the memory used during inference from the hypervisor, the host operating system, and privileged operators. The model provider cannot read the contents of the enclave, even with root access to the underlying host.

TEE-Based Inference

TEE-based inference is available from a small number of providers and is an active area of development across cloud infrastructure. The trade-off is performance. TEEs introduce overhead in memory bandwidth and context switching, which translates to higher latency and lower throughput at inference time. For latency-sensitive applications, that cost is material.

Single-Tenant Inference Deployments

Single-tenant inference deployments offer a different approach. Rather than shared infrastructure with isolation guarantees, the enterprise runs the model on dedicated compute that no other customer's workloads share. This eliminates cross-tenant memory exposure and gives the security team a clearer boundary to audit. The trade-off is cost and operational overhead. Single-tenant deployments are significantly more expensive and require the enterprise to manage more of the infrastructure stack, including model updates and availability.

Neither approach eliminates all risk. TEEs protect memory but require trusting the TEE implementation and the attestation process. Single-tenant deployments reduce shared-infrastructure exposure but shift operational responsibility to the enterprise team.

The Security Decisions That Must Precede Deployment

Before regulated data touches a hosted model, security teams need answers to a specific set of questions that are distinct from standard vendor security reviews.

The first is memory isolation. Does the provider offer documented, auditable guarantees about memory scrubbing between inference requests, and at what layer of the stack are those guarantees enforced?

The second is operator access. What access do privileged operators at the model provider have to in-flight inference data, and is that access logged and auditable by the enterprise?

The third is identity chain scope. What permissions does the federated identity configuration grant, and when were those permissions last reviewed against the principle of least access?

The fourth is data residency during inference. In which geographic regions does inference execution occur, and does that create regulatory jurisdiction exposure for the data being processed?

These questions do not have universally correct answers. They have answers that are either acceptable or unacceptable given the sensitivity classification of the data involved and the regulatory framework the organisation operates under. The security decision is matching data classification to inference architecture, not assuming that a provider's SOC 2 certification covers the inference-time exposure described here.

Where Vector Labs Fits

We build and certify AI systems for environments where the cost of a security or compliance failure is not recoverable. In our cardiovascular certification work, we delivered a Class 2A medical device certified model on wearable ECG data, with validation structured from the outset to meet medical device software standards. If you are evaluating inference architecture for regulated data environments, contact us at vector-labs.ai/contacts.

FAQs

Does a SOC 2 Type II certification from our AI provider mean our inference data is protected?

SOC 2 Type II covers a provider's internal security controls, availability, and confidentiality practices as assessed by an auditor at a point in time. It does not certify that in-flight inference data is isolated from hypervisor access or privileged operator visibility. You need to ask the provider directly about memory isolation guarantees at the inference layer and request documentation of operator access controls, not rely on SOC 2 scope as a proxy for that assurance.

What is the practical difference between confidential computing and a single-tenant inference deployment?

Confidential computing uses hardware-level trusted execution environments to isolate inference memory from the host and hypervisor, even on shared infrastructure. Single-tenant deployments eliminate shared infrastructure entirely by running the model on dedicated compute. TEEs offer stronger cryptographic isolation guarantees but introduce latency overhead. Single-tenant deployments are easier to audit and integrate with existing network security controls but carry significantly higher cost and operational complexity.

How does SSO federation increase our AI security exposure?

SSO federation means a compromised corporate credential can grant an attacker access to your model provider account and any prompt history, fine-tuning data, or API keys stored there. The attack does not need to breach the model provider directly. It only needs to compromise the federated identity. Reviewing the permission scopes granted through federation, enforcing MFA on the identity provider, and conducting regular access reviews on AI platform accounts are the primary mitigations.

Are there inference architectures that eliminate the plaintext memory exposure entirely?

No current architecture eliminates it entirely. Computation requires decryption, and decrypted data occupies memory during processing. TEEs reduce the attack surface significantly by limiting who can access that memory, but they require trusting the TEE implementation and the hardware attestation chain. Fully homomorphic encryption, which would allow computation on encrypted data, remains computationally impractical for LLM inference at production scale as of 2026. The honest answer is risk reduction, not elimination.

What data classifications should trigger a review of inference architecture before deployment?

Any data that carries a regulatory obligation should trigger that review: HIPAA-covered health information, PCI-scoped payment data, personally identifiable information under GDPR or state privacy laws, and export-controlled technical data under ITAR or EAR. Beyond regulatory scope, proprietary data whose disclosure would create material competitive harm warrants the same scrutiny. The classification threshold should be set by the data governance team, not the team deploying the model.

A team that understands you
With 20+ years of experience in the world's leading consultancy companies, implementing AI and ML projects in industry-specific contexts, we are ready to hear your challenges.
Subscribe to our newsletter for insights and updates on AI and industry trends.
By clicking "Sign me up", you agree to our Privacy Policy.
By clicking the Accept button, you are giving your consent to the use of cookies when accessing this website and utilizing our services. To learn more about how cookies are used and managed, please refer to our Privacy Policy and Cookies Declaration