Imad Muratspahic - Endpoint Security on macOS: Building EDR the Apple Way
Endpoint Security on macOS: Building EDR the Apple Way
The Endpoint Security Framework, Entitlements, and Kernel-Adjacent Telemetry
Imad Muratspahic
Описание
Every process launch, every file open, every memory mapping, every kernel extension load on a modern Mac can be inspected before it happens — if you hold the entitlement Apple grants only to vetted security vendors. This book explains what that entitlement enables, how the Endpoint Security framework delivers over 150 event types to userspace, and how to build a functioning EDR on top of it.It walks the ES client architecture from es_new_client through the handler block, the subscription model, and the two event categories — NOTIFY for telemetry and AUTH for enforcement. From there it moves into authorization policy, the deadline mechanism, muting strategies for surviving the event flood, code signing and notarization as trust signals, and the detection engine that turns raw events into scored alerts. Later chapters cover telemetry pipelines, integration with TCC, SSV, and SIP, the EDR's own observability, testing with eslogger, and enterprise deployment through MDM.Real C and Swift code throughout, with complete working examples for process execution monitoring, file operation enforcement, memory mapping control, and XPC communication between the system extension and the container app. Written for security engineers, macOS developers, and detection engineers building or evaluating endpoint security on Apple platforms.
