AIDAN course book · Specialty · Specialty exam prep
AI Security Course
Validates that you can identify the threats specific to LLM applications and agents (prompt injection, data leakage, excessive permissions), defend against and detect them, and verify your defenses.
Contents
- How to use this book
- Chapter 1. Threat modeling
Why LLM apps need a separate threat model · The four questions of threat modeling · Assets: What we protect · Attack surface and attacker control scope · Trust boundaries and data flow diagrams · Applying STRIDE to LLM components · OWASP Top 10 for LLM Applications 2025 · Cascades between items: Reading a single incident through multiple numbers · Expanding to agents: OWASP Top 10 for Agentic Applications 2026 · Framework map: NIST AI RMF, Google SAIF, MITRE ATLAS · Risk prioritization and documenting residual risks · Lethal trifecta and Rule of Two · Drawing MCP servers in data flow diagrams: The 2026-07-28 revision · Self-hosted inference servers and model files · Stateful systems: the time of input differs from the time of harm · Translating threat models into requirements and verification items
- Chapter 2. Prompt injection
Definition and root causes · Direct injection and indirect injection: Two threat models · Difference from jailbreaks · Five stages of an attack succeeding · Transit pathway map: Everything the model reads on behalf of the user · Tool results and tool definitions are also inputs · Three branches of damage: Action hijacking, information exfiltration, and answer contamination · Why complete prevention does not exist · Mitigation 1: Separation, labeling, and structuring · Mitigation 2: Screening and detection · Mitigation 3: Privilege separation, confirmation, output restrictions, and their combination · Probabilistic detection and deterministic guarantees · Browser agent attack success rates and confirmation mechanisms · Re-validating schema-compliant outputs · The boundary between normal operations and attacks: quotations, translations, and security training materials · Injections across multiple turns and memory · The pitfalls of human verification: approval fatigue and trust exploitation
- Chapter 3. Data protection and permissions
Where sensitive information leaks: Data lifecycle · Minimization, redaction, and pseudonymization · Terms of data sent to external AI services · System prompts are not secrets · Permissions in RAG and vector stores · Excessive agency: Three roots and eight preventive measures · Translating tool permission minimization into design · Delegation and identity: Under whose authority does it run? · Outputs are untrusted inputs · Safe rendering of outputs · Addresses and code chosen by models: SSRF and code execution · MCP 2026-07-28 authorization: Verify token issuer and audience · Sessionless MCP: Boundaries between sensitive inputs and cache · Identity and origin narrowed per task: GitHub Actions OIDC and Chrome agent · Binding approval to execution · Isolation of derived data: cache, memory, summary, and export
- Chapter 4. Defense testing and red teaming
Map of guardrails: Where to place what · When does the check finish: The Agents SDK case · Classifiers: Types and limitations of judgment engines · Failure behaviors: When no judgment is produced · Definition of red teaming and rules of engagement · Designing attack scenarios · Broadening scope with third-party attack lists · Constructing evaluation sets · Determining success: Judge by outcomes · Metrics for measuring defense effectiveness · Continuous monitoring and regression · When the ATLAS edition changes, realign the checklist · Servers and connections are also red-teaming targets: Default ports and state handles · Deployment pipelines are also scenarios: Model signatures and npm trusted publishing · How many runs are needed: Interpreting probabilistic results · Experiments comparing the effects of control combinations
- Chapter 5. Operational security and incident response
What audit logs must prove · Protecting logs themselves · User identification and abuse tracking · Forms of unbounded consumption · Budgets and cutoff mechanisms · Supply chain 1: Models and model files · Supply chain 2: Tools, plugins, and MCP servers · Component specifications, AI BOM, and model lifecycles · Designing detection signals · Incident response procedures · Kill switches and safe graceful degradation · Personal information leak notification and documentation · Inference server vulnerabilities: Decisions when no patch is available · Package publishing tokens and model signing · MCP 2026-07-28 revision: Logging and detection in a sessionless protocol · Balancing evidence preservation and personal information · Recovery from memory, index, and cache contamination
- Appendix A. Glossary
- Appendix B. Self-check answers and explanations
- Appendix C. Exam day guide
- Appendix D. Reference documents
AIDAN wrote this course book independently from each vendor's official documentation. It is not affiliated with or endorsed by them. Products and policies change, so check the linked official documentation for the latest details.