✳ Field lesson EP2 / 14 min

What EDR sees, and what it can do

Endpoint detection and response (EDR) records what happens on a host and can act there. Antivirus asks whether a file is known to be bad. EDR asks what a process did. It sees only hosts whose agent runs and reports.

Endpoint SecurityCISSP Domain 7EDRIncident ResponseCISSP D7Security+ (SY0-701) D2Security+ (SY0-701) D4

Helpful first: A hardened baseline, and proof it held · Logs, alerts, and evidence

Thirty days to Halcyon · Case 14: The field laptop · Episode 2 of 5

Monday morning, Station South. Kael Cho, Staff Infrastructure Engineer, plugs the re-imaged field-07 into the station network at 08:05. Its EDR agent reports for the first time in 41 days.

At 08:54 Nyx, the Threat Hunter, calls from headquarters. "Your laptop just raised its first alert. A chain of processes started from a USB drive and reached a station address."

Kael looks at the drive in the side port. It holds three of his tools. What did the chain do, and what should happen to the laptop now?

By the end you can

  • Say what endpoint detection and response records and what it can do on a host
  • Read a process tree and tell an expected chain from an unusual one
  • Explain the blind spots: a missing agent, a tampered agent, an offline host

What the agent records

Endpoint detection and response (EDR) is software in two parts. An agent runs on each laptop or server. A console collects what the agents send, lets analysts search it, and sends back actions.

The agent records behavior, not just files. Each time a process starts, it notes the program, the process that started it, the command line, the user, and who signed the program. It also records files written, network connections, and, on Windows, registry changes. These records are called telemetry.

Antivirus asks one question: is this file known to be bad? A script that nobody has seen before passes that test. EDR asks a different question: what did this process do? A new script that starts a shell and connects out is worth a look, whatever its hash.

Two related labels are easy to mix up. Extended detection and response (XDR) is a product category that joins endpoint data with other sources, such as email and identity. Managed detection and response (MDR) is a service, in which people outside the company watch and investigate. Neither label proves what is actually covered.

Four labels, four different questions
LabelThe question it asksWhat it acts on
AntivirusIs this file known to be bad?The file: block it or quarantine it
EDRWhat did this process do?The host: kill, quarantine, isolate, collect
XDRWhat happened across endpoints, email, identity and more?Whatever its connected sources and licenses allow
MDRWho watches and investigates, and at what hours?Only what the contract authorizes the provider to do

Read a process tree from parent to child

Every process has a parent: the process that started it. Chained together, parents and children form a process tree. Reading one is the core skill of EDR triage.

Most chains are dull and expected. A user double-clicks a document, so the file explorer starts the document editor. A system service starts an update program. The parent and the child make sense together.

Some pairings are unusual. A document editor that starts a command shell is a classic sign of a malicious macro. A script interpreter launched from a removable drive deserves a question. So does a shell that opens a network connection.

A tree tells you what ran, in what order, and as whom. It does not tell you why, or whether it was allowed. Unusual is not the same as malicious. The tree tells you which question to ask, and whom.

WORKED EXAMPLE

The 08:53 chain on field-07, from parent to child

  1. explorer.exe, as Kael. Someone opened the USB drive in the file explorer, in Kael's session. This proves the session was used. It does not prove Kael was at the keyboard.
  2. python.exe E:\calib\run.py. A script interpreter ran a script from drive E:, the USB drive. The agent notes that run.py carries no signature. It does not know what the script is for.
  3. powershell.exe. The script started PowerShell, a command shell. This is the unusual pairing. A calibration tool might do it. So might malware.
  4. Connection to 10.40.6.12, port 5020. PowerShell connected to a station address. The agent records the address and port, not the content of the traffic.

Result: Four nodes and one question: who wrote run.py, and should it start a shell that talks to the station? The tree narrows the investigation. It does not close it.

SPOT THE PROBLEM

Nyx pastes parent and child pairs from other Station South laptops this week. Flag the pairs that deserve a question.

Show the answers
  • winword.exe started powershell.exe A document editor starting a shell is the classic sign of a malicious macro. Ask what the document was.
  • pass-loader.exe started cmd.exe, which ran whoami A plan loader has no reason to ask the system who the user is. Attackers run whoami to learn where they landed.
  • rundll32.exe with no command line connected to an address outside Meridian rundll32 normally runs with arguments naming what to load. With none, and talking to the internet, it is often a cover for injected code.

Act on the host, and keep the evidence

EDR can act as well as watch. Four actions are common. Kill a process, which stops it at once. Quarantine a file, which moves it where it cannot run. Isolate the host, which cuts it off from the network. Collect a package of evidence, such as running processes, network connections and recent files.

Isolation is the one to understand. Most EDR products cut every connection except the agent's own channel to the console. The laptop can no longer reach the station network. The analyst can still see it, question it, and collect from it. Isolation can also be undone. The analyst releases the host when the question is answered.

Order matters. Killing a process loses whatever it held in memory. Wiping a disk loses everything. Isolating first stops any harm and keeps the evidence, so the choice about what to destroy can wait for facts.

Isolation cut field-07 off from the station network but kept the agent's channel to the console. Nyx collected the evidence after the laptop could reach nothing else.

SORT IT OUT

Nyx lists the actions she could take on field-07. Which can be undone if the script turns out to be harmless?

  1. Isolate the laptop from the network.

  2. Quarantine the script file.

  3. Kill the running shell process.

  4. Delete the script from the USB drive.

  5. Wipe and re-image the laptop.

Show the answers
  1. Can be undone. Releasing it from isolation restores the network. Nothing on the laptop is lost.
  2. Can be undone. A quarantined file can be restored if it proves legitimate.
  3. Cannot be undone. The process and whatever it held in memory are gone.
  4. Cannot be undone. A deleted file may not come back, and the evidence goes with it.
  5. Cannot be undone. Everything on the disk is gone, including anything that explained the alert.

YOUR CALL

After the tree is collected

field-07 is isolated, and its process tree is collected. The script on the USB drive is unsigned, and nobody has said who wrote it yet. The pass plans load tomorrow afternoon.

  1. What happens to field-07 now?

  2. Kael calls back. "That's my calibration tool. I never signed it." What closes the alert?

Show the strong calls
  1. Keep it isolated while you find out who wrote the script. The laptop can harm nothing while it waits, and the evidence on it stays as it was.
  2. Match the script's hash to the copy in Kael's repository, sign the tool, then release the laptop. The hashes match. The tool is signed, and the alert closes with the tree, the hash and the signature attached.

What EDR cannot see

EDR sees only hosts where its agent is installed, running, and reporting. Everything else is a blind spot, and the console does not announce it. A quiet console can mean a quiet network or a deaf one.

Three gaps matter most. A missing agent: a new or rebuilt host that never got one. An offline host: field-07 had an agent for all 41 days and sent nothing, because it was in a cupboard. A tampered agent: an attacker with administrator rights tries to stop or remove it. Tamper protection makes that harder, and an agent that falls silent should raise an alert of its own.

Some devices cannot run an agent at all. The antenna controller ant-ctl-2 runs its vendor's firmware, not a general operating system. Something other than EDR has to watch it.

So ask for a coverage report, not a product name. It lists every host, whether its agent is healthy, and when it last reported. A host that last reported 41 days ago is not covered, whatever the license says.

CHECK YOUR JUDGMENT

Nyx's coverage report for Station South lists 40 laptops with the EDR agent installed. Three last reported more than 30 days ago. Kael says all 40 are covered. What is the accurate statement?

CASE FILE · CASE 14 · ENTRY 2 OF 5

Answer the closing question correctly to add this entry to your case file.

Isolated, but still talking to Nyx

Isolation cut field-07 off from the station but kept the agent's own channel open, so Nyx collected the process tree before anything was wiped or deleted.

Next episode: The laptop is clean. Nyx is still reading the USB drive, and one file on it is called .env.

Open the case file ↗

Review sheet: exam notes and quick reference

Find your next idea.

Tip: press / to open search. Escape closes this window.