ORDERED TECHNICAL SERIES • 9 PARTS + 9 LABS

OWASP Top 10 for LLMs & AI Agents: Complete Technical Series

Step-by-step technical series on the OWASP Top 10 for LLMs and agentic systems: from tokenization and prompt injection to RAG security and FinOps DoW.

9 Engineering Articles • 9 Executable Hands-on Labs (.ipynb) • Author: Samir El Azem Crovetto

Architectural Overview & Threat Landscape

This 9-part engineering series is structured as a progressive curriculum to understand, audit, and harden Large Language Model (LLM) applications and autonomous agents. Rather than treating vulnerabilities as isolated theoretical checklists, the roadmap starts at the internal mechanics of the model (BPE tokenization and attention matrices) and advances layer by layer through the application stack.

Every technical installment is paired 1-to-1 with an executable Jupyter Notebook / Google Colab hands-on lab (Lab 01 through Lab 09), enabling engineers to reproduce real exploit vectors and empirically verify deterministic Python defenses.

Core Engineering Pillars & Reference Patterns

Phase 1 (Parts 1–2): Model Mechanics & The Flat Attention Window

Dissecting BPE subword tokenization, multilingual cost asymmetry, ChatML framing, and the flat memory illusion that conflates instructions with untrusted data.

Phase 2 (Parts 3–4): Semantic Injection & Secret Exfiltration

Exploiting and defending against Direct/Indirect Prompt Injection (LLM01), Unicode Smuggling, System Prompt Leakage (LLM07), Canary Tokens, and Output Redactors.

Phase 3 (Parts 5–6): Vector RAG Pipelines & AI Framework Stack

ConfusedPilot and vector data poisoning (LLM08), multi-tenant RBAC pre-filtering, and remediating RCE/SSRF vulnerabilities in AI orchestration frameworks (LLM03/LLM05).

Phase 4 (Part 7): Excessive Agency & Financial Attacks (FinOps)

Governing autonomous tool calling (LLM06), preventing Denial of Wallet (LLM10) via token budget circuit breakers, and HMAC-signed Human-in-the-Loop approvals.

Phase 5 (Parts 8–9): Supply Chain Poisoning & Systemic Misinformation

Auditing pre-training and fine-tuning backdoors (LLM04), secure model deserialization with safetensors over pickle RCE, mitigating Slopsquatting in coding agents (LLM09), and verified citation RAG.

Sequential Reading Roadmap (Step-by-Step)

Associated Hands-On Security Labs (Jupyter Notebooks / Google Colab)

Architectural Frequently Asked Questions (FAQ)

What is the recommended reading order for the OWASP Top 10 for LLMs series?

Follow the sequential order from Part 1 to Part 9. The first two chapters establish the mathematical and architectural foundations (tokenization and flat self-attention) required to understand why the exploits in Parts 3 through 9 succeed and how to mitigate them.

What are the prerequisites to run the 9 hands-on labs paired with this series?

All 9 labs are self-contained Jupyter Notebooks (.ipynb) compatible with Python 3.10+ and can be executed in the cloud via Google Colab or locally inside isolated Docker containers.

Does this series cover chatbots, tool-calling agents, and model supply chain security?

Yes. Parts 1 through 4 cover core inference and prompt boundaries, Part 5 dives into enterprise RAG vector stores, Part 6 audits orchestration frameworks, Part 7 addresses autonomous agents and FinOps protection, Part 8 covers model poisoning and pickle deserialization RCE, and Part 9 examines misinformation, grounding, and package slopsquatting.