📖 AI Security Textbook

AI Security: Threats and Defense in the AI Era

A narrative textbook distilled from real incidents between April and July 2026

5 chapters · ~46,500 words · ~186 pages A5 · 120+ arXiv citations

📚 Read online (below) or grab the file:

Download EPUB (120 KB)

What this book is

The five chapters trace one arc: from the moment an AI thinks, to the moment it writes code, to the moment it becomes infrastructure. Each chapter ends with a defender playbook — the concrete steps a security team can take this quarter to harden what they already have.

The book is built from public reporting on real incidents that hit open-source maintainers, banks, hospitals, and frontier labs during a single four-month window. Names, dialogue, and scene details are composites; the attack mechanics, numbers, and references are not. Every chapter carries a statement on scenes and characters so readers never confuse the two.

How to read this. If you have thirty minutes, read the Introduction and the Conclusion — they are the spine. If you have an afternoon, read in order. If you are a practitioner with a specific problem, jump to the chapter that names it (Chapter 2 for code-generation risk, Chapter 3 for agentic infrastructure).

Table of Contents

About the sources

The book draws on roughly 150 Inoreader articles published between April and July 2026 — research from Anthropic, OpenAI, Google DeepMind, Trail of Bits, Cloudflare, Microsoft Threat Intelligence, plus working papers from independent teams on arXiv. Each chapter ends with a References section grouping URLs by month so the reader can verify any number that struck them.

Where the underlying paper appeared on arXiv, the identifier is preserved exactly as in the original research. Readers should still verify against the source before citing in their own reports — arXiv IDs occasionally move between preprint and published versions.

Source files

The HTML and EPUB files behind this site are kept alongside the blog that hosts it. This is a research artifact, not a finished commercial textbook — the text is released for non-commercial reading and reference.