Appendix B. Self-check answers and explanations

Chapter 1

1-1. Parameterized queries transmit the query structure and values through separate channels, allowing the parser to fix the structure. In an LLM, the system prompt, user request, documents, and tool results all enter into a single context, and even when role indicators exist, what to follow as an instruction is determined not by a parser's grammar but by the model's probabilistic judgment; therefore, structural separation does not hold.

1-2. The context assembly point (whose authored text is being mixed), the tool execution point (under whose authority what is checked and executed), the output interpretation point (whether output can be interpreted as code or commands), and the memory write point (who will read the stored content later).

1-3. The details of the residual risk and the owner accountable for that risk. Transference does not reduce the risk itself, and acceptance is a decision to take on the risk; without documentation, it becomes a risk for which no one takes responsibility. Recording review conditions alongside them allows the decision to be reopened when circumstances change.

1-4. For example, an architecture where all agent tool calls are issued under a shared service account and the requesting user's identifier is not recorded in the logs. If an incident occurs, it is impossible to prove whose request triggered that action, preventing the determination of the scope of impact and accountability. A structure where tokens are passed through as-is, leaving only the intermediary server in downstream system logs, suffers from the same defect.

1-5. Assign ASI06 (Memory & Context Poisoning) to the starting point and ASI08 (Cascading Failures) to the propagation. Because ASI08 refers not to the initial flaw but to the phenomenon of that flaw spreading along agents, tools, and workflows, direct compromises are classified separately under their corresponding numbers. If one only blocks propagation without fixing the starting point, the same incident will recur.

1-6. MITRE ATLAS. Its attack tactics and techniques are linked to case studies, making it well-suited for building step-by-step scenarios. The NIST AI RMF answers how an organization manages AI risk (accountability, context, measurement, and response), whereas SAIF answers what security controls to implement and how (core elements and risk-specific controls).

1-7. The new trust boundary is the point where the model's summary becomes the action of posting to a channel, and that post is rendered on another employee's screen. Examples of review conditions include "adding an externally shared channel to posting destinations," "adding an external document source to summarization targets," "removing the pre-posting confirmation step," and "adding edit and delete capabilities to the posting tool."

Chapter 2

2-1. Content invisible on screen, such as white text, comments, and metadata, still serves as input to the model; therefore, review and screening must be based on the text the model actually receives (the extraction results) rather than what a human sees on screen.

2-2. Direct and indirect injections are distinguished by the pathway through which instructions arrive, whereas jailbreaks are distinguished by the objective of bypassing the model's safety policies. For example, if an instruction hidden in a shared document causes the model to generate content prohibited under safety policy, it is both an indirect injection and a jailbreak. A jailbreak filter that inspects only user inputs will miss such cases.

2-3. The derailment phase is severed by finalizing the plan based on the user's request first before reading external content (plan locking), or through a design where the planning side does not see the raw text and the reading side passes only data in a predefined format (blind planner). Intent verification that halts execution upon detecting unexpected goal shifts also applies here. The delivery phase is severed by separating the flow so that write tools cannot be called while reading external content, placing human confirmation on high-impact actions, or restricting recipients and domains to an allowlist.

2-4. Attempts to close quotation marks or tags to break out of the data section into an instruction context become more difficult. Even so, the possibility remains that the model will follow instructions contained within the string value. Encoding clarifies boundaries but does not constrain the model's judgment; therefore, privilege separation and confirmation are required together.

2-5. First, separately measure the detection rate and false positive rate using Korean attack cases alongside benign and borderline cases that have passed through the actual service pipeline (upload and text extraction). Second, define behavior when a verdict is missing or an error occurs, and determine whether to block, flag, or route for human review upon detection. The Prompt Shields documentation also notes that it was trained and evaluated primarily in English, advising evaluation for each target language.

2-6. Response poisoning manifests not as sensitive data leaking outward, but as distorted recommendations or omitted conditions within an otherwise normally formatted answer, so it is not caught by detection rules monitoring for exfiltration. Grounding verification that attaches source documents and citations to cross-check against original texts, deterministic checks that ensure required items are not omitted, and human review for critical decisions help reduce this.

2-7. The first cause is that approval requests occur so frequently that people stop reading the content; this is countered by narrowing confirmation targets based on risk level. The second cause is that the display shows the model's summary instead of actual parameters, leading humans to trust that explanation; this is countered by displaying the target, arguments, and effects with their raw values, and binding approval to the execution arguments so that if anything changes, the user is prompted again. Monitoring approval rates and time-to-approval can help detect rubber-stamping.

2-8. Sample answer (adding human confirmation before posting as a fourth line is also acceptable).

  1. Probability-reducing layer: Pass review text strictly as tool results tagged with the source "public external page, author unverified," and flag instruction injection with a screening model.
  2. Privilege separation: Ensure the review-reading phase cannot invoke the posting tool, and accept summarized results only in a fixed table format to be posted by deterministic code.
  3. Output restriction: Strip external links, images, and markup before posting, and fix the posting location to a designated wiki space.

Chapter 3

3-1. Examples include context assembly (more fields than necessary are included; mitigated by using field-level lookup tools), external model calls (raw text is sent externally; mitigated by masking/pseudonymization and reviewing contractual terms), and logs and caches (raw text is retained; mitigated by masking and retention periods). You may also mention tool arguments (argument validation and destination restrictions) or derived data such as summaries, embeddings, and fine-tuning data (sanitization before training and deletion procedures).

3-2. Logging and monitoring of extension and downstream system activity, and rate limiting. Both merely detect improper actions after the fact or reduce their frequency; they are not preventive controls because they do not reduce the capabilities, privileges, or autonomy that enable the model to take harmful actions.

3-3. The principle that every request directed to downstream systems must undergo an authorization check performed by the downstream system according to security policies each time, rather than relying on the model's judgment. For example, a design that merely states "Only administrators can approve refunds" in the system prompt while the refund API does not check the caller's privileges violates this principle.

3-4. Whether inputs and outputs are used for model training and how to opt out, the retention period for abuse-monitoring logs, the retention periods and deletion methods for application state (conversations, files, vector stores), the approval conditions for options that reduce retention, and the storage and processing regions. Because conditions vary by feature and contract, record them along with the date of verification.

3-5. By default, render output strictly as text using methods such as textContent. If formatting is strictly necessary, pass it through a Markdown renderer with raw HTML disabled and an allowlist-based sanitizer (OWASP recommends DOMPurify). A CSP is an additional layer of defense that does not replace these two.

3-6. Prohibit treating possession of a state handle as authentication. The server must validate every request, generate handles using secure random values, and bind the handle to the user ID obtained from a validated token on the server so that handles presented by other entities are rejected. Setting an expiration on handles further reduces risk.

3-7. Sample answer. find_free_rooms(start, end, attendees) is a read-only tool that only queries the meeting room list and does not require confirmation. read_my_calendar(period) reads only the requesting employee's own schedule using a user-context token and does not require confirmation. book_room(room, start, end) only creates reservations without edit or delete capabilities, executes under the user context, has the server verify duplicates and permissions, and requires user confirmation before creation. Universal calendar write permissions are omitted.

Chapter 4

4-1. You may name any two of handoffs, hosted tools (web search, file search, hosted MCP, code interpreter, etc.), or built-in execution tools (computer, shell, etc.). Alternative controls to put in place include input guardrails in blocking mode, execution environment isolation and domain allowlists, server-side authorization in downstream systems, and wrapping operations in custom function tools for inspection.

4-2. Harmful content classification answers "Is this content harmful under safety policies?", injection attack detection answers "Does this input or document contain an attempt to alter the model's instructions?", and authorization checks answer "Is this principal permitted to perform this action on this resource?" They cannot substitute for one another.

4-3. Target systems and versions, a test environment isolated from production, the use of synthetic data and dummy secrets, permitted and prohibited activities (using mock tools, prohibiting third-party systems), halt conditions, and communication and reporting procedures (to whom, in what format, and when).

4-4. To automatically judge it as an exfiltration if that value appears in an output or external request. It must not overlap with real data or real secrets, and it must be unique enough that the model cannot generate it by coincidence.

4-5. The attack pass rate is 9 ÷ 240 = 3.75%, and the false positive rate is 15 ÷ 500 = 3%. From these two numbers alone, you cannot determine how many individual scenarios were breached at least once, which defensive layer caught the attacks, whether normal tasks were completed successfully (task completion rate), or the pathways and magnitude of damage from the attacks that got through. Mentioning any one of these is sufficient.

4-6. The upper bound is approximately 3 ÷ 60 = 5%. While one can say that the true success rate is likely lower than about 5%, one cannot claim that the success rate is 0, nor that the system is safe across different paths, different variants, or different model versions.

4-7. To distinguish between the standalone effects of each control and their combined effect, four configurations are needed: baseline, baseline + input screening, baseline + write tool confirmation, and both applied. Fix the evaluation set version, model/prompt/tool versions, number of repetitions (and verdict method). Examine the scenario-level attack pass rate together with the normal task completion rate (or false positive rate). Comparing configurations that omit a control allows you to identify redundant controls.

Chapter 5

5-1. Any four of the following: session identifiers, access tokens, passwords, encryption keys and secrets, database connection strings, payment information, and sensitive personal information. Instead, retain information such as hashed user identifiers, trace identifiers, tool names and result statuses, token counts, and guardrail verdicts.

5-2. Alerts only notify humans while execution continues, whereas budget caps cause code to halt execution. Caps that can be placed on a single task include the number of model calls, the number of tool calls and retries, the number of subagents, recursion depth, cost, and execution time.

5-3. Continuous input overflow is repeatedly sending inputs that exceed the context window, and is prevented by input size caps. Resource-intensive queries exhaust resources through computationally expensive requests, and are prevented by timeouts and throttling, resource allocation management, and rate limiting.

5-4. According to Anthropic documentation, while the weights for a model ID are pinned (previous generation aliases track the latest snapshot), observed behavior may change slightly when serving infrastructure such as request routers, safety classifiers, and sampling logic changes. Operations teams regularly rerun regression evaluation suites and track deprecation and retirement schedules to test replacement models in advance before retirement.

5-5. Show the command to be executed in an untruncated form including its arguments, disclose that it is a risky operation executing code on the user's system, and obtain explicit user approval (cancellation must also be possible). It is recommended that server commands be executed in a sandbox with minimal default privileges and restricted file and network access.

5-6. Cases where personal information concerning 1,000 or more data subjects has been leaked or breached, cases where sensitive information or unique identification information has been leaked or breached, and cases where a leak or breach occurs due to unlawful external access to personal information processing systems or information devices used for processing personal information. Report to the Personal Information Protection Commission (PIPC) or the Korea Internet & Security Agency (KISA) within 72 hours of becoming aware of the incident. Because there are exceptions for unavoidable reasons or when the possibility of infringement of rights and interests has been significantly reduced due to recovery or deletion, the actual determination is made by the Personal Information Protection Officer and the legal team.

5-7. Sample answer. (1) Halting memory writes: Disabled by the AI platform on-call engineer; saving new memories halts while reading existing memories is maintained. If contamination is confirmed, a second stage is implemented to disable reading as well. (2) Blocking external dispatch tools: Disabled by the service on-call engineer; sending emails and messages halts, leaving only draft creation. (3) Disconnecting connectors and MCP connections and revoking tokens: Executed by security operations; queries and modifications to the relevant external systems halt. (4) Read-only guidance mode: Enabled by the service lead; consultations are scaled down to focus primarily on pre-prepared guidance.