Claude認定 対策ノート

講座 › 分野7 セキュリティと安全性

7.2 ガードレールと安全なデプロイ

配点 2.3%Guardrails and Safe Deployment

ガードレールは1枚では足りない。重ねて使う。権限は最小に、危険な操作は隔離した環境で。

未読

ガードレールの多層化

図解:ガードレールの多層化

公式のガイドは、複数の対策を組み合わせて守ることを勧めています。入力の事前の振り分け、入力の検査、プロンプトでの境界の明示、ツールの出力の検査、繰り返し違反する利用者への対応などを重ねます。

出典: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
consider throttling or banning users who repeatedly attempt to circumvent your application’s guardrails
https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guard…(取得 2026-11-17)

最小権限

図解:最小権限

エージェントには、作業に必要な権限だけを与えます。Claude Codeの権限のルールは、拒否、確認、許可の順に評価され、最初に当たったものが結果を決めます。より具体的なルールが先に評価されるわけではない点に注意します。サブエージェントも、使えるツールを絞って制約をかけられます。

出典:Permissions
Rules are evaluated in order: deny, then ask, then allow. The first match in that order determines the outcome, and rule specificity doesn't change the order.
https://code.claude.com/docs/en/permissions.md(取得 2026-11-17)
出典:Subagents
Enforce constraints by limiting which tools a subagent can use
https://code.claude.com/docs/en/sub-agents.md(取得 2026-11-17)

隔離と安全な既定値

図解:隔離と安全な既定値

Claude Codeのサンドボックスは、シェルのコマンドが届くファイルとネットワークの範囲を、OSの仕組みで制限します。すべての確認を飛ばす bypassPermissions のモードは、隔離したコンテナやVMだけで使います。本番のエージェントでは、信頼の度合いの違う部品を境界で分けます。

出典:Sandboxing
The Bash sandbox is a boundary that the operating system enforces around the shell commands Claude runs on your machine.
https://code.claude.com/docs/en/sandboxing.md(取得 2026-11-17)
出典:Permission modes (auto mode)
Everything | Isolated containers and VMs only
https://code.claude.com/docs/en/permission-modes.md(取得 2026-11-17)
出典:Securely deploying AI agents
A security boundary separates components with different trust levels.
https://code.claude.com/docs/en/agent-sdk/secure-deployment.md(取得 2026-11-17)

コンテンツポリシー

図解:コンテンツポリシー

利用者が作るコンテンツの審査(モデレーション)にもClaudeを使えます。自分のアプリの方針に合わせて、何を許し何を止めるかの基準を決め、事前の振り分けやガードレールの一部として組み込みます。

出典:Batch processing
Content moderation: Analyze large volumes of user-generated content asynchronously.
https://platform.claude.com/docs/en/build-with-claude/batch-processing…(取得 2026-11-17)
出典: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)
試験のポイント