
Most introductions to Endpoint Detection and Response (EDR) sound like a product brochure: “Traditional antivirus checks file hashes; EDR watches behavior, maps to MITRE ATT&CK, and isolates infected laptops.”
That summary is technically true, yet it leaves out the difficult parts: how an EDR sensor gets its data from the operating system, why detection happens in two different places (on the device vs. in the cloud), and why buying an EDR does not automatically stop attacks.
Think of Endpoint Detection and Response (EDR) as a security camera system paired with an alarm and containment switch running on an endpoint such as a laptop, desktop, server, or virtual machine.
At its core, EDR is security software that continuously records system activity like which processes start, what commands they execute, which files or settings they modify, and which network connections they open. Its purpose comes down to three practical goals:
This guide breaks down how EDR works under the hood and sets up our series on Linux telemetry, lab testing, and real-world deployment pitfalls.
Traditional antivirus (AV) historically focused heavily on known bad files comparing a file or its hash against a database of signatures. Attackers adapted by changing file hashes, packing binaries, or abusing legitimate administrative tools already installed on the machine (often called living off the land, using built-in utilities like PowerShell or command shells instead of dropping obvious malware).
EDR shifts the focus from single files to sequences of system activity and continuous telemetry (raw event records):
A single event like a shell or script running is often normal. EDR looks for chains of events (for example, an office document spawning a script engine that connects to an unusual IP address and modifies startup settings).
An Endpoint Detection and Response agent is not magic; it is a software sensor running with high privileges so it can observe system events reliably. Kernel-level visibility is particularly valuable for completeness across the system, faster reaction times on short-lived processes, and tamper resistance against threats trying to disable or bypass the sensor.
Early security tools relied heavily on user-mode hooks (placing code inside normal applications to watch API calls). Attackers learned how to bypass or unhook user-mode checks directly from user space. Modern Windows EDRs rely much more on privileged OS mechanisms:
PsSetCreateProcessNotifyRoutineEx), threads are created (PsSetCreateThreadNotifyRoutine), binaries/DLLs are loaded into memory (PsSetLoadImageNotifyRoutine), or registry operations occur.(Note: Platform engineering and OS resiliency initiatives continue to reshape how security software interfaces with Windows and macOS, balancing deep visibility with system stability and staged updates.)
Linux does not work like Windows, and Linux endpoints often include servers, containers, and cloud workloads with very different traffic patterns. Older approaches leaned on audit subsystems (auditd) or custom kernel modules, while modern Linux Endpoint Detection and Response sensors widely use eBPF (Extended Berkeley Packet Filter) and LSM (Linux Security Modules) hooks to run verified programs safely inside the kernel and stream telemetry without relying on traditional out-of-tree kernel modules.
A common point of confusion for newcomers is why an EDR blocks some actions instantaneously while other alerts appear minutes later. Most modern EDRs split work across two layers:
| Layer | Where It Runs | Typical Job | Trade-Off |
| Endpoint Agent (Local) | On the laptop, server, or VM | Collects telemetry, enforces fast local blocks (like obvious ransomware patterns or known bad rules), and buffers events | Must stay lightweight on CPU, memory, and disk so normal work does not slow down |
| Cloud / Backend Platform | Vendor cloud or central server | Correlates events across time and across many machines, applies heavier analytics/threat intelligence, and stores searchable history | Depends on network connectivity and ingestion/analysis latency |
If you run heavy correlation models locally on every endpoint, performance suffers. If you push everything to the cloud for deeper correlation, multi-step patterns take a moment to stitch together.
When reading security write-ups, keep these three terms separate—they are not the same thing:
An alert is the beginning of an investigation, not the finish line. A team still has to verify whether an alert is a real attack or legitimate admin/automation activity, check what else was touched, and decide on the right response.
Even a well-tuned EDR has boundaries: