Skip to content
ImagineWorld

EDR Architecture and Its Key Components

node_idnode-book_endpoint-detection-and-response-essentials_chapter-02-edr-architecture-and-its-key-components
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num2
chapter_titleEDR Architecture and Its Key Components
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Chapter 2 — EDR Architecture and Its Key Components

Section titled “Chapter 2 — EDR Architecture and Its Key Components”

In the previous chapter, I introduced the overarching concept of Endpoint Detection and Response (EDR) in the realm of cybersecurity. I stressed the need to distinguish between EDR as a comprehensive term encompassing various security practices for threat detection and response and the specific category of EDR tools.

As we dive deeper into the core theme of mastering endpoint defense, consider EDR tools as the primary weapons in your cybersecurity arsenal.

Throughout this chapter, we will navigate the modern landscape of EDR, exploring not only EDR itself but also its extended variations, such as Extended Detection and Response (XDR) and other detection and response (DR) tools with intriguing monikers. By the end of this chapter, you will have gained a profound understanding of the essential attributes an effective EDR tool should possess. Furthermore, we will delve into the fundamental architecture of EDR, offering several compelling reasons for doing so. First, understanding this technical foundation can be fascinating in its own right. Second, if you ever aspire to design new EDR or cybersecurity tools, this knowledge can serve as a wellspring of inspiration. Third, for those interested in red team activities, grasping the core EDR architecture will facilitate the exploration of EDR evasion techniques in upcoming chapters.

Once we’ve explored these topics, we will proceed to examine the key features and capabilities that define EDR/XDR systems. Finally, while my aim has been to maintain a vendor-agnostic approach throughout this book. We will provide a sneak peek into some of the most widely used EDR/XDR tools.

In summary, this chapter will encompass the following key areas of focus:

  • Definition and core concepts of EDR
  • EDR components and architecture
  • Key features and capabilities of EDR tools
  • An overview of popular EDR tools

Note

As technology producers and developers, we often revel in the art of bestowing our products with fancy names, seeking to set them apart from their counterparts in the most distinctive manner possible. In the cybersecurity arena, yet another intriguing term has emerged: XDR, standing for extended detection and response. While I wouldn’t go so far as to claim that XDR and EDR are entirely dissimilar, they do indeed exhibit nuanced distinctions.

In essence, EDR places its primary focus on bolstering endpoint security. In contrast, XDR takes a more expansive and integrated approach to threat detection and response, encompassing a broader spectrum of an organization’s digital infrastructure. XDR solutions excel in the art of data collection and correlation, drawing insights from a multitude of sources that include endpoints, network traffic, cloud applications, and email systems. This comprehensive integration of data empowers superior threat detection and response capabilities, as it seamlessly amalgamates data and threat intelligence from diverse origins.

It’s worth noting that in the context of this book, you may occasionally encounter references to XDR tools, but please be aware that these mentions specifically allude to their EDR capabilities. I won’t delve into their additional features beyond EDR within the scope of this book.

EDR tools are a security system for endpoints that smoothly combines ongoing real-time monitoring and the gathering of data from endpoints, enhanced by automated analysis and response functions powered by rule-based algorithms. EDR tools are strategically placed on specific workstations or servers (endpoints) with the primary objective of collecting security-related environmental data, often referred to as telemetry. It’s essential to be familiar with the definitions of some specific terms to enhance your comprehension of this book.

These are individual devices such as computers, servers, and mobile devices. We can define them as any device that connects and consumes data from your network.

This means a holistic view of activities occurring on endpoints, empowering security teams to conduct meticulous incident investigations. EDR actively records and captures real-time endpoint data, streamlining the process of pinpointing the origin of an attack and facilitating a rapid response to security incidents.

The stage where the real magic unfolds is detection. It’s here that a symphony of diverse techniques plays out to unveil potentially perilous activities and lurking security risks. These techniques read like a cybersecurity playbook.

First up, we have indicator of compromise detection. Think of it as the Sherlock Holmes of the digital world. It observes changes in the system’s behavior and meticulously cross-references them with internal indicators. These indicators, known as IOCs, are like breadcrumbs left by malicious actors. They can take the form of suspicious file or registry changes, unauthorized access attempts, cryptic hash values, or even the whispering winds of unusual network traffic, such as DNS requests. Understanding DGA DNS requests is a crucial piece of knowledge when it comes to detecting malicious actors, and I will delve into their intricacies in the upcoming chapters.

Then, there’s anomaly detection. Imagine this as your digital guardian angel, watching over your system’s shoulder. It scrutinizes any alterations to your system, comparing them to a well-established baseline configuration. If anything deviates from the norm, it raises a red flag, alerting you to potential threats.

Now, let’s talk about AI-based detection. Picture AI as the silent sentinel patrolling the digital realm. With its behavioral analysis superpowers, AI can spot and flag activities that don’t quite fit the mold, labeling them as potentially malicious or, at the very least, highly suspicious.

Lastly, there’s threat intelligence-based detection. Think of it as your cybersecurity crystal ball. This strategy harnesses collected intelligence to identify and shield against cyber threats actively. It’s like sifting through incoming data and cross-referencing it with a vast library of known threat signs and attack patterns.

Now that you’ve had a glimpse of these cybersecurity superheroes in action let’s delve deeper into the complex world of modern EDR tool architecture and its various components.

EDR facilitates rapid incident response. What does this mean? It means upon threat detection, it can swiftly isolate compromised endpoints, remediate affected systems, or revert to saved images for recovery. Moreover, certain advanced EDR tools can deliberately provide misleading memory addresses to adversaries or generate false results, ensuring damage is minimized and the threat is neutralized, even if the attacker remains unaware. Alarming is another form of response, promptly notifying security teams of potential threats.

Later in this book, we embark on a captivating journey into the intricate realm of EDR architecture. From delving into its foundational components to unraveling advanced techniques and exploring real-world applications, you will gain profound insights into the inner workings of EDR. This knowledge equips you with the essential skills to safeguard your digital assets within an ever-evolving threat landscape. Whether you are an aspiring cybersecurity professional, a seasoned expert, or a white-hat hacker, understanding EDR’s design holds significant value. It empowers you to craft a formidable defense, leverage its capabilities to protect your systems and data, advance your career, enhance your expertise, or pursue ethical hacking endeavors.

In EDR tools, each system has unique logic, yet there are underlying similarities. While the specific intricacies often remain proprietary, I will endeavor to elucidate this logic through my own design example and the insights gained from my experiences with various tools.

The following diagram shows a high-level view of modern EDR architecture:

Figure 2.1 – Modern EDR architecture

As you can see from Figure 2*.1*, there is a central server in the middle of the architecture; it can communicate with the user interface, endpoints, and the cloud. Let’s take a deep dive inside any endpoints to discover the critical parts of EDR, namely the agent and sensor, deployed in the endpoint. In the following figure, the modern agent architecture can be seen:

Figure 2.2 – EDR agent architecture

To gain a deeper understanding of Figure 2*.2*, let’s start by defining the key component at the heart of it all: the agent.

The agent is a vital component that is meticulously crafted to gather telemetry from various sensors, consolidate this data, subject it to robust detection methods, and perform static scans on the collected telemetry. In the world of modern EDR systems, agents possess limited detection and response capabilities for immediate action. However, if these capabilities fall short, the agent can elevate the game by forwarding all the aggregated telemetry to a central server, where advanced analytics, threat intelligence feeds, and sophisticated response rules come into play.

Now, let’s break down some crucial terms:

  • Telemetry: Telemetry is the raw data generated by endpoints. It serves as the lens through which we can discern whether malicious activities are afoot. What is the current telemetry data (data coming from OS and devices) for the best EDR vendors?
    • Network telemetry: TCP connection, UDP connection, URL, DNS query, and FTP protocol data
      • Kernel-mode telemetry: Process creation, termination, kill, and tampering
      • DLL telemetry: Execution paths and security events
      • Filesystem telemetry: File opening, removing, renaming, creation, and editing
      • External storage telemetry: File transfer logs, virtual disc mount, and USB disc mount/unmount
      • Other types of telemetry: Account login/logoff; key-value creation, modification, and deletion; scheduled task creation, removal, and modification; all types of service activities; and group policy modification
  • Sensor: Sensors are the silent sentinels, actively collecting telemetry from endpoints by discreetly intercepting processes. They diligently transmit this invaluable data to the agent for analysis. Speaking of endpoint sensors, you might be curious about Dynamic Link Library (DLL) and hooking. Well, pondering these concepts means you’ve reached a milestone in your journey toward becoming a white-hat hacker.

If you’ve dabbled in coding, you’re likely acquainted with the idea that your code sometimes needs external code blocks, known as libraries. In the realm of Windows, when these external libraries are executed at runtime, they’re referred to as DLLs (the DLL equivalent in Linux is .so, meaning shared object). Conversely, if they’re executed at compile time, they go by the name of static libraries.

Now, here’s where it gets interesting. DLL hooking is a technique that involves intercepting DLL calls as a proxy and tinkering with the calling functions. It’s somewhat akin to using Burp Suite between a browser and an API – you can intercept and manipulate the calls. This technique can serve both legitimate and malicious purposes, which underscores the importance of gathering telemetry from DLLs through the aid of sensors. In the realm of modern endpoint security, this is one of the most pivotal battlefields. So, buckle up because we’re about to delve into the fascinating intricacies of modern endpoint security.

Suppose you have a target function, CreateFileW, which you want to monitor. You can create a hook for this function to capture telemetry data. The following is a simplified example using the Windows API and the detours library:

#include <Windows.h>
#include <detours.h>
#include <iostream>
#include <fstream>
// Function pointer for the original CreateFileW function
typedef HANDLE(WINAPI* CreateFileWType)(
LPCWSTR lpFileName,
DWORD dwDesiredAccess,
DWORD dwShareMode,
LPSECURITY_ATTRIBUTES lpSecurityAttributes,
DWORD dwCreationDisposition,
DWORD dwFlagsAndAttributes,
HANDLE hTemplateFile
);
// Detoured function for CreateFileW
HANDLE WINAPI MyCreateFileW(
LPCWSTR lpFileName,
DWORD dwDesiredAccess,
DWORD dwShareMode,
LPSECURITY_ATTRIBUTES lpSecurityAttributes,
DWORD dwCreationDisposition,
DWORD dwFlagsAndAttributes,
HANDLE hTemplateFile
) {
// Call the original function
HANDLE hFile = ((CreateFileWType)DetourFindFunction("kernel32.dll", "CreateFileW"))(
lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes,
dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile
);
// Log telemetry data
std::ofstream logFile("TelemetryLog.txt", std::ios::app);
if (logFile.is_open()) {
logFile << "Timestamp: " << GetCurrentTime() << std::endl;
logFile << "File Operation: CreateFileW" << std::endl;
logFile << "File Path: " << lpFileName << std::endl;
logFile << "Operation Type: " << (dwDesiredAccess & GENERIC_WRITE ? "Write" : "Read") << std::endl;
logFile << "---------------------------------------" << std::endl;
logFile.close();
}
return hFile;
}
int main() {
// Initialize detours
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
DetourAttach(&(PVOID&)Real_CreateFileW, MyCreateFileW);
DetourTransactionCommit();
// Your application logic here
// Cleanup detours
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
DetourDetach(&(PVOID&)Real_CreateFileW, MyCreateFileW);
DetourTransactionCommit();
return 0;
}

In this context, DLL hooking was employed for the purpose of creating telemetry. A detailed exploration of this DLL hooking technique will be presented in Chapter 5, where it will be elucidated as an evasion technique. In this context, DLL hooking was utilized to create telemetry, as exemplified by a simplified technique using the detours library to intercept the CreateFileW function. The resulting telemetry data, capturing the timestamp, file path, and operation type, is then logged into a file. A comprehensive examination of this DLL hooking method is elaborated on in Chapter 5, where it is discussed in the context of an evasion technique. It’s crucial to note that the implementation of DLL hooking requires the careful consideration of factors such as system architecture, thread safety, and error handling, while always adhering to legal and ethical considerations.

To truly grasp the essence of creating telemetry data, let’s dive into the raw DNS data captured by the network sensor. Put simply, it’s the telemetry transmitted from the network sensor to the agent:

21.09.2023 11:10:47 0F90 PACKET 000001E02ABA9910 UDP Rcv 192.1.1.1 c101 Q [0001 D NOERROR] A (19) www.packtpub.com

The agent consolidates with other telemetries sourced from components such as the network sensor, which includes DHCP and Active Directory logs. This aggregation represents the definitive telemetry package, dispatched to the central server for advanced analysis:

{
"_source": {
"domain": " www.packtpub.com ",
"subdomain": " www.packtpub.com ",
"sourceIp": "192.1.1.1",
"time": "2023-09-21T08:10:47.000Z",
"category": [
"NX Domain"
],
"mountName": "6.6.6.188_DNS_Server",
"mountId": 1,
"tags": "N/A",
"hostName": "KevinMac",
"clientMacAddress": "28:a5:66:50:1a:9d",
"adDomain": "N/A",
"user": "102",
"hostAlias": "N/A",
"destinationIpCountryCode": "N/A",
"destinationIp": "0.0.0.0",
"applicationName": "HTTP/HTTPS",
"applicationId": 1,
"categoryId": [
69
],
"categoryList": [
"NX Domain"
],
"categoryGroup": [
"variable"
],
"insertDate": "2023-09-21T08:12:37.683Z",
"companyId": -1
},
"fields": {
"insertDate": [
"2023-09-21T08:12:37.683Z"
],
"time": [
"2023-09-21T08:10:47.000Z"
]
}

As you can see from the preceding data, we now have adequately enriched DNS, DHCP, and Active Directory data for further investigation.

Figure 2*.3* depicts the operational logic of the static scanner. Think of this facet of the EDR agent as functioning akin to an antivirus program.

Figure 2.3 – Static scanner pseudo algorithm

EDR agents can take swift actions from static scanners. This is not an ideal solution, but it is a legacy of old-school security methods. It can still help to keep crackers and script kiddies away from your endpoints.

Now, we’ve gained a profound understanding of EDR’s core components and their intricate roles. But what are the features and capabilities of modern EDR tools? Let’s find out.

Key features and capabilities of EDR tools

Section titled “Key features and capabilities of EDR tools”

Essentially, EDR tools, even with their varying features, possess fundamental characteristics that characterize them:

  • Behavioral analytics and detection: First, EDR tools must have behavioral analysis and detection capabilities in addition to signature-based detection. Ideally, EDR tools should also use machine learning to detect threats.
  • Cyber threat intelligence: Consider EDR security as a detective in a scenario. The worldwide cyber threat intelligence database functions like the detective’s repository of well-known criminals and their methods of operation. When the detective is probing a crime, they refer to their database to determine whether there are any resemblances to recognized criminals or their tactics. This aids the detective in pinpointing potential suspects and gaining a deeper comprehension of the crime. Likewise, EDR security systems employ the global cyber threat intelligence database to recognize and comprehend cyber-attacks. This data assists them in reacting to attacks with greater efficiency.
  • Alerting: When EDR tools identify a threat, they generate alerts that prompt security teams to initiate an investigation and assess the event(s) along with their interconnected associations across all endpoints within the organization. These alerts can be shown on the EDR GUI and/or sent to Security Information and Event Management (SIEM). The availability of both real-time and historical activity data, coupled with contextualized intelligence, equips investigators with the insights needed to comprehend the attack and execute targeted and swift remedial actions.
  • Incident response: Incident response is a systematic approach and a series of procedures organizations adopt to handle and reduce the impact of cybersecurity incidents effectively. A cybersecurity incident refers to an occurrence that jeopardizes the confidentiality, integrity, or accessibility of an organization’s information systems or data. These incidents can manifest in various forms, such as data breaches, malware infections, denial-of-service attacks, and insider threats.

EDR tools play a pivotal role in incident response. EDR tools give security teams comprehensive insights into the activities occurring on endpoints and facilitate contextual understanding of these events, thereby aiding in rapid and informed responses to attacks. This visibility and contextual information empower security teams to promptly execute targeted remedial actions when a security incident is detected.

The primary aim of endpoint protection is swift and effective mitigation and response, and EDR technology plays a crucial role in achieving this goal. EDR tools assist security teams in grasping the nature of an attack and taking swift, precise remediation measures by offering a clear and concise view of the attack.

All in all, despite variations in features and capabilities, there exist defining commonalities that categorize them as EDR tools. Crucially, EDR tools are distinguished by their requirement for behavioral analysis and detection capabilities, which go beyond traditional signature-based detection methods. Furthermore, the ideal EDR tool integrates machine learning into its arsenal, enhancing its ability to identify and counter evolving threats. These shared characteristics form the cornerstone of EDR technology, underlining its effectiveness in safeguarding endpoints and mitigating cybersecurity risks. In the following section, let’s get familiar with some popular EDR tools.

This book is vendor-agnostic, meaning that it does not promote any specific endpoint defense product or vendor. The goal of this book is to help you understand the importance of endpoint defense in your organization and provide you with a comprehensive understanding of endpoint defense strategies and technologies with hands-on and real-life examples.

Although this book will mention the current leaders of EDR tools, the focus is on the fundamental principles of endpoint defense, which are not specific to any particular vendor or product. This means that the information in this book will still be valuable even if the current leaders of EDR tools become less popular in the future.

As per the Gartner Magic Quadrant, Microsoft, CrowdStrike, and SentinelOne are recognized as the top leaders in the Endpoint Protection Platforms category.

Note

Gartner is a global research and advisory firm that helps organizations make informed decisions in technology, business, and finance. It is widely recognized for its research and analysis in IT, including its influential Gartner Magic Quadrant reports.

Let’s have a look at these three EDR/XDR tools closely.

Microsoft Defender for Endpoint is a comprehensive endpoint security platform that protects desktops, laptops, and servers from a wide range of security threats, including malware, APTs, and cyber-attacks. It is a key component of Microsoft’s overall security framework and provides advanced threat protection, detection, and response capabilities.

Microsoft Defender for Endpoint is a popular choice for endpoint protection for several reasons. First, it is backed by Microsoft’s extensive experience in cybersecurity and has global support. Second, it offers a variety of licensing options to meet the needs of different organizations. Third, it has many features and capabilities, including attack surface reduction rules, device control, device-based conditional access, integration with Active Directory, Targeted Attack Notifications (TANs), Experts on Demand (EOD), and sandbox analysis.

Although the licensing options for Microsoft Defender for Endpoint can be complex, it is important to remember that security requirements can be different for all organizations. Microsoft Defender for Endpoint is a powerful and comprehensive tool that can help organizations improve their security posture and reduce the risk of cyber-attacks.

SentinelOne Singularity is a unified XDR platform that consolidates and extends detection and response capabilities across various security layers, encompassing endpoints, cloud, identity, network, and mobile domains. It furnishes security teams with centralized visibility throughout the enterprise, robust analytics, and automated response mechanisms across a broad spectrum of technology components.

It provides native protection across various solutions, spanning endpoints, cloud Singularity services, identity management, mobile devices, and more. Additionally, it offers seamless integration with third-party tools, including threat intelligence feeds, SIEM systems, Security Orchestration, Automation, and Response (SOAR) platforms, email security, Secure Access Service Edge (SASE) solutions, and sandboxes, allowing you to maximize the value of your existing investments.

Singularity simplifies the investigation and response process by automatically correlating individual security events into a coherent attack sequence. Analysts can effortlessly resolve threats with a single click, eliminating the need for scripting across various systems. It also enables orchestrated remediation actions in a single step, such as network quarantine, automatic agent deployment on vulnerable workstations, or automated policy enforcement across cloud environments.

The platform unifies and correlates enterprise security data within a single, user-friendly, cost-effective solution. It continuously ingests real-time data from native and third-party sources, dismantling silos and eradicating blind spots. Moreover, it provides a visual representation of data from diverse security solutions, spanning endpoints, cloud workloads, network-connected IoT devices, and networks, thus offering insights and guiding security actions.

The following are things that I like about SentinelOne Singularity:

  • Offline protection: SentinelOne Singularity remains operational even without an internet connection, ensuring endpoint protection even in offline scenarios
  • One-click remediation and rollback: The platform offers a one-click remediation and rollback feature, facilitating quick restoration to a previous state to minimize the damage caused by cyber-attacks
  • Automated deployment: Singularity automates the deployment of new agents to endpoints as needed, ensuring comprehensive endpoint protection

In summary, SentinelOne Singularity stands as a robust and comprehensive EDR platform, enhancing organizational security and reducing the risk of cyber threats.

CrowdStrike Falcon Insight stands as a robust endpoint detection and response (EDR) solution that continuously monitors endpoints for any suspicious activities, employing machine learning, artificial intelligence, and behavioral analysis. Falcon Insight is equipped to automatically respond to threats by taking actions such as isolating endpoints, quarantining files, and reversing unauthorized changes.

Notably, Falcon Insight serves as a pivotal component within CrowdStrike’s XDR platform, which harmonizes data from various security tools to present a unified and comprehensive view of the security landscape. It seamlessly integrates with CrowdStrike’s threat intelligence and SOAR capabilities, as well as identity protection features.

Falcon Insight XDR effectively balances elements of EDR, native XDR, and open XDR. This approach seamlessly merges proprietary data from the Falcon platform with standardized data from external sources, providing a holistic understanding of security incidents.

Within Falcon Insight XDR, native XDR functionality correlates data gathered across the entire Falcon platform, offering a consolidated view of security operations at no additional expense.

In the context of open XDR, also known as hybrid XDR, the platform leverages specialized XDR integrations and a standardized data structure to ingest extensive data from third-party security tools efficiently. This open approach ensures that security teams have the visibility required within a unified XDR command console.

In this chapter, we began our exploration of endpoint detection and response (EDR) tools by defining them and discussing their core concepts. We then examined the intricate architecture of modern EDR solutions, focusing on their key components, such as agents and sensors. We further illustrated these concepts with a detailed example of agent components and a diagram of agent and sensor data. Finally, we introduced some of the most popular EDR tools in the industry.

In the next chapter, we will explore EDR tool deployment comprehensively with hands-on experience using Singularity by SentinelOne. I invite you to join me in this immersive journey, where we will unravel the complexities of endpoint security and delve into effective threat mitigation strategies.