Architecture · Secure AI Principles

Six Principles for Secure Enterprise AI

The non-negotiables for any AI system operating in a regulated, high-stakes environment.

The following principles are not aspirational. They are prerequisites for any organization deploying AI systems in environments where decisions carry consequences — regulatory, fiduciary, reputational, or operational.

Before enumerating them, it is worth addressing a structural problem with how security is typically operationalized. In most organizations, security functions as a gate — a review board, a sign-off step, a ticket queue that sits between development and deployment. This model was already strained by the pace of modern software development. It is fundamentally incompatible with the pace of enterprise AI.

AI systems are updated continuously. Models are fine-tuned. Knowledge bases are refreshed with new documents. Integrations are added. Prompts are revised. Retrieval logic is adjusted. The deployment cycle is not quarterly releases — it is continuous ingestion, continuous learning, continuous change. Security that operates on a slower cycle than the system it protects is not security. It is a retrospective audit of risks that have already materialized.

The alternative is security as architecture — controls that are embedded in the system's design and that operate at the same speed as the system itself. Input sanitization that runs on every document at ingestion, not once per audit cycle. Access controls that are enforced programmatically at every layer, not reviewed manually on a schedule. Integrity verification that is continuous, not periodic. Monitoring that is real-time, not retrospective.

This is not a call to remove humans from security governance. It is a recognition that the humans governing AI security need automated, architectural controls that keep pace with the systems they are responsible for. The six principles that follow are designed to be operationalized at AI speed — not as policies written in a document, but as properties built into the system.

1. Least privilege by default

Every component in an AI system should operate with the minimum access required for its function. The model's inference service should not have write access to the database that stores its prompts. The document ingestion pipeline should not have access to user credentials. The API gateway should not expose endpoints that the application does not actively use.

Least privilege is not a new principle. It is one of the oldest in information security. Its absence in AI deployments is not excusable on the grounds that AI is new. It is a failure to apply what is already known.

2. Zero trust for ingested data

Every document, image, email, web page, and API response that enters an AI system should be treated as potentially hostile. This is the zero-trust model applied to the data layer.

In practice, this means:

  • Input sanitization that strips or neutralizes hidden text, invisible characters, off-screen elements, and metadata-embedded instructions before content reaches the model
  • Content security policies that define which data types, file formats, and sources are permissible inputs
  • Separate processing pipelines for trusted (internally authored) and untrusted (externally sourced) content
  • Multimodal scanning that examines images, charts, and embedded objects for adversarial content, including content in non-English scripts

3. Traceability and full pipeline logging

Every insight produced by an AI system should trace back to its source material. Every action taken by the system should be logged. Every output should be inspectable. But source citation — linking an AI's conclusion to the document it drew from — is only the visible tip of a much deeper requirement.

Traceability as a security control requires full pipeline observability: structured, immutable logging at every stage of the AI system's operation. This means:

Ingestion logging. Every document, image, and data object that enters the system must be recorded — what it was, where it came from, when it arrived, who or what submitted it, and a cryptographic hash of its contents at the point of ingestion. If a document is later found to contain adversarial content, the ingestion log is what enables forensic reconstruction of when the poisoned material entered the pipeline and what outputs it may have influenced.

Retrieval logging. When the AI retrieves documents or passages to inform a response, the retrieval step must be logged — which query triggered the retrieval, which documents were returned, how they were ranked, and which were ultimately included in the model's context. This is the layer where RAG poisoning manifests: a manipulated document surfaced by the retrieval system. Without retrieval logs, there is no way to determine after the fact which documents informed which outputs.

Inference logging. The inference step — the actual call to the model — must be recorded with sufficient detail to support investigation: the prompt or instruction set, the retrieved context provided, the model version and parameters used, and the raw output before any post-processing. This is the layer where prompt injection takes effect. If an adversarial instruction embedded in a document altered the model's behavior, the inference log is what makes that alteration visible.

Output logging. The final output delivered to the user must be logged, including any filtering, formatting, or post-processing applied between the model's raw output and what the user sees. This is the layer that enables comparison: did the output faithfully reflect the model's inference, or was something altered downstream?

Configuration change logging. Every modification to system prompts, retrieval logic, model parameters, access controls, integration credentials, and knowledge base contents must be versioned and logged — who made the change, when, what was changed, and what the previous state was. Writable system prompts that are unlogged and unversioned turn a database compromise into silent behavioral manipulation. Configuration logging is the control that prevents this.

The purpose of this logging is not compliance checkbox-filling. It is forensic capability. When something goes wrong — when an output is anomalous, when a user reports a suspicious result, when a security alert fires — the organization must be able to reconstruct the full chain from ingestion to output and identify exactly where the pipeline was compromised. Without pipeline-wide logging, incident response for AI systems is guesswork.

4. Determinism and reproducibility

Same inputs should produce same outputs. This is not always achievable with generative AI at the token level, but it is achievable at the architectural level through deterministic retrieval, controlled generation parameters, and structured output formats.

Reproducibility is a defense against silent manipulation. If an AI system's outputs are inherently unpredictable, it is much harder to detect when those outputs have been adversarially influenced. If the system is deterministic by design, a deviation from expected behavior is a signal — and a signal that can be investigated.

5. Separation of instruction and data layers

System prompts, model configurations, and behavioral instructions must be stored, managed, and protected separately from user data, document content, and operational databases. Conflating these layers is what turns a single SQL injection into a behavioral compromise: write access to one store yields write access to the instructions that govern how that store is processed.

Separation of layers means:

  • System prompts stored in a dedicated, read-only configuration store with change management controls
  • Knowledge base content stored with integrity verification and modification logging
  • User data stored with access controls scoped to the minimum required for the application's function
  • No single credential or access path that can reach all three layers simultaneously

6. Humans decide, systems inform

Keeping humans in the decision loop is not just a philosophical position on AI governance. It is a security control. An AI system that autonomously executes decisions based on its analysis provides a direct path from adversarial input to adversarial outcome. An AI system that presents findings to a human decision-maker interposes a layer of judgment that can catch anomalies, question unexpected results, and refuse to act on outputs that do not make sense.

This does not mean humans must approve every query response. It means that high-stakes decisions — investment commitments, regulatory filings, governance actions, contract executions — should always pass through human judgment informed by AI analysis, not human judgment replaced by it.

The thread that runs through all six

These principles are not independent. They are a system. Least privilege limits the blast radius of any compromise. Zero trust for ingested data prevents hostile content from reaching the model in executable form. Traceability turns incident response from guesswork into investigation. Determinism makes manipulation detectable. Separation of layers keeps instructions and data from sharing a failure mode. Human-in-the-loop ensures that even when something slips through, it does not become action without judgment.

Applied together, they shift the question from "can this system be attacked" — every system can — to "when it is attacked, what is contained, what is visible, and what is recoverable?" That is the question every enterprise AI architecture should be designed to answer.

This post is drawn from The Security Deficit, a Vela Intelligence whitepaper on why enterprise AI demands a new standard. For strategic conversations, contact contact@velaintelligence.com.

Building AI for high-stakes decisions?

These principles shape every system we build. If they match what you're trying to achieve, we should talk.