AI Application Security: The App Is the Model, the Tools and the Code

AI application security is the work of protecting applications that use a model, including the prompts they take, the data they retrieve, the tools they can call, and the ordinary code around all of that.

It extends application security. It does not replace it. SQL injection, broken access control, secret handling and dependency risk do not go away because a language model sits in the middle.

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.

If you want the role that owns the design decisions, that is AI security architect. If you want the system shape, that is AI security architecture. This page is the application view.

How is AI application security different from ordinary AppSec?

Ordinary AppSec assumes reasonably deterministic software: the same input, the same path, the same output. An AI-powered application accepts natural language, retrieves context that may itself contain instructions, and may call tools. The output is not fixed. A test that passed yesterday can fail today with a different retrieved chunk or a different model version.

Two more differences matter in production.

  • The attack can be the content. Prompt injection, direct or indirect, is not a malformed parameter. It is text that the application was designed to read. I wrote a testing approach for that, using a banking chatbot as the example, at prompt injection testing for banking chatbots. The example is a chatbot. The lesson is any untrusted field that enters the context window.
  • A successful injection is only a nuisance until a tool can act. A model that says something sloppy is a content problem. A model that can change a record, send a message or call a payment API is an application-security incident. That is why I treat tool permission as an AppSec control, not as a policy footnote. The worked checklist is in agentic AI in banking.

OWASP's Top 10 for LLM Applications is the list I use to brief an application review [1]. It is a community project. It is not a substitute for your own threat model, and it is not a regulatory requirement just because it exists.

What should an application review actually cover?

My practice, for each AI-powered application, is a short review that a security or engineering lead can run before go-live. It is a review, not a product.

  1. Inventory the application, the model, the index and every tool. If a trial tool is still reachable, it is in scope.

  2. Mark untrusted inputs. User text, uploaded files, retrieved documents, web tools, mail, other agents. All of them.

  3. Check authorisation in the downstream system. The model proposes. The application or the core API decides. Least privilege on the tool identity.

  4. Test the content paths. Prompt injection and insecure output handling, on the real assembly of system prompt, memory and retrieval, not on a toy playground.

  5. Score findings and set a gate. A severity rule, a go or no-go, and a re-test trigger when the model, the tools or the data change.

  6. Keep evidence. You should be able to say which version ran, what it retrieved, what it called, and who approved a write.

The open tool I published for the gate itself is llm-redteam-banking-checklist [2]. Severity scorer, five gates, pytest and GitHub Actions, Apache-2.0. It was written with banking go-live in mind, and the method is on Hugging Face [3] and on this site. On 25 November 2026 it was listed under Security Testing in agentrust-io/awesome-ai-governance (PR #170, merged) [4]. On that date the repo had 0 stars. Use the gate. Do not inflate what a listing means.

What this page is not

It is not a vendor comparison. It is not a claim that I have tested your application. It is not "AI that does application security", scanners that use a model to find bugs in ordinary code are a different subject, and I am not writing about them here.

FAQ

What is AI application security?

It is application security for software that uses a model: the code, the prompts, the retrieved data, the tools, and the runtime behaviour. Traditional AppSec still applies.

Is this the same as securing an LLM?

Securing the model is part of it. Most of the risk I see in application reviews sits in how the application assembles context and what the application is allowed to do with the output.

Why do your examples mention banks?

Because that is the public work I have already published. The review steps are not limited to banking.

Sources

  1. OWASP GenAI Security Project, Top 10 for LLM Applications, https://genai.owasp.org/

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

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

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