Skip to content
ImagineWorld

EDR Implementation and Deployment Strategies

node_idnode-book_endpoint-detection-and-response-essentials_chapter-03-edr-implementation-and-deployment-strategies
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num3
chapter_titleEDR Implementation and Deployment Strategies
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Chapter 3 — EDR Implementation and Deployment Strategies

Section titled “Chapter 3 — EDR Implementation and Deployment Strategies”

Until now, we have seen the broader concept of endpoint security and endpoint detection and response (EDR) tools at a glance; we studied the popular ones, and we learned about the EDR/ extended detection and response (XDR) architecture. In this chapter, we embark on an insightful journey into the realm of EDR/XDR tools tailored for enterprise networks. This exploration delves into the diverse capabilities of these tools, shedding light on optimal configurations to bolster network security and maximize the potential of these solutions through various deployment strategies. We’ll uncover the intricacies of individual configurations, prerequisites, and inherent limitations while steering you toward the application of best practices in securing your enterprise network.

In this chapter, you will learn about deploying EDR tools for enterprise networks. I will explore the capabilities of each, the best-practice configurations for security and for getting the most out of the solution with different deployment methods, the specifics of each when it comes to configuration, the prerequisites and limitations, and how to apply best practices.

In a nutshell, this chapter will cover the following main topics:

  • The planning and considerations before deploying EDR and deployment models
  • Hands-on lab experiment – how to deploy SentinelOne Singularity XDR
  • Hands-on use cases

The planning and considerations before deploying EDR and deployment models

Section titled “The planning and considerations before deploying EDR and deployment models”

EDR/XDR deployment models fall into three primary categories: on-premises, cloud-based, and hybrid solutions, each offering its unique advantages and disadvantages. It’s crucial to carefully consider these factors when selecting the right tool for your organization. From my experience, I’ve observed that people’s decision making is significantly influenced by regulatory compliance requirements, which entails ensuring that a company adheres to the laws enforced by governing bodies in their region or complies with industry standards adopted voluntarily.

For instance, the European Union (EU) mandates that financial institutions store their data within EU data centers. Apart from these regulatory compliance considerations, it’s essential to weigh the pros and cons of each deployment type. Let’s look into each deployment type one by one.

An on-premises deployment entails the installation of software, services, or infrastructure on the organization’s physical premises or data centers. Instead of using cloud-based solutions or third-party providers, everything is managed on the organization’s internal servers and infrastructure.

On-premises deployment is secure and controllable but expensive and high maintenance. Cloud-based and hybrid solutions are more scalable, flexible, and easier to manage, but they may not meet all the security and compliance requirements. Businesses should choose a deployment model based on their individual needs and goals.

Some advantages of on-premises EDR are as follows:

  • Data privacy: On-premises EDR gives you the most control over your data because it stays on your network. This is important for businesses that need to meet strict data privacy regulations, such as the EU General Data Protection Regulation (GDPR).
  • Regulatory compliance: Some industries and organizations have to follow strict regulations. These businesses often choose on-premises EDR solutions to make sure they comply.
  • Speed: On-premises EDR solutions can detect and respond to threats quickly, with low latency. This is important for businesses that must protect their networks from fast-moving attacks.

Naturally, these advantages don’t come without a price tag. They do entail certain drawbacks, which include the following:

  • On-premises EDR solutions can be expensive to set up and maintain, difficult to scale up, and not as accessible for remote monitoring and management.
  • The saying “ Don’t buy the cow for just a glass of milk ” means that it’s not worth spending a lot of money on something that you don’t need very much. This saying is often used to describe on-premises EDR solutions, which can be expensive and difficult to scale, especially for small businesses.

Cloud-based software, often known as software as a service (SaaS), involves applications and services hosted and managed on remote servers by third-party providers, as opposed to traditional installations on a user’s local computer or on-site servers.

The following are the advantages of cloud-based EDR:

  • Scalability and ease of deployment: Cloud-based EDR solutions are usually more flexible, making it easier to incorporate and oversee endpoints as your organization grows. Additionally, they offer simplified deployment.
  • Accessibility, particularly post-COVID: These solutions are accessible from anywhere with an internet connection, which has gained increased significance following the COVID-19 pandemic. This accessibility is particularly beneficial for remote teams and organizations with a distributed setup.
  • Reduced initial expenditure: Cloud-based solutions often come with lower upfront costs because there’s no requirement to invest in on-site hardware and the associated maintenance expenses.

There are some disadvantages as well:

  • Data privacy concerns: Storing sensitive data in cloud environments can lead to concerns related to data privacy and compliance, especially in tightly regulated sectors such as defense, finance, and energy
  • Reliance on service provider: Your EDR service provider’s availability and performance can influence your capacity to respond to threats effectively
  • Latency: Cloud-based solutions might introduce some delay because of data transmission over the internet, which could affect your ability to respond to threats in real time

I personally do not see a reason behind choosing the hybrid EDR model as you can safely choose the cloud model if there are no restrictions. In some countries, some industry data cannot go outside of the country and, as a result, they cannot use AWS, or Azure, in some cases. Also, if there are restrictions, I would go for an on-premises model. Cloud evolution is inevitable. If there are privacy and compliance concerns, then I can go for on-premises solutions. But for some small intersections, the hybrid EDR model should be the way to go. Let’s delve into a hybrid architecture example.

Consider this scenario – you’re part of an organization with a pressing need for real-time threat detection, yet you’re equally determined to maintain control over your data, ensuring it remains within your organization’s boundaries. In such a situation, a hybrid architecture proves to be a valuable solution. Practical applications of the hybrid architecture include the following:

Figure 3.1 – Hybrid architecture use case

The advantages of the hybrid architecture are as follows:

  • Real-time threat detection: The hybrid EDR architecture excels in providing rapid threat detection capabilities. By leveraging both on-premises and cloud components, it enables organizations to detect and respond to threats in real time, enhancing overall security posture.
  • Privacy control: One significant advantage of a hybrid architecture is the ability to maintain control and privacy over sensitive data. With the capacity to handle data within the organization, organizations can uphold privacy standards and ensure that critical information remains under their jurisdiction.

The disadvantages are as follows:

  • Complexity: Managing a hybrid EDR solution can be more complex due to the need to coordinate and maintain both on-premises and cloud components
  • Cost: Combining on-premises and cloud components may result in higher costs compared to using only one deployment model
  • Resource allocation: Organizations need to allocate resources to manage both on-premises and cloud-based elements effectively

In summary, our exploration has encompassed various EDR tool architectures, delving into their distinctive features and weighing the pros and cons crucial for successful deployment within your organization. As we transition from theory to practice, the next chapter invites you into a hands-on lab environment. Here, we will not only witness the deployment intricacies but also delve into real-world use cases, providing a comprehensive understanding of turning conceptual knowledge into actionable strategies. So, let’s seamlessly shift gears and immerse ourselves in the practical realm of deployment and application scenarios.

Lab experiment – hands-on deployment of SentinelOne Singularity EDR/XDR

Section titled “Lab experiment – hands-on deployment of SentinelOne Singularity EDR/XDR”

In the initial part of this chapter, we delved into various deployment types. Once the deployment type has been determined, the next step is installing the EDR/XDR tool. The SentinelOne Singularity EDR/XDR platform is an innovative solution engineered to protect against evolving cyber threats.

In this hands-on laboratory experiment, we embark on a journey deep into the realm of cybersecurity, gaining practical insights into the deployment and utilization of SentinelOne’s robust EDR/XDR technology. Prioritizing real-world application, this experiment equips participants with the skills and knowledge needed to fortify their digital environments against the ever-persistent and sophisticated adversaries of today.

Upon registration with SentinelOne and the acquisition of a license, you will gain access to a web-based GUI. Let’s now explore the SentinelOne Singularity EDR/XDR web GUI dashboard, as depicted in Figure 3*.2*:

Figure 3.2 – SentinelOne Singularity EDR/XDR Web GUI dashboard

Through this dashboard, you can access an overview of your existing endpoints and their current security status. To conduct a more detailed investigation of a particular endpoint, simply navigate to the SENTINELS tab and click on the ENDPOINTS menu, as demonstrated here:

Figure 3.3 – Endpoints

To install the agent on your new endpoints, start by selecting SENTINELS on the left-hand side of the menu. Then, navigate to the PACKAGES section. Here, you can obtain the appropriate package tailored to your specific endpoint and proceed with its installation:

Figure 3.4 – PACKAGES for agent setup to endpoints

In the upcoming screenshots, denoted as Figure 3*.5* and Figure 3*.6*, we observe the configuration of the SentinelOne agent on the Windows client endpoint:

Figure 3.5 – SentinelOne Agent Setup Wizard

Once you input the appropriate token into the designated field, as illustrated in Figure 3*.5*, obtained from your SentinelOne account, your agent setup will be completed, as demonstrated in Figure 3*.6*:

Figure 3.6 – The SentinelOne Agent is installed

When you click the SentinelOne icon in the taskbar, you can access the AGENT DETAILS and OVERVIEW tabs for your endpoint, as illustrated in the following screenshot:

Figure 3.7 – AGENT DETAILS on the endpoint

On the left-hand side, there is a menu where you can see details such as an overview of the endpoint, AGENT DETAILS, QUARANTINED FILES, and THREAT HISTORY.

Figure 3.8 – OVERVIEW

When the OVERVIEW tab is clicked, the overall standing of the endpoints and the latest events can be seen.

Figure 3.9 – Protection Mode of the endpoints

As depicted in Figure 3*.9*, you should configure the policy settings to align with your preferences. You have the option to use the EDR tool in either monitoring mode or high-security mode.

In monitoring mode, it’s recommended to select Detect for identifying malicious and suspicious threats. However, if you prioritize security and are willing to accept the possibility of occasional false positive alarms, it’s strongly recommended that you choose Protect.

Furthermore, ensure that you activate all types of detection engines visible on the right-hand side of the screen in Figure 3*.9*. After configuring these settings, please enable all the protection level options, including Kill & Quarantine, Remediate, and Rollback.

Note

Kill: When a security system detects a threat, it can kill the threat to stop it from running and causing harm. This is done by terminating the process or application that is associated with the threat.

Remediate: Remediation is what you do to fix a security problem after it has been found. This can include things such as removing malware, patching software, and changing security settings.

Quarantine: Quarantining a file or application means putting it in a special place where it cannot interact with the rest of the system. This is done to prevent the file or application from causing damage, while also allowing for further analysis to determine if it is a threat.

Up to this point, we’ve explored how to assess the security status of our endpoints and install agents on them using SentinelOne Singularity EDR/XDR. Now that we’ve successfully deployed an agent to our Windows client, let’s delve into the extent of control we have over the endpoint.

EDR tools have a high degree of control and visibility over endpoints, which are individual devices or computers within a network. These tools are designed to provide robust security measures and real-time monitoring. Here are some key controls and capabilities that EDR tools typically offer over endpoints: to configure and monitor endpoint security settings, enforce security policies, and apply software updates. Some EDR solutions include data loss prevention capabilities to monitor and prevent unauthorized data exfiltration from endpoints. Moreover, endpoint-based firewall rules can be applied. Let’s take a look at a few examples.

In the following sections, we’ll explore three different real-life use cases with detailed explanations and accompanying screenshots for a hands-on experience.

In this use case, I’ll demonstrate how we can exercise control over each endpoint’s network connection, akin to a firewall. When you open the Command Prompt window and execute a command such as ping 8.8.8.8, you will receive a response, as displayed in Figure 3*.10*. This is possible because, in our test environment, the endpoints have been configured to allow ping requests:

Figure 3.10 – Endpoint can ping 8.8.8.8

Within the web GUI, you can access a NETWORK CONTROL submenu located under the SENTINELS menu. Inside this submenu, you will find a New rule button:

Figure 3.11 – Endpoint firewall rules

Upon clicking the New rule button, proceed to define a rule, which is visually illustrated in Figure 3*.11* and Figure 3*.12*:

Figure 3.12 – Create the new rule

As illustrated in Figure 3*.12*, it is important to provide a meaningful rule name and select the appropriate OS type based on the endpoint. Additionally, ensure that the Description box is filled with meticulous details for the benefit of your colleagues.

Figure 3.13 – Rule Details

Upon selecting Next as indicated in Figure 3*.12*, Figure 3*.13* will be displayed. This screen allows you to input comprehensive details related to the rule. Once you’ve created a new rule, you can observe it in the dashboard, as demonstrated in Figure 3*.14*.

Figure 3.14 – Firewall rules

Now, let’s attempt to ping from the same endpoint:

Figure 3.15 – Endpoint cannot ping 8.8.8.8 anymore

As depicted in Figure 3*.15*, it’s evident that pinging 8.8.8.8 is no longer possible.

Why this is important? Because, configuring endpoint connections is pivotal for enhancing security, ensuring compliance, protecting data, optimizing network performance, and managing risks. By controlling access to networks and resources, organizations bolster security, comply with regulations, safeguard sensitive data, optimize network efficiency, and mitigate cyber risks effectively.

The following script extracts the SAM database, which contains user credentials used for authenticating both local and remote users:

reg save HKLM\sam %temp%\sam

In a typical endpoint environment, copying this database is highly suspicious and unexpected behavior. EDR tools are expected to detect such actions and respond accordingly.

Note

MITRE ATT&CK framework: ATT&CK, which stands for Adversarial Tactics, Techniques, and Common Knowledge, is a globally accessible knowledge base of adversary tactics and techniques based on real-world observations. It provides a comprehensive and structured way to understand the behavior of attackers across various stages of an attack life cycle.

So, if a script is dumping credential information from the SAM database, it would be categorized under the credential dumping technique within the MITRE ATT&CK framework. This activity is typically associated with post-exploitation activities where an attacker has gained access to a system and is looking to escalate privileges or gather further access credentials.

After an attack involving credential dumping, it’s crucial to conduct thorough incident response and remediation efforts. Here’s what you can do after an attack involving credential dumping, according to the MITRE ATT&CK framework:

  • Containment: Immediately isolate affected systems to prevent further unauthorized access and data exfiltration. This can involve disconnecting compromised systems from the network or implementing network segmentation to limit the attacker’s movement.
  • Investigation: Conduct a detailed investigation to determine the extent of the compromise. Identify which systems were affected, what data may have been accessed or exfiltrated, and how the attackers gained access to credentials.
  • Forensic analysis: Perform forensic analysis on compromised systems to gather evidence and understand the attack vectors, techniques, and tools used by the attackers. This can help in identifying the root cause of the credential dumping attack and prevent similar incidents in the future.
  • Credential reset: In response to credential dumping, reset passwords for all affected accounts and services. This helps revoke access to compromised credentials and prevent further unauthorized access using stolen credentials.
  • Patch and remediate: Identify and remediate vulnerabilities and weaknesses in systems that allowed the attackers to perform credential dumping. Apply security patches, update software, and strengthen security configurations to mitigate similar attack vectors in the future.
  • Notification: Depending on the severity and impact of the attack, notify relevant stakeholders, including internal teams, management, customers, and regulatory authorities, in accordance with legal and regulatory requirements.
  • Enhanced monitoring: Implement enhanced monitoring and detection capabilities to detect and respond to future attempts at credential dumping or other malicious activities. This can include continuous monitoring of system logs, network traffic, and endpoint activities for suspicious behavior.
  • Lessons learned: Conduct a post-incident review to analyze the effectiveness of your response efforts and identify areas for improvement. Use the lessons learned from the incident to enhance security policies, procedures, and controls.

Organizations equipped with EDR tools possess a robust advantage in responding to credential dumping attacks. EDR solutions automatically execute several crucial steps in the incident response process, including containment, forensic analysis, and notification. As a result, the impact on systems and data is often minimized, and the need for certain actions such as credential resets and management notifications may be unnecessary, particularly if the attack was thwarted before credentials were compromised. This streamlined response underscores the importance of investing in EDR capabilities to proactively strengthen defenses against credential dumping and other emerging threats.

Open the Run on Windows client and type the following script:

reg save HKLM\sam %temp%\sam

Figure 3.16 – Execution of the script that copies the SAM database

Following the execution of the script, the EDR/XDR agent swiftly identified the malicious activity, thanks to the Fileless Attack Engine, as illustrated in Figure 3*.17*:

Figure 3.17 – Agent detects the malicious activity

In this screen, you can see the details about detected malicious activity and its current state:

Figure 3.18 – SAM database dumped in a file

Due to the agent being in detection mode rather than protection mode, the SAM database was successfully dumped. Now, let’s access the dashboard from the web GUI.

Figure 3.19 – Detected malicious activity in the web GUI

In Figure 3*.19*, the detected activity is visible, and it’s marked as NOT MITIGATED. This is a result of the agent being in detection mode instead of protection mode. To take action and mitigate the detected threat, you should select the Mitigation Action option under the Actions tab, as displayed in Figure 3*.19*:

Figure 3.20 – Detected malicious activity on the web GUI

Select the appropriate mitigation action, and you will observe the threat being successfully mitigated, as depicted in Figures 3.21 and Figure 3*.22*:

Figure 3.21 – Threat was mitigated

In Figure 3*.21*, it is evident that the threat has been successfully mitigated. Additionally, the Sentinel agent alerts the user through a notification popup:

Figure 3.22 – The SAM database was deleted by the agent

The endpoint is now fortified, impeding attackers from circumventing the SAM database.

Suppose an attacker takes over the machine. The attacker wants to communicate with the machine for persistence and creates a scheduled task to ensure this.

After an attack leveraging persistence techniques such as scheduled tasks, MITRE ATT&CK outlines essential post-incident measures aimed at mitigating risks and averting future occurrences. A primary recommendation involves the identification and removal of malicious persistence mechanisms, which entails a thorough investigation to uncover any malevolent creation or alteration of scheduled tasks on the affected system. By eradicating these tasks, organizations can effectively neutralize the attacker’s foothold.

However, organizations equipped with EDR solutions enjoy streamlined remediation processes. These tools can automatically detect and remove persistence mechanisms, significantly reducing the burden on administrators and minimizing the manual effort required for identification and removal. Consequently, the presence of EDR solutions accelerates post-incident recovery, enhancing overall resilience against such threats.

Now, let’s revisit our hypothetical attacker scenario. In this case, the attacker aims to establish persistence on the compromised system by creating a scheduled task. The following is the script the attacker intends to use for this purpose:

schtasks /create /sc hourly /mo 1 /tn "Evil_Was_Here!!" /tr "C:\test\test.bat" /st 00:00 /ru system /rl highest

After running this code, the output will look like Figure 3*.23*:

Figure 3.23 – The attacker created a scheduled task

In Figure 3*.24*, the scheduled task is clearly visible within the Windows Task Scheduler window. Figure 3*.25* shows that this activity was detected at the endpoint:

Figure 3.24 – Scheduled task is seen in Task Scheduler

Scheduled tasks can be seen via the Windows Task Scheduler:

Figure 3.25 – Malicious activity is detected at the endpoint

In this screen, you can see the details about detected malicious activity and its current state:

Figure 3.26 – Malicious activity is detected in the web GUI

In Figure 3*.26*, the web GUI clearly indicates the detection of malicious activity, and we can employ the same mitigation steps as those used in Use case 2. Figure 3*.27* presents the threat incident history provided by SentinelOne, offering invaluable insights for SOC teams. This information aids in comprehending the incident’s origins, its propagation within the internal network, and other relevant details. It serves as a crucial component, not only for mitigating the current attack but also for proactively preventing future threats:

Figure 3.27 – Threat incident history

You can see how the threat was mitigated by the agent in Figure 3*.28*:

Figure 3.28 – The threat was mitigated by the agent

As we conclude our examination of different use cases involving EDR, we believe you now recognize the illuminated advantages that these insights can bring to your organization. EDR proves to be a strong solution, addressing various aspects such as threat detection, incident response, and the implementation of proactive security measures, thereby enhancing the resilience of your cybersecurity stance.

In this chapter, we successfully deployed the SentinelOne Singularity EDR/XDR tool, configured essential settings, and explored three distinct use cases. These scenarios encompassed endpoint management involving firewall rule creation, the detection and mitigation of credential dumping incidents, and the acquisition of control through the creation of scheduled tasks. We demonstrated SentinelOne’s proficiency in both detecting and mitigating these threats, and we delved into the presentation of incidents in an incident history tree format, which holds considerable value for SOC teams.

In the upcoming chapters, our exploration of EDR technologies takes a shift toward understanding the offensive side of the spectrum. We will delve into the methodologies and techniques that adversaries may employ to circumvent EDR tools, gaining insights into the evasion tactics that pose challenges to traditional security measures. By examining these offensive strategies, we aim to provide a comprehensive understanding of the potential vulnerabilities and limitations of EDR technologies. This knowledge will empower security professionals to enhance their defensive strategies, ensuring a more robust and proactive approach to cybersecurity. Stay tuned as we unravel the intricacies of the offensive landscape and equip ourselves with the knowledge needed to stay one step ahead of potential threats.