講座 › 分野7 セキュリティと安全性
7.1 AIアプリケーションのセキュリティ
配点 3.2%AI Application Security
外から入るテキストはすべて「データ」。指示と分け、事前に検査し、注入されても危険な操作に届かない仕組みにする。
未読
プロンプトインジェクションとジェイルブレイク 読了

利用者の入力や、ツールが取ってきたWebページの中に、モデルへの指示が紛れ込むことがあります。対策は重ねて行います。小さく速いモデルで入力を事前に振り分ける、既知の攻撃の型で入力を検査する、システムプロンプトで断り方まで明示する、などです。ツールが返した内容も、Claudeが行動する前に同じように検査します。
出典:Mitigate jailbreaks
Use a lightweight model such as Claude Haiku 5.5 to pre-screen user input before it reaches your main conversation.https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guard…(取得 2026-11-17)
出典:Mitigate jailbreaks
Screen tool outputs before Claude acts on them.https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guard…(取得 2026-11-17)
出典:Mitigate jailbreaks
Craft system prompts that emphasize ethical and legal boundaries, and that explicitly tell Claude how to refuse.https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guard…(取得 2026-11-17)
信頼できない入力の取り扱い 読了

外から取ってきた内容は、信頼できないデータとして扱い、こちらが与える指示とは分けておきます。そして、注入された指示が機密性の高い操作を起こせないよう、ガードレールやフックで止めます。「悪い指示を書かないで」とお願いする一文は、強制力のある対策になりません。
出典:Claude Certified Developer – Foundations 試験ガイド v1.0(日本語)
取得したページのコンテンツを信頼できない入力として扱い、信頼できる指示とは分離しておきhttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-17)
出典:Claude Certified Developer – Foundations 試験ガイド v1.0(日本語)
temperature(A)はインジェクションとは無関係ですhttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-17)
データ漏えいとプロンプトの漏えいの防止 読了

プロンプトに入れた機密の情報は、漏れる危険があります。完全な方法はありませんが、背景の情報と利用者の質問を分ける、Claudeの出力を後処理で検査する、プロンプトを点検する、といった対策で危険を大きく減らせます。そもそも不要な機密の情報はプロンプトに入れないことが基本です。
出典:Reduce prompt leak
Reduce the risk of prompt leaks by separating context from user queries, filtering Claude's outputs, and auditing promptshttps://platform.claude.com/docs/en/test-and-evaluate/strengthen-guard…(取得 2026-11-17)
出典:Reduce prompt leak
Although no method is foolproof, the following strategies can significantly reduce the risk.https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guard…(取得 2026-11-17)
MCPでの認証と認可 読了

MCPのサーバーは、自分宛てに発行されていないトークンを受け取って、そのまま別のAPIに渡してはいけません(トークンの素通し)。これは仕様で明確に禁止されています。権限の確認をすり抜ける「混乱した代理人」の問題にも注意します。
出典:MCP security best practices
Token passthrough is explicitly forbidden in thehttps://modelcontextprotocol.io/docs/2025-11-25/tutorials/security/sec…(取得 2026-11-17)
出典:MCP security best practices
To prevent confused deputy attacks, MCP proxy servers MUST implementhttps://modelcontextprotocol.io/docs/2025-11-25/tutorials/security/sec…(取得 2026-11-17)
試験のポイント
- インジェクション対策は「分ける・検査する・仕組みで止める」。お願いは対策ではない。
出典:Mitigate jailbreaks
Combine strategies for robust protection. Here’s an enterprise-grade example with tool use
https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guard…(取得 2026-11-17) - ツールの結果も信頼できない入力。行動の前に検査する。
出典:Mitigate jailbreaks
Apply the same lightweight-model screening pattern you use for user input to the content your tools return.
https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guard…(取得 2026-11-17)