How to use this book
Who this book is for
This book is a textbook for those who defend LLM applications and agents. Its primary readers are individuals responsible for AI product security reviews, Security Engineers, and developers building agent platforms. It assumes experience building at least one feature with an LLM API (at the level of Red Belt AI Feature Development) and foundational knowledge of web application security (authentication and authorization, XSS, SQL injection, secrets management). With that level of background, this book is written so that you can study the entire scope of the AI Security Specialty course using this book alone.
The perspective of this book is that of a defender. It focuses on cultivating the ability to judge "where to place which controls to minimize damage" rather than "what attacks exist." Attack techniques are explained only to the extent necessary to recognize, prevent, and test them on one's own systems. Working attack strings or procedures targeting other organizations' systems are not included. Red team practice is also always guided to be conducted on authorized internal systems with fake data.
General network security (firewalls, intrusion detection, network separation) and model training attack research (adversarial example generation, training data extraction research) are not covered in depth. However, decision points that operators must judge, such as supply chain and data poisoning, are covered at a practical level.
How this book is organized
The main text covers the five exam domains, one chapter each. Chapter 1, Threat Modeling, draws a map; Chapter 2, Prompt Injection, dissects the greatest threat; Chapter 3, Data Protection and Permissions, teaches designs that reduce the scope of damage; Chapter 4, Defense Verification and Red Teaming, measures whether that design actually works; and Chapter 5, Operational Security and Incident Response, covers what happens during operations. The hands-on tasks are connected so that the output of a preceding chapter becomes the input for the following chapter.
Every chapter consists of the same ten sections. Direction is set with Learning objectives and Introduction; main concepts and trade-offs are learned in Key concepts and Going deeper; and decision-making processes are followed through two At work scenarios. These are followed by Common mistakes, Summary at a glance, Check the official docs, Self-check (answers are in Appendix B), and a 30- to 60-minute Hands-on task.
Appendix A is the glossary, Appendix B contains the Self-check answers and explanations, Appendix C is the exam day guide, and Appendix D is the list of official documents cited in this book. When reading for the first time, read in chapter order; starting from the second reading, review focusing on Common mistakes and Summary at a glance.
The exam at a glance
The AI Security Specialty exam consists of 35 questions to be solved within 60 minutes. Each question has an assigned point value: questions that check concepts or apply a single principle are worth 2 points, while analytical questions requiring multiple conditions to be considered together are worth 3 points. A candidate passes if their raw score, converted from earned points to a 100-point scale, is 75 points or higher, and grades 1 to 9 are also displayed according to the raw score. The free practice set consists of 10 questions and 25 minutes.
| Chapter | Domain | Weight |
|---|---|---|
| Chapter 1 | Threat Modeling | 20% |
| Chapter 2 | Prompt Injection | 25% |
| Chapter 3 | Data Protection and Permissions | 20% |
| Chapter 4 | Defense Verification and Red Teaming | 20% |
| Chapter 5 | Operational Security and Incident Response | 15% |
Prompt Injection is the domain with the largest weight, but domains are mixed together in actual questions. It is common for the correct answer to an injection question to be privilege reduction (Chapter 3), or for the correct answer to a red team question to stem from the threat model (Chapter 1). Rather than memorizing chapters separately, understand them as a single flow: "find the path, minimize damage, measure effectiveness, and operate."
What the questions look like
The exam paper resembles the question paper and OMR answer sheet of the College Scholastic Ability Test (CSAT). Regardless of the format, answers are chosen by selecting a single number (①–⑤). There are five question construction formats, and they appear on the exam paper as follows:
| Format | Appearance on the exam paper | To answer correctly |
|---|---|---|
| Single choice | One among five options | The single most appropriate option |
| Multiple choice | A combination grouping a designated number among ㄱ, ㄴ, ㄷ… in the <보기> box |
A combination that includes all correct answers and no incorrect answers |
| Statement evaluation | A combination grouping only the correct statements among the statements in the <보기> box |
A statement is correct only when both its conclusion and its reason are correct |
| Ordering | Five candidate orderings for steps (가)~(마) | The order in which the output of a preceding step becomes the input of a following step |
| Matching | Five candidates pairing items on the left with options on the right | A candidate in which all pairs are correct; one option may remain unused |
Most questions present a brief workplace scenario and ask for a decision. One or two conditions are included in bold in the scenario. For example, if a condition such as "The release schedule cannot be changed" is attached, an option involving a redesign that takes several months cannot be the answer no matter how secure it is; and if it asks for "controls enforceable by code," an option that adds a sentence to the system prompt must be eliminated. Analytical questions are designed so that if a single condition changes, the correct answer also changes, so selecting an answer based only on keywords leads to plausible incorrect choices. Whenever reading the options, build the habit of examining: "Does this action satisfy all the conditions of the scenario, or only some of them?"
Key point
In statement evaluation formats, statements with incorrect reasons are the most common trap. A statement that is "correct in conclusion but based on irrelevant grounds" is an incorrect statement.
Six-week study plan
This plan is designed based on one hour per day, five days a week. If you have substantial hands-on experience, you may combine Weeks 1 and 2 into a single week.
| Week | Scope | Weekly deliverables |
|---|---|---|
| Week 1 | Chapter 1 Threat Modeling | Data flow diagram, trust boundaries, and draft risk register for one LLM feature I know |
| Week 2 | Chapter 2 Prompt Injection | List of injection paths and mitigation matrix by path |
| Week 3 | Chapter 3 Data Protection and Permissions | Tool privilege reduction proposal, output rendering checklist |
| Week 4 | Chapter 4 Defense Verification and Red Teaming | Evaluation set of 30 cases, scenario cards, and metric calculation sheet |
| Week 5 | Chapter 5 Operational Security and Incident Response | Incident response runbook, audit log field definitions |
| Week 6 | Appendix review, practice set, review of incorrect answers | Practice set Review notes, reorganizing Common mistakes |
Key point
Actually carry out the hands-on tasks. In this exam, the difference between "knowing by reading" and "having designed it yourself" shows in your score. In particular, the tasks for Weeks 2 and 4 share the exact same thought process as the analytical questions on the exam.
Notation and sources
The standard, vendor, and legal information in this book was verified on each official page as of October 20, 2026. The baseline editions are the same as those for the exam: OWASP Top 10 for LLM Applications 2025 edition (a 2026 edition with revised rankings was released in August 2026, and a correspondence table is in Chapter 1), OWASP Top 10 for Agentic Applications 2026 edition (released in December 2025), MCP (Model Context Protocol) 2026-07-28 edition, and the Personal Information Protection Act (PIPA) and its Enforcement Decree as enforced on September 11, 2026. Product names, settings screens, and feature scopes are subject to change, so verify them against the official documentation in each chapter before applying them in practice.
The notation principles are as follows:
- Product, API, and parameter names retain their original notation (
tool_result,safety_identifier, Prompt Shields). - When terms appear for the first time, a Korean explanation is attached, and the same term is used thereafter. For example, excessive agency is unified as "과도한 대리권".
- Features, limits, and prices not verified by vendor documentation are not written. Unverified content is explained only through principles that do not point to a specific vendor.
- Laws and regulations are cited based on the current provisions in the National Law Information Center, and legal explanations in this book do not constitute legal advice. In an actual incident, follow the judgment of your Personal Information Protection Officer and legal counsel.
- The organizations and individuals appearing in the case studies are entirely fictitious.
Note
This book does not include working attack strings. Attack examples describe only the structure, such as "an instruction directed at the model written inconspicuously at the bottom of the document." Follow this principle when creating evaluation sets as well.