BAKANTRA · Security Guides

AI Security Architecture

Design enforcement points and understand their coverage.

Updated 2026-11-30 · English

For Security architects, application engineers and platform teams

Conceptual illustration of applications connected through a protective gateway to cloud and private AI infrastructure
Conceptual illustration of governed AI access; not a product screenshot.

Map trust boundaries

Identify users, applications, repositories, retrieval, endpoints and external tools. Mark information and authority crossings. Include streaming, retries and direct calls; a secondary route can bypass intended enforcement.

Distinguish content from authority. Instructions inside documents, messages or tool results should not grant repository access, authorize actions or change policy. Apply ordinary application authorization outside the model.

Establish identity and permissions

Authenticate users and enforce source access before retrieval. Give requests identifiable application access with permitted models and limits. Keep administrative capabilities separate.

Visual guide

Security checkpoints across an AI workflow

  1. 1

    Application authorization

    User access and permitted source context

  2. 2

    Request controls

    Identity, inspection and endpoint policy

  3. 3

    Model & tools

    Selected LLM and authorized actions

  4. 4

    Response & evidence

    Output handling, review and bounded records

Logical checkpoints, not a claim that one filter prevents every threat. Evaluate direct provider paths and tool actions separately.

Treat inspection as a bounded layer

Configured inspection examines supported traffic for sensitive information, secrets or suspicious patterns. Evaluate actual formats, retrieved context and attachments where supported. Record false positives and misses.

No inspection guarantees prevention of every disclosure or injection. Combine it with minimization, endpoint restrictions, source authorization and tool permissions. Encryption protects transport; it does not decide whether the recipient should receive the information.

Separate output from execution

If AI proposes tool calls, constrain actions and validate arguments. Apply user authorization before execution and require appropriate approval for consequential operations. Generated text must not become unrestricted authority.

Separate output from execution
BoundaryQuestionTest
RetrievalMay this user access the source?Unauthorized document request
ProviderIs this endpoint permitted?Prohibited model selection
ToolIs the action authorized?Out-of-scope write proposal
OutputIs the result suitable?Links and structured fields
EvidenceIs retention necessary?Synthetic sensitive-request logs

Worked example

Untrusted instructions in a document

Illustrative test: an assistant retrieves a synthetic document asking the model to ignore its task and disclose unrelated information.

Limit context
Retrieve only authorized records and treat source text as untrusted.
Exercise layers
Test supported inspection, model permissions and tool authorization independently.
Review effects
Inspect outputs, attempted actions and necessary events without overcollecting sensitive content.

Detection is one layer. Restricted data access and tool authority reduce the impact of malicious instructions.

Keep evidence bounded and useful

Agree metadata, policy outcomes and operational events needed for investigation. Review the purpose of content retention before enabling it. Define access, protection, retention and removal.

Assign triage and escalation. Repeated exceptions, unexplained usage and logging failures need review. A dashboard does not prove effectiveness or establish that an event was investigated.

Maintain repeatable security tests

Keep expected outcomes and reviewer notes for representative synthetic tests. Repeat affected cases after changes to models, policies, applications or tools. Response-format changes can affect downstream processing.