EDR Internals - Research and development

EDR Internals: Research & Development Course

EDR training from both sides: research how Microsoft Defender for Endpoint and OpenEDR detect threats, then build the same kernel components yourself, with Uriel Kosayev and Pavel Yosifovich.

135 Lessons
Lifetime access

$2,100

or $220 x 10 installments
blue depth
Trusted by 10K+ students and companies
Sentinel one logo white
microsoft logo white
google logo white
mandiant logo white
intel logo white
cisco white logo tr
citibank logo white
alfa bank logo white
malwarebytes logo white
proofpoint logo white
epam logo white
Sentinel one logo white
microsoft logo white
google logo white
mandiant logo white
intel logo white
cisco white logo tr
citibank logo white
alfa bank logo white
malwarebytes logo white
proofpoint logo white
epam logo white

33+ hours

on-demand video

128

video lessons

2 EDRs

MDE and OpenEDR researched

Lab OVA

preconfigured, yours to keep

33 CPE

CEU credits, self-reported

Certification

Certificate and Credly badge

EDR internals training: how modern EDRs detect threats, and how to research and build one

This EDR course is taught by Pavel Yosifovich, co-author of Windows Internals and author of Windows Kernel Programming, and Uriel Kosayev, author of Antivirus Bypass Techniques. It runs as two tracks. In the research track, Uriel takes endpoint detection and response (EDR) products apart: architecture, static, dynamic and heuristic engines, anti-tampering and PPL, with Microsoft Defender for Endpoint and OpenEDR as the research targets. In the development track, Pavel builds the components an EDR is made of: a Windows service, a kernel driver, IRP handling, kernel callbacks for processes, threads, images, objects and the registry, and file system mini-filters.

The two tracks meet in evasion and detection: why techniques such as process injection, APC injection with direct syscalls, obfuscation and memory bombing work, where telemetry misses them, and how detection logic is designed. A preconfigured lab (OVA) is provided, and the course closes with where hypervisors and virtualization-based security take EDRs next.

Uriel Kosayev
Uriel Kosayev

Security researcher, trainer and speaker. Author of the Antivirus Bypass Techniques and Malware Analysis on Steroids books. Founder of TrainSec Academy.

Cybersecurity researcher and red teamer who works on both the offensive and defensive fronts. Author of the Antivirus Bypass Techniques and MAoS: Malware Analysis on Steroids books, with expertise in malware research, reverse engineering, penetration testing, digital forensics and incident response.

Books: Antivirus Bypass Techniques, MAoS: Malware Analysis on Steroids

Pavel Yosifovich
Pavel Yosifovich
Developer, trainer, author and (sometimes) speaker. Co-founder of TrainSec academy.

Pavel has been working at the lowest levels of Windows for more than 25 years, as a developer, consultant, trainer, author and speaker, and is a Microsoft MVP. He is the co-author of “Windows Internals, 7th Edition, Part 1” (Microsoft Press) and the author of “Windows Kernel Programming”, “Windows 10 System Programming” and “Windows Native API Programming”.

In this course he shows the processor mechanisms that Windows is built on, the same ones he explains in Windows Internals, and checks each of them live in the kernel debugger.

What will you learn in this EDR internals training?

Who is this EDR course for?

  • Cybersecurity professionals, malware researchers and detection engineers who want to understand EDR internals at the deepest level.
  • Red team operators who need to know exactly how EDRs detect threats, to evaluate and test defensive coverage.
  • Blue and purple team leads who build, evaluate or tune EDR solutions.
  • Security product developers building or assessing endpoint detection and response capabilities.
  • Windows kernel developers who want to apply their skills to security products.

Not the right fit if you are new to security (start with Cybersecurity Foundations), you want to analyze malware samples only (Malware Analyst Professional), or you want SOC detection rules rather than kernel code (Detection Engineering Professional).

Roles this course prepares you for: EDR developer, security researcher (EDR/AV), detection engineer, malware researcher, red team lead, vulnerability researcher.

What do you need before you start?

  • A basic understanding of Windows internals: processes, threads, memory and DLLs.
  • Familiarity with x86/x64 assembly language.
  • Solid C programming (C++ is not required) and scripting (PowerShell or Python).
  • Basic reverse engineering (IDA, x64dbg or Ghidra) and basic malware analysis: recommended.
  • Prior exposure to kernel-mode development: recommended.
  • Windows 10 or later with a virtual machine for the labs (a preconfigured lab OVA is provided). It also works on a Mac with Parallels on Apple Silicon.

How does the course cover EDR research, development and evasion?

Ten modules move from what an EDR is, through researching real products, to building EDR components in the kernel, and then to bypass, detection design and the future of EDRs.

How do you research a commercial EDR such as Microsoft Defender for Endpoint?

A repeatable research methodology: build the lab, gather leads, analyze telemetry and reverse engineer the components. You apply it to OpenEDR and Microsoft Defender for Endpoint, analyze anti-tampering and PPL protection, and learn to read third-party EDR testing reports critically.

How do you build EDR components in the kernel?

Pavel Yosifovich writes a kernel driver from scratch with device objects, symbolic links, dispatch routines and DeviceIoControl, then adds telemetry through process, thread, image-load, object and registry callbacks, and file system mini-filters with communication ports to a user-mode service.

Which EDR bypass and evasion techniques does it cover?

Rename and control-flow obfuscation, runtime decryption, dynamic API resolution, process injection, APC injection with direct syscalls and memory bombing, each explained so you see which detection mechanism it defeats. Then the other side: rule-based engines, kernel callbacks, ETW, hooking and memory inspection as detection sources.

What is in each of the 10 modules?

Course Materials

The lab deployment guide, the EDR research methodology, an EDR assessment report template, process injection posters and the other course documents.

Module 1: EDR Fundamentals

This module establishes the core technical foundations required for understanding, analyzing, and developing Endpoint Detection and Response systems. Students begin by exploring what EDR solutions are designed to detect, how they are architected, and the role of static, dynamic and heuristic engines. The module breaks down how modern enterprise security products evaluate files, monitor behavior, classify suspicious activity, generate alerts and enforce protection logic. Students learn the structure of Microsoft Defender for Endpoint as a representative enterprise EDR. This includes the components responsible for scanning, behavioral monitoring, real time analysis, heuristic correlation, and how the system maps detection events to the MITRE ATT&CK framework. The module also guides students through navigating the MDE portal, understanding alerts, incidents, device views and execution artifacts. A significant part of the module introduces students to the Windows internals knowledge required to understand detection logic and telemetry sources. This includes Windows architecture, processes and threads, handles, virtual memory, the registry, services, x64 architecture and assembly, the Windows calling convention, driver fundamentals and Event Tracing for Windows. These building blocks form the base for analyzing EDR behavior, simulating malicious techniques, and later developing custom detections or bypasses. By the end of this module, students will understand how EDR engines function, what telemetry they use, how detections are structured, and how Windows internals concepts relate to EDR visibility. Students will also configure and explore the MDE console, review scan processes, and write an initial custom detection rule.

Module 2: EDR Research Methodology and Practical Analysis

In this module, students will move from conceptual understanding into structured, hands on EDR research. Students will learn how to design and execute EDR research using a repeatable methodology, prepare clean research environments, gather meaningful telemetry, and analyze real EDR implementations. The module combines OpenEDR and Microsoft Defender for Endpoint (MDE) to demonstrate differences in maturity, protection mechanisms, and telemetry pipelines, and introduces foundational EDR component reverse engineering techniques.

Module 3: Building EDR: Foundations

Students will learn how the “development side” of an EDR is structured, with emphasis on Windows services and drivers as core building blocks, how they are configured and operated, and what practical engineering guidelines matter when writing user-mode EDR components.

Module 4: Basic Kernel Driver

In this module, students will begin hands-on kernel-mode development with a focus on building the foundational knowledge required to understand and implement EDR kernel components. Students will learn core Windows kernel programming concepts, memory management, object handling, driver structure, and communication between kernel-mode drivers and user-mode clients. The module incrementally builds from low-level primitives to a complete, testable driver, emphasizing correctness, stability, and security.

Module 5: Working with IRPs

In this module, students will deepen their understanding of I/O Request Packets (IRPs) as the core mechanism used by Windows drivers to receive requests and communicate with user-mode clients. Students will learn how dispatch routines are structured and invoked, how to reason about execution context when handling requests, and how to access user-mode buffers safely from kernel mode. The module then shifts to the most common EDR-style communication path: DeviceIoControl and IOCTL-style requests, including how different buffer management methods influence data flow between user mode and the driver.

Module 6: Kernel Notifications and Callbacks

Students will learn the “core mechanics” of an EDR kernel driver: collecting telemetry via kernel callbacks (process, thread, image load, object, and registry), correlating events with driver-maintained state, and coordinating decisions with user mode when analysis should not live in the kernel. Students will also learn the synchronization primitives needed to build safe, high-performance callback code paths that run system-wide.

Module 7: File System Mini-Filters

In this module, students will learn how file system mini-filters are used as a core visibility and enforcement mechanism in Endpoint Detection and Response systems. Students will understand why mini-filters are essential for monitoring file system activity, how they integrate into the Windows I/O stack, and what types of file operations are observable through them. The module introduces mini-filter architecture, registration and attachment concepts, and demonstrates how mini-filters can be used to collect security-relevant telemetry for detection and response. Students will also learn how file system behavior, such as alternate data streams and file access patterns, can be leveraged by attackers and detected by EDR solutions using mini-filters.

Module 8: EDR Bypass and Evasion

This module covers real-world EDR bypass and evasion techniques through practical demonstrations and technical analysis. Students learn how modern attackers evade detection across memory, kernel, and user-mode boundaries, and how EDR solutions attempt to detect and respond to these behaviors. The module includes advanced techniques such as memory bombing, direct system calls, APC injection, and Active Directory credential dumping via the NTDS database, along with additional evasion patterns observed in active attacks. Each technique is examined to explain why it works, where detection commonly fails, and how effective EDR visibility is achieved in practice.

Module 9: Detection Techniques

In this module, students will learn how EDR detection engines operate at a conceptual and practical level. Students will explore how telemetry collected from the operating system is transformed into detection signals, how rule-based logic differs from behavioral and heuristic approaches, and where machine learning may or may not be applicable in real EDR products. The module discusses practical detection challenges, including hooking considerations, tradeoffs between accuracy and performance, and why detection logic must be designed to operate reliably under adversarial conditions. Students will gain a realistic understanding of what modern EDR detection engines actually do, rather than idealized models.

Module 10: The Future of EDRs

In this module, students will examine the practical limitations of EDRs and the realities of bypass research. Students will learn why many EDR protections are constrained by stability, compatibility, and performance requirements, and how these constraints shape both defensive design and offensive research. The module discusses bypass thinking at a high level, including how attackers probe detection logic, why some protections are intentionally partial, and how research findings should be interpreted responsibly. Students will leave with a grounded perspective on EDR strengths and weaknesses, emphasizing understanding over exploitation.

EDR internals course: frequently asked questions

Am I ready for this course?

You need a basic understanding of Windows internals, familiarity with x86/x64 assembly and comfort with C. Reverse engineering, malware analysis and some kernel-mode exposure are recommended. If kernel code is new, Windows Kernel Programming 1 is a good preparation.

What do I need for the lab?

Windows 10 or later and a virtual machine for the labs; a preconfigured lab OVA is provided. RAM and disk size are not critical, and the course also works on a Mac with Parallels on Apple Silicon. The development track uses Visual Studio 2022 with the C++ desktop workload, and the Microsoft Defender for Endpoint modules can be followed with a free trial.

What tools and software are used in the course?

The main tools are Visual Studio 2022, WinDbg, IDA Pro, x64dbg, ProcMon, Process Explorer, PerfView, and fltmc. The course also uses PE Bear, Process Hacker, SysWhispers, and the Detours library. Microsoft Defender for Endpoint and OpenEDR are the two EDR products analyzed hands-on.

What topics does the course cover?

Ten modules: EDR fundamentals and engines, EDR research methodology and reverse engineering, building EDR foundations (services and drivers), kernel driver development, IRPs, kernel notifications and callbacks, file system mini-filters, EDR bypass and evasion techniques, detection technique design, and the future of EDRs including hypervisors.

Does the course teach offensive techniques or just defensive?

Both. The research track (Uriel) covers EDR evasion techniques like process injection, APC injection with direct syscalls, obfuscation, and memory bombing, explained so you understand why they work and where detection fails. The development track (Pavel) covers building the kernel components that detect those techniques. The goal is to understand both sides.

Is it live or recorded?

It is pre-recorded and fully self-paced. You can ask questions in the TrainSec Discord community, where the instructors participate.

How long do I have access?

Purchased courses come with lifetime access on the TrainSec learning platform. The lab environment OVA is yours to keep.

Do I get a certificate?

Yes. When you mark every lesson complete you receive a certificate of completion and a Credly digital badge.

What does it cost, and is there a payment plan?

The price is $2,100, or 10 monthly payments of $220. Payment is by credit or debit card via Stripe.

Can I get a refund?

Refunds are available up to 14 days after purchase, to the original payment method. Email [email protected] to request one.

How is this different from the Malware Analysis and Development course?

Malware Analysis and Development teaches how to analyze and understand malware techniques. EDR Internals teaches how EDR systems detect those techniques and how to build the detection components (kernel drivers, callbacks, mini-filters). There is some overlap in Windows internals coverage, but the focus is different.

What should I take after this course?

There is no direct follow-on course at this time. Advanced Windows Kernel Programming can deepen your kernel skills. For detection rule writing at the SOC level, Detection Engineering Professional: Attack Simulation & Defense covers a complementary angle.

How long is the course?

128 video lessons, more than 33 hours of video, plus 7 course documents. It is self-paced; plan extra time for the labs and driver development practice.

Are there captions?

Yes, English and Spanish captions on every video.

Can I watch some lessons before I buy?

Yes. Eleven lessons are free previews on the course page of the learning platform; they are marked in the module list above.

What is the difference between EDR and EPP?

An endpoint protection platform (EPP) focuses on preventing and blocking known threats. EDR adds continuous telemetry, investigation and response on top of detection, so analysts can see what happened and act on the endpoint. Module 1 covers the difference.

Does it earn CPE credits?

Yes, 33 CPE/CEU credits, which you self-report to your certification body with your certificate of completion.

EDR Internals - Research and development
EDR Internals: Research & Development

Research how modern EDRs detect threats, build the kernel components yourself, and understand evasion from both sides.