However much a company invests in prevention, some attacks will get through. That is why threat detection and response has taken a central place in security: spotting malicious activity early and reacting fast greatly reduces the impact of an incident. When one intrusion is contained in minutes and another lasts for weeks, the difference usually lies in detection, not in prevention.
The market describes this capability with a handful of acronyms, which confuses anyone looking in from the outside. EDR, XDR and MDR tackle the same problem in different ways. Once you understand what each one means, where the SIEM and use cases come in and how to measure detection effectiveness, you can build a minimal detection and response capability without needing a huge structure to get started.
Detection and response, beyond prevention
Prevention controls such as firewalls, WAF and hardening lower the chance that an attack succeeds, but they do not bring the risk down to zero. Detection and response starts from a realistic premise: at some point something will get through, and what matters is noticing in time and acting. Without this layer, an incident can go unnoticed for days or weeks, and the cost grows with the time the attacker stays in the environment.
The two sides go together. Detection identifies signs of suspicious activity from logs and telemetry, and response defines what to do when a relevant alert comes up, from triage to containment. One without the other achieves little. Detecting without responding produces alerts nobody handles, and responding without detecting means reacting late, after the damage is done.
EDR, XDR and MDR: what changes
The three acronyms describe detection and response approaches with different scopes. Which one makes sense depends on the environment, the maturity of the company and who will take care of the operation day to day.
- EDR (endpoint detection and response): focuses on the endpoint, meaning workstations and servers, and collects detailed telemetry on the processes, files and network connections of each host.
- XDR (extended detection and response): correlates signals from several sources (endpoint, network, cloud and applications), which gives alerts more context and reduces blind spots.
- MDR (managed detection and response): the managed model, in which a dedicated team runs detection and response continuously on behalf of the client.
Note that EDR and XDR are about the scope of telemetry, that is, how much the detection can see. MDR is about operations, about who takes care of it day to day. For that reason the acronyms are not mutually exclusive, and it is common for a company to use XDR as its technology and hire an MDR provider to run the detection it cannot sustain with its own team.
The role of the SIEM and of use cases
A SIEM (security information and event management) centralizes logs from several sources and lets you correlate events to detect attack patterns. On its own, however, it detects nothing. That work is done by the use cases, meaning the detection rules and scenarios designed for your environment and mapped to known attack techniques.
Poorly defined use cases produce too much noise or a dangerous silence. The answer is to prioritize the most likely scenarios in your context, with a framework such as MITRE ATT&CK as a reference, and to refine the rules over time. Good detection produces few alerts, and each one of them deserves attention.
- Centralize essential logs from cloud, network, applications and endpoints
- Define use cases for the most likely attack scenarios
- Use MITRE ATT&CK as a reference to guide detection coverage
- Refine rules continuously to reduce false positives
- Retain logs long enough to investigate when needed
MTTD and MTTR: measure to improve
Two metrics sum up the health of detection and response: time to detect (MTTD) and time to respond (MTTR). The lower they are, the smaller the window in which an attacker acts undisturbed. You do not need sophisticated instrumentation to start measuring. Even a simple measurement shows whether detection arrives within minutes or whether the incident is only discovered after the damage.
Tracking the trend is more useful than chasing a perfect number. If detection time drops every quarter, the capability is maturing. If one type of incident always takes a long time to be noticed, that is where the coverage gap to prioritize lies.
- MTTD: time between the start of suspicious activity and its detection
- MTTR: time between detection and containment of the incident
- Measure by type of scenario to find where coverage fails
- Track the trend over time, beyond the isolated value
Threat hunting and automated response
Detection based only on rules sees only what someone has already anticipated. Threat hunting covers that gap with an active search for signs of compromise that have not yet turned into alerts, starting from hypotheses about how an attacker would act in your environment. It does not replace automated detection, but it finds what slipped past it.
On the other side is response automation, sometimes called SOAR. It chains repetitive actions, such as enriching an alert, opening a ticket or isolating a host, and so shortens the time between detecting and acting. The care needed here is to automate first what is repetitive and carries a low risk of error, and to leave decisions about wide-impact actions to a person, because a wrong automated action makes the problem bigger instead of containing it.
- Threat hunting: an active search for signs the alerts missed
- Start from hypotheses tied to MITRE ATT&CK techniques
- Automate repetitive tasks with a low risk of error first
- Keep human approval for wide-impact responses
Detection and response in the cloud
In the cloud, detection depends on enabling and collecting the right sources. On AWS, services such as CloudTrail, GuardDuty and Security Hub provide the telemetry and findings that feed detection. What is usually missing are the use cases that turn this data into actionable alerts, more than the data itself.
Detection and response in the cloud also calls for attention to identity. Many cloud incidents involve credentials and permissions, so monitoring credential use, policy changes and unusual access is as important as watching network traffic.
In-house, MDR or a hybrid model
The decision between running detection in-house and hiring an MDR provider is rarely all or nothing. Detection and response requires continuous coverage, including nights and weekends, and few teams can sustain that on their own without burning out. At the same time, the people who know the environment are on your team. In the hybrid model, a partner handles continuous monitoring and the internal team takes care of context and business decisions, which usually balances cost and knowledge.
- In-house operation: requires staff, on-call coverage and the maturity to sustain it
- MDR: hands continuous monitoring to a dedicated partner
- Hybrid: the partner monitors, the internal team handles context and decisions
- Decide based on the real capacity of your team, not on the ideal model on paper
How to build a minimal capability
You do not need a full operations center to get started. A minimal detection and response capability fits in a few steps: make sure the essential logs are in place, define a handful of high-value use cases and have a simple plan for the most likely incidents. From there, coverage grows by priority.
- Enable and centralize the essential logs of the environment
- Define a few high-value detection use cases
- Have a simple response plan with clear owners
- Choose the operating model (in-house, MDR or hybrid) based on your team
- Expand coverage by priority, without trying everything at once
Practical checklist
- Treat detection and response as a complement to prevention
- Enable and centralize the essential logs
- Define use cases for the most likely scenarios
- Use MITRE ATT&CK as a reference to guide coverage
- Monitor identity and credential use in the cloud
- Refine rules to reduce false positives
- Measure detection and response time by scenario
- Plan for active searching (threat hunting) beyond automated alerts
- Decide what to automate without taking human decisions out of high-impact actions
- Have a response plan with clear owners
- Choose between in-house, MDR or hybrid operation based on your team
Best practices
- Assume something will get through and prepare detection for it
- Prefer a few good use cases to many noisy rules
- Use MITRE ATT&CK as a coverage reference
- Measure detection and response time to guide improvement
- Pay special attention to identity in cloud environments
- Consider the hybrid model when you lack on-call staff for in-house operation
- Get visibility in place before investing in advanced automation
- Start with a minimal capability and grow it by priority
Common mistakes
- Investing only in prevention, with no detection
- Incidents go unnoticed and the attacker stays in for weeks.
- Buying a SIEM without defining use cases
- The tool collects logs but detects nothing useful.
- Too many noisy rules
- With alert fatigue, the team starts ignoring even what matters.
- Not measuring detection or response time
- There is no way to tell whether the capability is improving or where the gaps are.
- Automating high-impact responses without review
- A wrong automated action makes the problem bigger instead of containing it.
- Ignoring identity in cloud detection
- Compromised access and credentials go by without an alert.
- Log retention that is too short
- When the incident is discovered late, there are no logs left to investigate.
Authorship and review
Cesar Gargiulo
CEO and founder of GUARDIASEC. Technical and editorial lead for the content published in this library.
Published on . Found a technical error? Write to [email protected] and we will correct it and keep a record of the change.