Leanpub Header

Skip to main content

バッファオーバーフローの悪用と防御の回避

メモリ破壊脆弱性の徹底解説:エクスプロイトと防御

This book is 100% completeLast updated on 2026-07-16

メモリ破損は、依然としてソフトウェアの脆弱性の中でも最も重大な分類の一つです。本書では、メモリ破損の基礎から、現代のエクスプロイト技術、それらを防ぐために設計された防御機構までを包括的に取り上げ、セキュリティ専門家や研究者がこれらの脆弱性の仕組みを深く理解し、効果的な対策を講じるための知識を提供します。

This book is a translation into Japanese of Buffer Overflow Exploitation and Defense Evasion which was originally written in English

Minimum price

$19.00

$29.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
WEB
APP
163
Pages
About

About

About the Book

本書は、メモリ破壊脆弱性について包括的かつ技術的に厳密な扱いを提供します。CPU アーキテクチャの基盤から、高度なエクスプロイト技術、そして今日のセキュリティランドスケープを定義する現代の防御機構までを網羅します。コンピュータのメモリアーキテクチャ、プロセスレイアウト、アセンブリ言語の基礎から始まり、スタックベースおよびヒープベースのバッファオーバーフロー、use-after-free、フォーマット文字列脆弱性、および関連するメモリ破壊バグへと進みます。本書は、シェルコード、リターンエンテッドプログラミング、ジャンプ指向プログラミング、およびWindowsとLinuxの両プラットフォームにおける情報リークなどのエクスプロイト開発コンセプトをカバーします。DEP/NX、ASLR、スタックカニバリ、Intel CET、ARM PAC、コントロールフローインテグリティなどの現代のミティゲーションを詳細に解説し、エクスプロイト研究と防御機構の間の継続的な軍備競争についても取り上げます。最終章では、脆弱性研究メソッド論、ファジング、セキュアコーディングプラクティス、およびインシデントレスポンスについて述べています。本書は、防御目的のためにメモリ破壊を最も深いレベルで理解したいセキュリティプロフェッショナル、リバースエンジニア、脆弱性研究者、そして上級学生を対象としています。記載されているすべての技術は、倫理的セキュリティ研究と責任ある公開の文脈で提示されています。

Author

About the Author

Steve Publications

Steve is a technology professional with more than 20 years of experience in software development, server infrastructure, cybersecurity, vulnerability research and reverse engineering. Throughout his career, he has designed, secured, analyzed and tested complex software and infrastructure, with a particular focus on understanding how systems fail and how they can be made more secure.

Outside of work, Steve enjoys sharing knowledge with the technology community. He collaborates with researchers, industry experts and technology professionals to write practical books covering software development, cybersecurity, cloud computing, networking, DevOps, artificial intelligence and enterprise technologies. His books focus on practical learning through clear explanations, real-world examples and hands-on exercises. With more than two decades of industry experience, his goal is to help IT professionals, students and technology enthusiasts build useful skills and stay current in a rapidly changing industry.

We believe readers deserve to know how our books are created. Most of our authors are not native English speakers, so we use AI to help translate, proofread manuscripts, fix grammar, improve sentence structure and make technical explanations easier to read. AI is used as an editing tool only. It does not replace the research, technical knowledge or hands-on experience behind our books. Some of our authors also prefer to remain anonymous for privacy or professional reasons. In those cases, we publish their work under a different name. The author's name may be different, but the quality of the content and our review process remain the same.

Every book is written, reviewed and maintained by experienced technology professionals, with contributions from our private technical community of more than 400 engineers and researchers from Ukraine, Belarus and Russia. We spend far more time validating technical accuracy and keeping our content up to date than generating text. We are always interested in working with experienced professionals who have deep expertise in a particular technology or domain. If you would like to publish a book with us or help review an existing manuscript, we'd love to hear from you. Send us a message describing your area of expertise. We are especially interested in niche technologies, specialized skills and emerging topics that are underrepresented in existing technical literature.

If you look through the contents of our books, you'll see practical examples, detailed explanations and material that is regularly updated. Our goal is to publish books that professionals can actually rely on, not low-effort AI-generated content. If you ever feel that one of our books does not meet that standard, Leanpub offers a 60-day money-back guarantee. Feel free to request a refund if you are not satisfied with your purchase.

Translations

Translations

Contents

Table of Contents

メモリ破壊脆弱性の徹底解説:エクスプロイトと防御

はじめに

第1章:コンピュータメモリアーキテクチャとCPU基礎

  1. ヨン・ノイマンアーキテクチャとメモリアドレッシング
  2. CPUレジスタとその役割
  3. 命令実行とフェッチ・デコード・実行サイクル
  4. エンディアンとデータ表現
  5. 特権レベルとリングアーキテクチャ
  6. ハードウェアレベルでのメモリマッピング

第2章:プロセスメモリレイアウトとオペレーティングシステムメモリ管理

  1. 仮想メモリとアドレス変換
  2. テキスト、データ、BSS、ヒープ、スタックセグメント
  3. 共有ライブラリと動的リンク
  4. メモリ割り当て:malloc、free、アロケータ
  5. ページテーブルとMMU
  6. クロスプラットフォームの違い:Linux対Windowsメモリレイアウト

第3章:アセンブリ言語の基礎と呼び出し規約

  1. x86およびx86_64命令セットの概要
  2. エクスプロイト開発における一般的な命令
  3. スタックフレーム:プロローグ、エピローグ、およびローカル変数
  4. System V AMD64 ABI 呼び出し規約
  5. Windows x64 呼び出し規約
  6. 位置独立コードとリロケーション

第4章:デバッグワークフローとバイナリ分析の基礎

  1. セキュリティ研究におけるGDBの基礎
  2. Windows上のWinDbg、x64dbg、およびMona.py
  3. メモリ検査とブレークポイント戦略
  4. radare2およびGhidraによるリバースエンジニアリング
  5. 静的解析:objdump, readelf, およびPEツール
  6. Fridaによる動的解析と計装

第5章:スタックベースのバッファオーバーフロー

  1. スタックベースオーバーフローの解剖
  2. リターンアドレス上書きとコントロールフロー乗っ取り
  3. オフセット検索:パターン作成とクラッシュ分析
  4. NOPスレッドとシェルコード配置
  5. 環境変数とスタックスプレーイング
  6. WindowsおよびLinuxシステムへの影響
  7. ワークスルー:シェルコード注入による完全なスタックオーバーフローエクスプロイト

第6章:ヒープベースのバッファオーバーフローとヒープ操作

  1. メモリアロケータの動作:glibc ptmallocおよびWindowsヒープ
  2. ヒープチャンクメタデータとフリーリスト管理
  3. ヒープオーバーフローエクスプロイト技術
  4. ビンソートと統合攻撃
  5. House of Force, House of Spirit, および命名ヒープ技術
  6. ワークスルー:任意書きプリミティブによるFastbin攻撃

第7章:関連するメモリ破壊脆弱性

  1. オフバイワンエラーとそのエクスプロイト
  2. メモリ破壊につながる整数オーバーフロー
  3. Use-After-Free 脆弱性
  4. ダブルフリーと解放ポインタ操作
  5. フォーマット文字列脆弱性
  6. 境界外読み取りと書き込み
  7. メモリセーフティに影響する競合状態
  8. ワークスルー:vtable上書きによるTcacheポイズニングUAF
  9. ワークスルー:GOT上書きによるフォーマット文字列任意書き込み

第8章:シェルコードの基礎とコントロールフロー乗っ取り

  1. シェルコードとは何か、そしてなぜそれが重要か
  2. 位置独立シェルコードの書き方
  3. Linux用システムコールベースシェルコード
  4. Windows API解決とLoadLibrary技術
  5. Nullバイト処理とエンコーディング
  6. ポリモルフィックおよびエンコードペイロード
  7. ワークスルー:スタックオーバーフローでのシェルコード構築および実行

第9章:リターンエンテッドプログラミングとコード再利用攻撃

  1. DEPが解決した問題とROPソリューション
  2. ROPチェーンの構築:ガジェット、ピボット、レジスタ
  3. ropperおよびROPgadgetによるガジェット検索
  4. Linux上のROP:システムコール構築
  5. Windows上のROP:VirtualAllocおよびWinExec
  6. ワークスルー:強化されたバイナリに対する完全なROPチェーン
  7. ジャンプ指向プログラミング(JOP)
  8. sigreturn指向プログラミング(SROP)
  9. Oriented Return Composition(ORC)

第10章:情報リークとアドレス公開

  1. なぜASLRがエクスプロイトを困難にするか
  2. ヒューブスプレーイングと決定論的メモリアウト
  3. フォーマット文字列情報開示
  4. return-to-PLTおよびGOT上書きによるリーク
  5. ワークスルー:ASLRバイパスによるマルチステージエクスプロイトチェーン
  6. Windows ASLRバイパス技術
  7. 部分的な上書きと減少エントロピー
  8. クロスプロセス情報収集

第11章:現代の防御とミティゲーション

  1. DEP/NX: 非実行メモリページ
  2. ASLR: アドレス空間レイアウトランダム化
  3. スタックカニバリおよびProPolice
  4. PIE, RELRO, およびGOT保護
  5. SafeSEHおよびCFG(Windows)
  6. コントロールフローインテグリティ(CFI)
  7. Intel CET: シャドウスタックおよび間接ブランチトラッキング
  8. ARM ポインタ認証(PAC)
  9. サンドボックス化およびプロセス分離

第12章:バイパス研究とエクスプロイト-ミティゲーション軍備競争

  1. タイムライン:スタックスマッシングから現代の防御へ
  2. カニバリバイパス技術
  3. ASLRエントロピー分析およびバイパス
  4. Full RELROおよびGOT書き込み制限
  5. CFIバイパス研究
  6. CETバイパスアプローチ
  7. ARM上のPACバイパス
  8. 未来:何が次に来るか

第13章:脆弱性研究メソッド論

  1. ファジング戦略:カバレッジガイド型およびミューテーションベース
  2. ワークスルー:ファジングキャンペーンのセットアップおよび実行
  3. クラッシュトライアージと根本原因分析
  4. バイナリ分析:象徴的実行およびコンコリックテスト
  5. メモリサニタイザ: ASan, MSan, UBSan
  6. 差分ファジングおよびクロスプラットフォーム比較
  7. 責任ある公開およびCVE割り当て

第14章:セキュアコーディングプラクティスとコンパイラ強化

  1. 安全な文字列およびメモリ関数
  2. 境界チェックおよび安全な整数算術
  3. コンパイラフラグ: FORTIFY_SOURCE, StackProtector, CFProtection
  4. メモリセーフ言語: Rustを代替として
  5. メモリセーフティのためのコードレビュー技術
  6. 静的解析ツール: Clang Analyzer, Coverity, PVS-Studio

第15章:エクスプロイト検出、インシデントレスポンス、およびフォレンジック

  1. 野良でのバッファオーバーフロー攻撃の検出
  2. EDRおよびメモリ破壊のための振る舞いモニタリング
  3. コアダンプ分析および死後デバッグ
  4. ネットワークレベルエクスプロイト検出
  5. フォレンジックタイムライン再構築
  6. 主要エクスプロイトインシデントからの教訓
  7. ワークスルー:スタックオーバーフローエクスプロイトのフォレンジック分析

結論

参考文献

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub