Leanpub Header

Skip to main content

Ausnutzung von Pufferüberläufen und Umgehung von Schutzmechanismen

Ein tiefer Einblick in Speicherbeschädigungs-Schwachstellen, Ausnutzung und Verteidigung

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

Speicherkorruption zählt zu den schwerwiegendsten Klassen von Softwareschwachstellen. Dieses Buch vermittelt die Grundlagen, moderne Exploitation-Techniken und wirksame Schutzmaßnahmen und richtet sich an IT-Sicherheitsexperten sowie Schwachstellenforscher.

This book is a translation into German 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
190
Pages
About

About

About the Book

Dieses Buch bietet eine umfassende und technisch fundierte Darstellung von Speicherkorruptionsschwachstellen – von den Grundlagen der CPU-Architektur, die deren Entstehung ermöglichen, bis hin zu den fortgeschrittenen Exploitation-Techniken und modernen Schutzmechanismen, welche die heutige Sicherheitslandschaft prägen. Beginnend mit der Architektur des Computerspeichers, dem Aufbau von Prozessen und den Grundlagen der Assemblersprache führt es über stackbasierte und heapbasierte Pufferüberläufe, Use-after-Free-Schwachstellen, Format-String-Schwachstellen sowie verwandte Speicherkorruptionsfehler. Das Buch behandelt Konzepte der Exploit-Entwicklung, darunter Shellcode, Return-Oriented Programming (ROP), Jump-Oriented Programming (JOP) und Information Leaks sowohl auf Windows- als auch auf Linux-Plattformen. Moderne Schutzmechanismen wie DEP/NX, ASLR, Stack-Canaries, Intel CET, ARM PAC und Control Flow Integrity (CFI) werden eingehend untersucht, ebenso wie das fortlaufende Wettrüsten zwischen Exploitation-Forschung und Verteidigungsmechanismen. Die abschließenden Kapitel befassen sich mit Methoden der Schwachstellenforschung, Fuzzing, sicheren Programmierpraktiken und der Reaktion auf Sicherheitsvorfälle. Dieses Buch richtet sich an IT-Sicherheitsexperten, Reverse Engineers, Schwachstellenforscher sowie fortgeschrittene Studierende, die Speicherkorruption auf ihrem tiefsten technischen Niveau verstehen möchten, um Systeme wirksam schützen zu können. Sämtliche beschriebenen Techniken werden ausschließlich im Kontext ethischer Sicherheitsforschung und verantwortungsvoller Offenlegung von Schwachstellen dargestellt.

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

Ein tiefer Einblick in Speicherbeschädigungs-Schwachstellen, Ausnutzung und Verteidigung

Einleitung

Kapitel 1: Computer-Speicherarchitektur und CPU-Grundlagen

  1. Die Von-Neumann-Architektur und Speicheradressierung
  2. CPU-Register und ihre Rollen
  3. Instruktionsexekution und der Fetch-Decode-Execute-Zyklus
  4. Endianess und Datenrepräsentation
  5. Privilegbenen und Ring-Architektur
  6. Speicherabbildung auf Hardware-Ebene

Kapitel 2: Prozess-Speicheranordnung und Betriebssystem-Speicherverwaltung

  1. Virtueller Speicher und Adressübersetzung
  2. Die Text-, Data-, BSS-, Heap- und Stack-Segmente
  3. Shared Libraries und dynamisches Linking
  4. Speicherallokation: malloc, free und der Allocator
  5. Page Tables und die MMU
  6. Cross-Platform-Unterschiede: Linux vs. Windows-Speicheranordnung

Kapitel 3: Grundlagen der Assemblersprache und Aufrufkonventionen

  1. Überblick über den x86- und x86_64-Befehlssatz
  2. Häufige Befehle für die Exploit-Entwicklung
  3. Der Stapelrahmen: Prolog, Epilog und lokale Variablen
  4. System V AMD64 ABI-Aufrufkonvention
  5. Windows x64-Aufrufkonvention
  6. Positionsunabhängiger Code und Relokationen

Kapitel 4: Debugging-Workflows und Grundlagen der Binäranalyse

  1. GDB-Grundlagen für die Sicherheitsforschung
  2. WinDbg, x64dbg und Mona.py unter Windows
  3. Speicherinspektion und Haltepunkt-Strategien
  4. Reverse Engineering mit radare2 und Ghidra
  5. Statische Analyse: objdump, readelf und PE-Tools
  6. Dynamische Analyse und Instrumentierung mit Frida

Kapitel 5: Stapelbasierte Pufferüberläufe

  1. Anatomie eines stapelbasierten Überlaufs
  2. Überschreiben der Rücksprungadresse und Entführung des Kontrollflusses
  3. Finden des Offsets: Mustererstellung und Absturzanalyse
  4. NOP-Sleds und Shellcode-Platzierung
  5. Umgebungsvariablen und Stack Spraying
  6. Auswirkungen auf Windows- und Linux-Systeme
  7. Durchgang: Kompletter Stapelüberlauf-Exploit mit Shellcode-Injektion

Kapitel 6: Heap-basierte Pufferüberläufe und Heap-Manipulation

  1. Wie Memory-Allocatoren funktionieren: glibc ptmalloc und Windows Heap
  2. Heap Chunk Metadaten und Freilistenverwaltung
  3. Heap-Overflow-Exploitation-Techniken
  4. Bin-Sortierung und Konsolidierungsangriffe
  5. House of Force, House of Spirit und benannte Heap-Techniken
  6. Walkthrough: Fastbin-Angriff mit Arbitrary Write Primitive

Kapitel 7: Verwandte Speicher-Korruptions-Schwachstellen

  1. Off-by-One-Fehler und ihre Ausnutzung
  2. Integer-Überläufe, die zu Speicher-Korruption führen
  3. Use-After-Free-Schwachstellen
  4. Double-Free und Freigabe-Pointer-Manipulation
  5. Format-String-Schwachstellen
  6. Zugriff außerhalb der Grenzen (Out-of-Bounds Reads and Writes)
  7. Race Conditions, die die Speicher-Sicherheit beeinflussen
  8. Walkthrough: Tcache-Vergiftungs-UAF mit Vtable-Überschreibung
  9. Walkthrough: Format-String-Beliebiges-Schreiben via GOT-Überschreibung

Kapitel 8: Shellcode-Grundlagen und Kontrollflussentführung

  1. Was ist Shellcode und warum ist er wichtig
  2. Schreiben positionsunabhängigen Shellcodes
  3. Syscall-basierter Shellcode für Linux
  4. Windows-API-Auflösung und LoadLibrary-Techniken
  5. Nullbyte-Handhabung und Kodierung
  6. Polymorphe und kodierte Payloads
  7. Schritt-für-Schritt-Anleitung: Shellcode in einem Stack-Overflow erstellen und ausführen

Kapitel 9: Return-Oriented Programming und Code-Wiederverwendungsangriffe

  1. Das Problem, das DEP löste, und die ROP-Lösung
  2. Aufbau von ROP-Ketten: Gadgets, Pivots und Register
  3. Gadgets mit ropper und ROPgadget finden
  4. ROP unter Linux: Systemaufruf-Konstruktion
  5. ROP unter Windows: VirtualAlloc und WinExec
  6. Durchgang: Vollständige ROP-Kette gegen eine gehärtete Binärdatei
  7. Jump-Oriented Programming (JOP)
  8. Signal-Oriented Programming (SROP)
  9. Oriented Return Composition (ORC)

Kapitel 10: Informationslecks und Adresspreisgabe

  1. Warum ASLR die Ausnutzung erschwert
  2. Heap Spraying und deterministisches Speicherlayout
  3. Format-String-Informationspreisgabe
  4. Return-to-PLT und GOT-Überschreibung zum Lecken
  5. Praxisbeispiel: Mehrstufige Exploit-Kette mit ASLR-Umgehung
  6. Windows-ASLR-Umgehungstechniken
  7. Partielle Überschreibungen und reduzierte Entropie
  8. Cross-Process-Informationsbeschaffung

Kapitel 11: Moderne Verteidigungsmaßnahmen und Gegenmaßnahmen

  1. DEP/NX: Nicht ausführende Speicherseiten
  2. ASLR: Address Space Layout Randomization
  3. Stack Canaries und ProPolice
  4. PIE, RELRO und GOT-Schutz
  5. SafeSEH und CFG auf Windows
  6. Control Flow Integrity (CFI)
  7. Intel CET: Shadow Stacks und Indirect Branch Tracking
  8. ARM Pointer Authentication (PAC)
  9. Sandboxing und Prozessisolierung

Kapitel 12: Umgehungsforschung und der Wettrüsten zwischen Exploits und Schutzmaßnahmen

  1. Der Zeitstrahl: Vom Stack Smashing bis zu modernen Schutzmaßnahmen
  2. Canary-Umgebungstechniken
  3. ASLR-Entropie-Analyse und Umgehung
  4. Full RELRO und GOT-Schreib-Einschränkungen
  5. CFI-Umgehungsforschung
  6. CET-Umgehungsansätze
  7. PAC-Umgehung auf ARM
  8. Die Zukunft: Was kommt als Nächstes

Kapitel 13: Methoden der Schwachstellenforschung

  1. Fuzzing-Strategien: Abdeckungsgeleitetes und mutationsbasiertes Fuzzing
  2. Walkthrough: Einrichten und Durchführen einer Fuzzing-Kampagne
  3. Crash-Triage und Root-Cause-Analyse
  4. Binäranalyse: Symbolische Ausführung und konkolisches Testing
  5. Speichersanitizer: ASan, MSan, UBSan
  6. Differenzfuzzing und plattformübergreifender Vergleich
  7. Verantwortliche Offenlegung und CVE-Zuweisung

Kapitel 14: Sichere Programmierpraktiken und Compiler-Härtung

  1. Sichere String- und Speicherfunktionen
  2. Bereichsprüfung und sichere Integer-Arithmetik
  3. Compiler-Flags: FORTIFY_SOURCE, StackProtector, CFProtection
  4. Speichersichere Sprachen: Rust als Alternative
  5. Code-Review-Techniken für Speichersicherheit
  6. Statische Analysewerkzeuge: Clang Analyzer, Coverity, PVS-Studio

Kapitel 15: Exploit-Erkennung, Incident Response und Forensik

  1. Erkennung von Pufferüberlauf-Angriffen in der Praxis
  2. EDR und Verhaltensüberwachung für Speicherfehleranfälligkeiten
  3. Core-Dump-Analyse und Post-Mortem-Debugging
  4. Netzwerkebene-Exploit-Erkennung
  5. Incident-Response-Playbooks für RCE-Ereignisse
  6. Forensische Rekonstruktion des Zeitplans
  7. Lehren aus großen Exploit-Vorfällen
  8. Walkthrough: Forensische Analyse eines Stack-Overflow-Exploits

Fazit

Literaturverzeichnis

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