Home
Cybersecurity & AI Security / Part 55 — Why AI Systems Break Differently

Why AI Systems Break Differently

CAP, ACID vs BASE, latency numbers, back-of-envelope estimation, single points of failure — the vocabulary every system designer thinks in.


Core Philosophy: An AI-powered application is still software — and everything you learned in Phases 0–5 still applies to it. But AI introduces something genuinely new: the model itself becomes an attack surface, in ways that have no equivalent in traditional software. Securing AI is not a separate discipline that replaces what you know; it is your existing security knowledge plus a new set of vulnerability classes layered on top. This page is about what that new layer is, and why it behaves so differently.

Part 1: The Problem

Across Phases 2–5 you learned to secure software: web applications, infrastructure, code, cloud systems. AI-powered applications are now everywhere — chatbots, assistants, features that summarize, generate, classify, decide — and a tempting assumption is that securing them is just “securing software, again.”

That assumption is half right, and the wrong half is dangerous.

The right half: an AI application is software. It has a front-end, a back-end, APIs, a database, infrastructure, authentication, inputs and outputs. Every vulnerability class you have learned — injection, broken access control, misconfiguration, the lot — can exist in an AI application exactly as in any other. Everything from Phases 0–5 still applies. Securing an AI app starts with all the security you already know.

The wrong half — and the reason this phase exists: AI applications also contain a model, and the model introduces vulnerability classes that have no equivalent in traditional software. A normal program does exactly what its code says. A machine-learning model does not “run code” in that sense — it produces outputs by learning patterns from data, and that fundamentally different nature creates fundamentally different weaknesses. Traditional security has no playbook for them. This page is about understanding why AI breaks differently — the foundation for everything in Phase 6.

Part 2: The Concept — How AI Systems Differ From Normal Software

To see why AI breaks differently, you need a clear (non-mathematical) picture of how AI systems differ from the software you already know.

Traditional software is explicit. A developer writes code — explicit instructions. The program does exactly what the code specifies, deterministically. Its behavior is, in principle, fully knowable by reading the code. Security analysis (Phases 2–5) rests on this: you can reason about what the code does.

Machine learning models are learned, not written. An ML model is not programmed with explicit rules. It is trained: shown large amounts of training data, from which it learns statistical patterns. The resulting model produces outputs based on those learned patterns. Crucially:

Large Language Models (LLMs) add another twist. Modern AI applications are often built on LLMs — models trained on vast text data that take in natural-language input (a “prompt”) and produce natural-language output. The defining security oddity: an LLM does not cleanly separate instructions from data. To an LLM, its instructions and the user’s input and any other text it is given are all just… text, in the same context. Hold onto that fact — it is the root of the single most important AI vulnerability (6.3).

text
   TRADITIONAL SOFTWARE          AI / ML SYSTEM
   explicitly programmed          learned from training data
   deterministic, predictable     probabilistic, not fully predictable
   behavior knowable from code     behavior opaque even to creators
   code = instructions,            (LLMs) instructions and data are
   data = data (separate)          NOT cleanly separated — all "text"

The model’s nature — learned, probabilistic, opaque, and (for LLMs) not separating instructions from data — is why it is an attack surface unlike any in traditional software.

Part 3: The Concept — The Model Itself Is an Attack Surface

Here is the central new idea of Phase 6: in an AI system, the model is not just a component — it is an attack surface in its own right.

In traditional software, the attack surface (0.4) is inputs, interfaces, exposed services. In an AI system, all of that still exists — plus the model adds entirely new attackable things:

text
   AI APPLICATION — attack surface

   ┌─────────────────────────────────────────────────────┐
   │  Traditional surface (Phases 2–5 — STILL APPLIES):   │
   │   front-end · APIs · back-end · database · infra ·   │
   │   auth · all the classic vulnerability classes       │
   │                                                       │
   │  NEW: the MODEL and its ecosystem —                  │
   │   • the model's INPUT  → prompt injection (6.3)      │
   │   • the TRAINING DATA  → data poisoning (6.4)        │
   │   • the MODEL itself   → theft, extraction (6.4)     │
   │   • the model's OUTPUT → harmful/trusted output (6.5)│
   │   • the AI SUPPLY CHAIN → third-party models (6.6)  │
   └─────────────────────────────────────────────────────┘

This is the core mental shift of Phase 6: an AI application’s attack surface is everything a normal application has, plus the model and its entire ecosystem — input, training data, the model artifact, output, and supply chain. Each of those new pieces is what pages 6.3–6.6 examine.

Part 4: The Concept — Anatomy of an AI Application

To secure AI systems, you need a clear picture of the components of a typical AI application and where the risk sits in each. Most current AI applications — especially LLM-based ones — share a common shape:

text
   ANATOMY OF A TYPICAL LLM APPLICATION

   [ user ] ──input──► [ application layer ]
                              │
                              │ constructs a PROMPT — often
                              │ combining: a system instruction +
                              │ user input + retrieved data/context
                              ▼
                        [ the LLM / model ]
                              │ produces output
                              ▼
                        [ application layer ]
                              │ may: show output to user, OR
                              │ act on it — call TOOLS, run code,
                              │ query data, trigger actions
                              ▼
                        [ effects: responses, actions, data ]

   Often also present:
   • RETRIEVAL — the app fetches external data/documents to
     feed the model as context (a common pattern)
   • TOOLS / AGENTS — the model can invoke functions, call APIs,
     take actions in the world (6.5 — the highest-risk pattern)
   • the MODEL itself — built in-house or (usually) a third-party
     model accessed as a service (6.6 — the supply chain)

Walking the components and their risk:

Every page in Phase 6A maps onto a part of this anatomy. Keep this diagram in mind throughout.

Part 5: The Concept — “Everyone Ships AI, Nobody Secures It”

This page is the right moment to be precise about the conviction that motivated your whole curriculum — because in the AI era it is literally, demonstrably true, and understanding why tells you exactly where the opportunity is.

Why AI code is being shipped massively under-secured:

The result is exactly your founding observation, sharpened: a vast and growing amount of AI-powered software is being deployed by people who can build AI features but cannot secure them — because the knowledge to secure them is scarce, new, and unevenly distributed. That gap is the opportunity. Someone who has the full security foundation (Phases 0–5) and genuinely understands AI-specific security (Phase 6) is filling a shortage that is real, growing, and acute. This phase is the bet you are making — and it is a sound one.

Part 6: The Concept — How to Think About Securing AI

This page closes by setting the mindset for the rest of Phase 6 — how to approach AI security correctly.

🔑 The deep lesson: an AI application is software — so everything in Phases 0–5 still applies — plus it contains a model, which is a genuinely new attack surface with no equivalent in traditional software. The model is learned (not written), probabilistic, opaque, and — for LLMs — does not separate instructions from data; that nature makes its input, its training data, the model itself, and its output all attackable in new ways. AI features are being shipped massively faster than they are secured, because securing them needs knowledge that is new and scarce — which is exactly the opportunity. Secure AI by adding the model layer to your existing foundation, reapplying the security mindset you already have, treating the model and its input/output as untrusted, and committing to stay current in a fast-moving field.

📓 Key Terms

Term Plain meaning
AI applicationSoftware that incorporates an AI/ML model as a component.
Machine learning (ML) modelA system that learns patterns from training data rather than being explicitly programmed.
Training dataThe data a model learns from — which shapes (and can corrupt) its behavior.
Large Language Model (LLM)A model trained on vast text that takes natural-language prompts and produces text.
PromptThe input given to an LLM — often mixing instructions, user input, and retrieved data.
Black box (AI)The property that a model’s reasoning is opaque, even to its creators.
The model as attack surfaceThe idea that the model itself — not just the surrounding app — is attackable.
Agentic / toolsAn AI system’s capability to take actions — call APIs, run code, affect the world.

🧪 Hands-On Lab

Phase 6A’s labs use AI applications you build, run, or are authorized to test — and deliberately vulnerable AI apps where they exist. Never attack AI systems you do not own or are not authorized to test (page 1.0 applies fully).

Task 1 — Map an AI application’s anatomy. Take an AI-powered application you know or can examine (one you have used, or a simple one you build). Draw its anatomy using Part 4’s diagram — application layer, prompt construction, model, any retrieval, any tools, output handling, supply chain.

Task 2 — Identify both attack surfaces. For that application, list (a) the traditional attack surface — the Phases 2–5 things — and (b) the new AI attack surface — model input, training data, the model, output, supply chain. Confirm for yourself that AI security is “both layers.”

Task 3 — See the instruction/data confusion. Using any LLM you can interact with, give it a clear instruction, then in the same input include text that tries to contradict or override that instruction. Observe how the model treats it all as one stream of text. You have just previewed why prompt injection (6.3) exists.

Task 4 — Build a tiny LLM app. Using a third-party model’s API (your developer skills from 0.6), build a minimal LLM-powered app — e.g. something that takes user input, builds a prompt, sends it to a model, and shows the output. You will use and harden this through Phase 6A.

Task 5 — Reason about “everyone ships, nobody secures.” In Notion, write your own analysis of Part 5: why is AI code being shipped under-secured? Where, specifically, is the opportunity for someone with your background? This is your founding thesis, examined.

Task 6 — Write the foundation note. In Notion, create an “AI Security” page — how AI differs from normal software, the model as attack surface, the anatomy of an AI app, and the mindset from Part 6. The foundation for all of Phase 6.

⚠️ Common Mistakes

✅ Recap & What’s Next

Next (6.2): The field now has a shared map of LLM-specific risks — the OWASP Top 10 for LLM Applications. Page 6.2 is that map: the index to everything in 6.3–6.6, learned the way you learned the classic OWASP Top 10.

⁂ Back to all modules