---
title: プロンプトインジェクション3層防御 — AIエージェント時代のセキュリティ実践
tags:  #セキュリティ #プロンプトインジェクション #mcp #生成ai #aiエージェント  
author: [井本 賢](https://www.docswell.com/user/kenimo49)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/87DKRKD5JG.jpg?width=480
description: 「社内ツールだから大丈夫」。そう思っていたAIボットが、ある日プロンプトインジェクションで突破されました。素朴な正規表現フィルタでは、全角化やゼロ幅文字を使った攻撃を止められません。  このスライドは、前処理・ルールベース・分類器・LLM判定を組み合わせた3層防御の設計思想を12枚にまとめた実践編です。速度・精度・コストのトレードオフを層ごとに最適化する考え方を扱います。  MCP / AIエージェントの本番セキュリティの全体像は関連書籍にまとめています。  ▼関連書籍『MCP実践セキュリティ』Zenn Book（無料） https://zenn.dev/kenimo49/books/mcp-security-practice  ▼Kindle版 https://www.amazon.co.jp/dp/B0GGYKSLNM  著者: ken imoto / kenimoto.dev
published: June 11, 26
canonical: https://www.docswell.com/s/kenimo49/5DMWW4-prompt-injection-3layer-defense
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/87DKRKD5JG.jpg)



# Page. 2

![Page Image](https://bcdn.docswell.com/page/VJPKWKXDE8.jpg)



# Page. 3

![Page Image](https://bcdn.docswell.com/page/2EVV8VLGEQ.jpg)



# Page. 4

![Page Image](https://bcdn.docswell.com/page/57GL5L3DEL.jpg)



# Page. 5

![Page Image](https://bcdn.docswell.com/page/4EQYZY5XJP.jpg)



# Page. 6

![Page Image](https://bcdn.docswell.com/page/KJ4W3W9271.jpg)



# Page. 7

![Page Image](https://bcdn.docswell.com/page/LE1Y1YKK7G.jpg)



# Page. 8

![Page Image](https://bcdn.docswell.com/page/GEWG8GDPJ2.jpg)



# Page. 9

![Page Image](https://bcdn.docswell.com/page/47ZL8LG6J3.jpg)



# Page. 10

![Page Image](https://bcdn.docswell.com/page/YJ6WPWYLJV.jpg)



# Page. 11

![Page Image](https://bcdn.docswell.com/page/GJ5MKMGMJ4.jpg)



# Page. 12

![Page Image](https://bcdn.docswell.com/page/9E29W9YR7R.jpg)



