AI Security Architecture: Trust Boundaries Before Filters

A secure AI architecture is not a product you install in front of a model.

It is the set of decisions about how the system is put together. Where untrusted data enters. What the model is allowed to call. Where a permission is enforced. What you can prove after the fact. And how you stop the system.

I'm Ercin Dedeoglu, an AI Architect in Dubai. I work at SBS. This site is personal. Nothing here describes SBS systems, clients or confidential work.

This page is the architecture. The role that owns these decisions is on AI security architect. The application-layer view is on AI application security.

Why does a filter at the edge fail as an architecture?

Because the failure is usually not "a bad sentence got through."

The failure is a design that treats model output as trusted, or that gives a tool a wider identity than the task needs, or that puts untrusted documents into the same context window as instructions and then lets the model call an API.

NCC Group's line is the one I design against: there is no secure mechanism that exposes a model to untrusted data and also trusts the output of that model [1]. If a business process needs the model to read untrusted text and then to act, the action has to be authorised somewhere the model cannot rewrite.

Prompt filters, output scanners and "the model was told not to" can still be useful layers. They are not the architecture.

What are the layers of a secure AI architecture?

I use four layers. They are a working map, not a vendor framework. Where a point is my practice, I say so.

1. Data and retrieval. What goes into training, fine-tuning, prompts and the retrieval index. Access rules from the source system should still apply after embedding. A vector store that ignores the source ACL is an architecture bug, not a model bug. Red Hat's deployment writing makes the same point about poorly permissioned data in RAG [2].

2. Model and context. The model, the system prompt, the assembled context, and any memory. Once text is inside the context window, today's models do not have a cryptographic way to tell an instruction from data. That is why prompt injection is a property of the design, not a one-off bug. Cisco's reference architectures treat chat, RAG and agents as different patterns with different mitigations, which is the right split [3].

3. Tools and agents. Anything the model can call: APIs, browsers, mail, payments, other agents. Each tool needs a narrow interface and a least-privilege identity. Authorisation belongs in the downstream system. I walked through that, with OWASP LLM06 as the spine, in the tool-permission checklist. That article uses banking as the worked example. The control is the same in any domain: a persuasive request must never create a permission.

4. Evidence and control. Logs that tie prompts, retrieved chunks, tool calls, versions and outputs to an identity. A human way to halt the system. A release gate that is written down. Without this layer you have a demo, not an operable system.

"Secure AI architecture" and "AI security architecture" are the same subject on this page. I am not drawing a distinction between the two phrases.

What do I refuse to put in the design?

These are my practice rules. They are not a standard.

  • No open-ended shell, unrestricted URL fetch, or raw SQL tool "because the model will be careful."
  • No standing admin credentials for an agent.
  • No design in which the only thing between untrusted input and a write action is the model's compliance.
  • No undocumented tools left over from a trial and still reachable.
  • No release that cannot name its tests, its severity rule, and its stop condition.

The public gate I use as a worked example is the open-source llm-redteam-banking-checklist [4]. Five gates, a severity scorer, pytest and GitHub Actions. On 25 November 2026 it was added to the Security Testing section of agentrust-io/awesome-ai-governance (PR #170, merged) [5]. It is a go-live checklist, not a complete architecture, and on that date the repository had 0 stars. I also published the method on Hugging Face [6] and on this site.

Use it as a starting test harness. Do not treat a passing checklist as a certificate.

FAQ

What is AI security architecture?

It is the arrangement of trust boundaries, identities, enforcement points, evidence and stop-conditions around an AI system. It is not a single product, and it is not a system prompt.

What is a secure AI architecture?

The same thing, said as a property of the design. A secure AI architecture assumes untrusted input, does not treat model output as an authorisation, scopes every tool, and can explain what the system did.

Is this only for banks?

No. I have published banking examples because that is the public work I already have. The layers above are not industry-specific.

Sources

  1. NCC Group, "Analyzing Secure AI Architectures", https://www.nccgroup.com/research/analyzing-secure-ai-architectures/

  2. Red Hat, "Navigating secure AI deployment: Architecture for enhancing AI system security and safety", https://www.redhat.com/en/blog/navigating-secure-ai-deployment-architecture-enhancing-ai-system-security-and-safety

  3. Cisco, "AI Security Reference Architectures", https://www.cisco.com/site/us/en/learn/topics/artificial-intelligence/ai-security-reference-architecture.html

  4. Ercin Dedeoglu, llm-redteam-banking-checklist, https://github.com/ErcinDedeoglu/llm-redteam-banking-checklist

  5. agentrust-io/awesome-ai-governance, pull request #170, merged 25 November 2026, https://github.com/agentrust-io/awesome-ai-governance/pull/170

  6. Ercin Dedeoglu, "LLM Red Teaming for Banking: A UAE Go-Live Checklist", https://huggingface.co/blog/Ercin/llm-red-teaming-banking-uae