From Kernel Hooks to Zero Trust: A Security Professional’s Guide
- About this book
Introduction: The Endpoint as the Last Line
Chapter 1: The Evolution of Endpoint Security
- From Signatures to Behavior: The Failure Modes of Classic Antivirus
- The HIDS Interlude and the Limits of Log Monitoring
- Birth of EDR: Threat Intelligence and the Need for Context
- Architectural Principles of Modern Endpoint Protection
Chapter 2: Operating System Architecture Fundamentals
- Kernel and User Mode: The Security Boundary
- Process and Thread Lifecycle: From Creation to Termination
- Memory Management and Virtual Address Spaces
- System Calls: The Kernel Interface
- File Systems, Handles and Network Stacks
Chapter 3: Security Models and the Modern Threat Landscape
- OS Security Models: DAC, MAC and Mandatory Integrity
- The Privilege Ladder: From Unprivileged to SYSTEM and root
- Adversary Taxonomies: Nation-States, Ransomware Gangs and Opportunists
- The MITRE ATT&CK Framework as a Common Language
Chapter 4: Windows Endpoint Instrumentation
- Event Tracing for Windows: Providers, Sessions and Real-Time Consumption
- Sysmon and the Windows Security Monitoring Toolkit
- Minifilter Drivers and the File System Filter Stack
- Kernel Callbacks: Process, Thread, Image and Registry Notifications
- WMI, Scheduled Tasks and the Persistence Surface
Chapter 5: Linux Endpoint Instrumentation
- The Linux Instrumentation Landscape
- eBPF: The Programmable Kernel Instrumentation Framework
- Tracepoints, kprobes and uprobe Attachment in Practice
- The Linux Audit Subsystem
- fanotify: Filesystem Access Control
- ptrace: Process Tracing and Inspection
- /proc and /sys: Kernel Information Filesystems
- seccomp: System Call Filtering
- Choosing the Right Instrumentation Layer
- Linux EDR and MITRE ATT&CK Coverage
- Summary
Chapter 6: macOS and Apple Silicon Endpoint Instrumentation
- The Endpoint Security Framework: Overview
- System Extensions and the Death of Kernel Extensions
- AMFI, Code Signing and the Gatekeeper Pipeline
- Launch Services, Daemons and Persistence on macOS
- Apple Silicon: ARM64 Kernel Changes and Their Security Implications
- macOS EDR and MITRE ATT&CK Coverage
- Summary
Chapter 7: Kernel Hooks, Event Interception and Sensor Design
- Hooking Techniques: Inline Hooks, IAT Hooks and Callback Chains
- Event Interception Patterns: Synchronous, Asynchronous and Buffered
- Performance Overhead, Event Loss and Backpressure
- Kernel Stability and the Blue Screen Problem
- Tamper Resistance and Anti-Debugging in Kernel Sensors
- Sensor Design Principles
- Summary
Chapter 8: EDR Agent Architecture
- The Agent Process Model
- Event Collection, Normalization and Enrichment
- Telemetry Serialization, Transport and Resilience
- Policy Engines, Configuration Management and Updates
- Self-Protection: Driver Signing, Integrity Checks and Kill-Switch Defense
- Summary
Chapter 9: The Telemetry Lifecycle: From System Call to Signal
- The Lifecycle as a Pipeline
- A Narrative Walkthrough: Following a Single Event
- Collection and Pre-Filtering: What to Send and What to Drop
- Event Normalization, Schema Design and Enrichment
- Transport Protocols, Buffering and Event Loss Mitigation
- Ingestion, Indexing and Storage Architectures
- Analytics and Detection
- From Alert to Incident: Triage, Investigation and Response Loops
- Alert Fatigue and Signal Quality
- Summary
Chapter 10: Centralized EDR Platform Architecture
- 10.1 The Scale Problem and Design Goals
- 10.2 Distributed Telemetry Ingestion and Load Distribution
- 10.3 Message Queues and Stream Processing Engines
- 10.4 Time-Series Storage, Search Infrastructure and Retention
- 10.5 Detection Engines: Rule-Based, Behavioral and ML-Driven
- 10.6 Multi-Tenancy, Scalability, Resilience and High Availability
- 10.7 Summary
Chapter 11: Detection Engineering Foundations
- 11.1 Detection as an Engineering Discipline
- 11.2 MITRE ATT&CK Mapping and Coverage Analysis
- 11.3 Behavioral Rules vs Indicators of Compromise
- 11.4 Correlation Logic and Multi-Event Detections
- 11.5 Testing, Tuning and False Positive Management
- 11.6 Summary
Chapter 12: Process Injection and Memory Manipulation
- 12.1 The Injection Problem and Its Taxonomy
- 12.2 Windows Memory and Process Control Primitives
- 12.3 Classic Windows Injection Techniques
- 12.4 DLL Injection, Reflective Loading and Shared Memory
- 12.5 Cross-Platform Injection: Linux and macOS
- 12.6 The Telemetry Signature of Injection
- 12.7 Detection Strategies for Process Injection
- 12.8 Practical Detection Implementations
- 12.9 Cross-Event Correlation Rules
- 12.10 Summary and Transition