AI infrastructure · Engineering notes

Private AI needs more than a private endpoint.

Model files, serving routes, shared caches and tool permissions create different security boundaries.

Aceman engineering4 min read
In this guide
Four boundaries to reviewEach boundary needs its own implementation and evidence.
  1. 01
    Artefacts

    Trusted origin, revisions and loading code

  2. 02
    Serving

    Routes, network and administration

  3. 03
    Customer data

    Retrieval, caches, logs and results

  4. 04
    Actions

    Permissions, validation and approval

Treat the model release as software

A deployment includes weights, loaders, tokenizers, templates and dependencies. Hugging Face recommends safetensors and reviewing remote model code, with a fixed revision when remote code is needed. Safer weight serialization does not make arbitrary Python code safe. Record where each artefact came from, what was reviewed and how it reaches the runtime. Build and test with restricted credentials. Do not give a model-loading process access to production secrets merely because downloading the weights is convenient.

References: Hugging Face Transformers security policy

Protect routes, not just the familiar API

vLLM’s current security guidance warns that its API-key option does not secure every HTTP route, and that internal multi-node communications require network protection. Put the service behind explicit access controls and expose only the routes the application needs. Review the actual routes in the deployed version, including extensions. Our suggested acceptance check is to test approved and unapproved paths from outside the worker environment, rather than assuming a working authenticated chat request proves the rest is protected.

References: vLLM security guidance

Decide what customer isolation means

vLLM states that callers sharing one server process do not have a general tenant-isolation boundary. Cache salting addresses a narrower prefix-cache risk. If isolation is required, consider separate instances and an architecture that enforces it. Where cache identifiers are used, the trusted backend should control their scope; callers should not choose another customer’s identity. Also review retrieval storage, logs and job results. Isolating inference does not repair an application that retrieves the wrong customer’s documents.

References: vLLM security guidance

Follow the research without borrowing its guarantees

The NDSS 2026 paper Cache Me, Catch You examines security problems across prefix, multimodal and semantic caches. It supports treating cache behaviour as part of the threat model, rather than only a performance setting. A November 2026 preprint, Mirage, studies a different timing-side-channel mitigation. These are results under the authors’ assumptions. They do not establish that a particular deployment is safe, nor that a proposed defence is ready to install. Use them to identify review questions and tests for your chosen stack.

References: Cache Me, Catch You, NDSS 2026 · Mirage, submitted 7 November 2026

Keep model instructions separate from authority

NIST’s adversarial-ML taxonomy covers risks including prompt injection, poisoning and privacy attacks. In an application, retrieved documents and model output should not decide who may access a record or which action is authorised. Enforce document access before retrieval, validate tool arguments and recheck permissions when the tool runs. A confirmation screen should identify the exact action and destination. If the model is deceived, the application should still limit what it can read and change.

References: NIST AI 100-2e2025: adversarial machine learning

Include resource abuse and operational access

Bound input size, output size, simultaneous work and repeated failures. Review outbound network access for media fetching and tools, plus who can upload adapters or change the model configuration. Separate deployment credentials from runtime credentials. Keep administrative access auditable and define how to revoke it. These are proposed deployment controls; their implementation depends on the platform, threat model and service requirements. Passing one prompt-injection test does not validate the infrastructure.

Make the security claims testable

Replace a broad label such as “secure private AI” with the boundaries you can demonstrate: which identities can call it, which data each tenant can retrieve, what is logged, and what a worker may reach. Keep the version and test conditions with the evidence. Repeat relevant checks after model, engine, retrieval or tool changes. Use the review below to turn those boundaries into acceptance checks.

AT THE DESIGN REVIEW

Checks worth doing before handling customer data

Use synthetic records and authorised test accounts. Record failures as well as successful checks.

Tenant separation

CheckAsk one test account for another account’s synthetic record.

Evidence to keepNo unauthorised retrieval, cache reuse or result access.

Route exposure

CheckCheck external access against the approved route list.

Evidence to keepManagement and internal routes are unavailable externally.

Tool authority

CheckProvide content that asks for an unapproved action.

Evidence to keepThe backend refuses the action regardless of the generated text.

Supply chain

CheckRebuild from the recorded manifest.

Evidence to keepThe intended model, loader and image versions are reproduced.

Resource limits

CheckSubmit work beyond the documented limits.

Evidence to keepBounded cost and a clear failure response.

Sources and editions

Checked on 11 November 2026. Links support the technical discussion; the review examples are Aceman’s engineering analysis.

  1. Hugging Face Transformers security policy Maintainer guidance on model files and remote code
  2. vLLM security guidance Current maintainer guidance; checked 11 November 2026
  3. Cache Me, Catch You, NDSS 2026 Conference research paper on cache security in LLM serving
  4. Mirage, submitted 7 November 2026 Research preprint; not a production assurance
  5. NIST AI 100-2e2025: adversarial machine learning Attack and mitigation taxonomy, March 2025

Related experience: see the project and Aceman’s responsibility

Written by Aceman

UK software engineering across embedded systems, AI infrastructure and applications. Meet our founder and see his experience.