Skip to content
Pwnversity
DEF-EDRintermediate · 11 min · upd. 2026-11

EDR / XDR

T1068T1685BYOVD

An EDR (Endpoint Detection and Response) is an agent that lives on every workstation and server, watches what processes do, detects malicious behavior and lets you respond from a central console: isolate the machine from the network, kill a process, quarantine a file or collect evidence. An XDR extends that visibility and response to identity, email, network and cloud, correlating everything in the same product. For the defender, the EDR is both the best source of endpoint telemetry and the attacker’s first target, since they will try to blind it before acting.

  • Detection without signatures: unique payloads, living off the land techniques and in-memory execution that a file antivirus doesn’t recognize.
  • Responding at the attacker’s speed: isolating a machine in seconds from the console, without travelling or depending on the user.
  • Investigating with history: asking the whole fleet “who else ran this?” or “what did this process do?” using telemetry already collected.
flowchart TB
    subgraph K["Kernel"]
        CB["Kernel callbacks<br/>processes, threads, images,<br/>handles, registry"]
        MF["Minifilter<br/>file I/O"]
        WFP["WFP<br/>network connections"]
        TI["ETW Threat Intelligence<br/>memory operations"]
    end
    subgraph U["User mode"]
        AMSI["AMSI<br/>script content"]
        ETW["ETW providers<br/>.NET, PowerShell, DNS"]
        HK["DLL hooks<br/>API calls"]
    end
    K --> A["EDR agent<br/>protected process"]
    U --> A
    A --> L["Local detection<br/>and prevention"]
    A --> N["Vendor cloud<br/>correlation and hunting"]
    N --> C["Console<br/>alerts and response"]
Source What it provides Why it matters
Kernel callbacks Process and thread creation, image loads, handle opens to other processes, registry changes The OS notifies the EDR driver; it doesn’t depend on what the watched process does
Minifilter File reads, writes and renames Ransomware, dumps, droppers
WFP Per-process connections C2, lateral movement
ETW Threat Intelligence Cross-process memory allocations and writes Injection and in-memory execution; only protected antimalware processes can consume it
AMSI The script or .NET assembly as it’s about to run Sees PowerShell already deobfuscated
User-mode hooks Specific Windows API calls Fine-grained detail, but tamperable from within the process

What lives in the kernel is harder to fool from an unprivileged process; what lives inside the process itself (hooks, AMSI, user ETW) can be manipulated by code running in that process. That difference explains almost every evasion technique (defense evasion): either work inside the process so the user-mode sensor sees nothing, or get code into the kernel to switch the whole sensor off.

Capability Classic antivirus EDR XDR
File signatures Yes Yes Yes
Behavioral detection Limited Yes Yes
Searchable historical telemetry No Yes (endpoint) Yes (endpoint, identity, email, network, cloud)
Remote response Quarantine Isolate, kill, collect, remote script Plus: disable account, purge email
Cross-domain correlation No Limited Yes

An MDR (Managed Detection and Response) is the same EDR or XDR operated 24/7 by a provider.

Not every EDR records the same things. The public EDR Telemetry project compares 23 products across 57 Windows telemetry categories (October 2026 data). Some examples, counting only “yes” ratings for the 22 commercial and open-source products (excluding Sysmon):

Category Products that record it Sysmon
Process creation 22 of 22 Yes
Process access (e.g., to LSASS) 15 of 22 Yes (event 10)
PowerShell Script Block 15 of 22 No (that’s Windows’ 4104)
Win32 API calls 6 of 22 No
Driver unload 1 of 22 No
Agent keep-alive 16 of 22 No

Before buying or writing rules, know what telemetry your EDR exposes: an LSASS access rule is useless if the product doesn’t record that event (see rule portability in SIEM).

Action When Beware
Isolate the machine Confirmed or very likely compromise Keeps the connection to the console; tell the user and the service owner
Kill process and quarantine Identified malware Killing the process destroys its memory: collect first if you’ll need it (memory)
Collect artifacts Investigation Triage packages (triage)
Remote shell or script One-off response tasks Very powerful access: log who uses it and why
Block hash or IOC Containing a campaign Expires fast (IOCs and TTPs)
Roll back changes Ransomware, if supported Doesn’t replace backups (backup)

If the EDR watches from the kernel, an attacker with administrator rights tries to get there too. Since Windows requires signed drivers, the usual route is to load a legitimate, signed, vulnerable driver (Bring Your Own Vulnerable Driver) and use its flaw to terminate the agent or remove its callbacks. It’s privilege escalation to kernel (T1068) in service of T1685 (Disable or Modify Tools).

The open LOLDrivers catalog (commit from October 27, 2026) shows the scale of the problem:

Data point Value
Entries 713 (588 vulnerable drivers and 125 malicious ones)
Samples with hashes 2,430
Vulnerable driver samples that load with HVCI enabled 332 of 2,082 (no data for 263)
Example Dell’s dbutil_2_3.sys (CVE-2021-21551), 4 samples

The project publishes ready-to-use lists: Sigma rules for Sysmon event 6, a Sysmon configuration that blocks writing those drivers via event 27 (FileBlockExecutable), a WDAC deny policy with 3,816 rules, YARA signatures and hash lists.

Defenses, from most to least effective:

  • Microsoft’s vulnerable driver blocklist: enabled on devices with HVCI (memory integrity) or in S mode, and by default on all devices since Windows 11 22H2. Microsoft warns it isn’t guaranteed to block every vulnerable driver, and HVCI alone isn’t enough either: as the table shows, hundreds of vulnerable samples still load with it.
  • WDAC / App Control with a driver policy, and Defender’s ASR rule Block abuse of exploited vulnerable signed drivers.
  • Detection: loads of rare drivers (Sysmon 6 or EDR telemetry), new kernel-type services (System 7045) and agents that stop reporting.
  • Coverage: the metric that matters most is “machines with a healthy agent / machines that exist”. Cross the EDR inventory with the directory, the CMDB and network scans.
  • From audit to block: start in detection mode, tune false positives and move to prevention group by group.
  • Minimal exclusions: each path or process exclusion is a place where the attacker can work unseen. Exclusions with full path, signer and expiry date.
  • Tamper protection on, and uninstall protected by password or policy.
  • Attack surface reduction: in Defender, ASR rules such as Block credential stealing from the Windows local security authority subsystem (GUID 9e6c4e1f-7d60-472f-ba1a-a39ef669e4b2); Microsoft notes it’s redundant if LSA Protection and Credential Guard are enabled.
  • Your own emulation: run the priority techniques in a lab (Atomic Red Team has 14 tests for T1003.001 alone) and record what was seen, what alerted and what was blocked (threat hunting).
  • MITRE ATT&CK Evaluations: the Enterprise 2025 round (published December 2025) emulated Scattered Spider and Mustang Panda and included a cloud scenario for the first time. Microsoft, Palo Alto Networks and SentinelOne didn’t take part. MITRE doesn’t rank participants: read the “100%” claims in press releases against the per-step data.
  • Daily health: agents not reporting, old versions, policies forgotten in audit mode.
  • Assuming “we have EDR” means “we’re covered” without measuring real fleet coverage.
  • Broad exclusions inherited from a performance ticket.
  • Audit-mode policies that never moved to block.
  • Leaving critical servers without an agent “for performance”.
  • No alert when an agent stops sending data: it’s the first thing that happens in a BYOVD attack.
  • EDRKillShifter (2024): Sophos documented a loader that delivers a vulnerable driver to kill the EDR, used by RansomHub affiliates in May 2024; in that attack it failed and anti-ransomware protection stopped the encryption. In 2025 Sophos observed the same “EDR killer → ransomware” sequence in eight families, including Blacksuit, Medusa, Qilin, DragonForce and INC.
  • July 19, 2024: the kernel EDR content incident that left millions of machines unusable drove the Windows architecture change described above.
  • Agent inventory crossed with the real inventory; machines without an agent have an owner and a deadline
  • Prevention enabled by group; nothing in audit without a review date
  • Exclusions reviewed: full path, signer, justification and expiry
  • Tamper protection and protected uninstall
  • Microsoft driver blocklist, HVCI and the vulnerable-driver ASR rule
  • Alerts for agents that stop reporting and for rare driver loads
  • EDR telemetry known and forwarded to the SIEM
  • Periodic emulation of priority techniques with documented results