Skip to content
ImagineWorld

Secure Your Endpoints

node_idnode-book_a-ciso-guide-to-cyber-resilience_chapter-05-secure-your-endpoints
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num5
chapter_titleSecure Your Endpoints
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

This chapter is about endpoint detection and response (EDR). Here, we will be discussing the importance of securing your endpoints. Securing your endpoints is critical; this includes laptops and servers. With the move to remote work, people working out of their homes, and mobile working, it means endpoints are more at risk. Do your employees have a home firewall? When I worked at Cisco, they sent us configured firewalls with steps to complete the setup. Most companies can’t afford to send out firewalls to everyone. There are solutions where you can test your home firewall setup to make sure it is configured properly.

In this chapter, we’re going to cover the following main topics:

  • Antivirus/anti-malware
  • Virtual private network (VPN)
  • Moving to remote work
  • Testing your home firewall
  • Network access control (NAC) and Zero Trust
  • Application firewall
  • Securing your browser
  • Turning on your application firewall
  • Okta hack

I’m sure you are familiar with antivirus and anti-malware. Every laptop, computer, and server should have a good antivirus installed, including every Apple MacBook. An antivirus is essentially a program that is installed on your laptop or server and scans your computer periodically for any virus or malicious software. Today, there is a new name for the latest antivirus and anti-malware software. It is called EDR or endpoint protection platform (EPP) software. Essentially, EDR software provides antivirus, anti-malware, and response capabilities. Let me explain; the best EDRs have levels of service that you can purchase along with the software. If you purchase the full capabilities with 24/7 customer support, then you will have access to an incident response (IR) help desk that will respond in case of an infection or attack. For example, with CrowdStrike, SentinelOne, Microsoft Defender for Endpoint, Bitdefender, Carbon Black, and Malwarebytes, if you purchase the full package including “R” response, then the IR support comes with antivirus and anti-malware. On the surface, it sounds great. If you are a small or medium-sized company and you don’t have an IR team (IRT), then your EDR can provide you with this support. Now, I have to caution you that CrowdStrike is considered the industry leader according to Gartner’s EPP Magic Quadrant 1, but it is the most expensive. CrowdStrike comes with a 24/7 IR help desk. I only recommend CrowdStrike for large organizations, not small or medium-sized. You may be saying, “But wait! I want my customer to have the best one.” I had a dear friend, Tony Pierce, who is the North American field CTO at Splunk, tell me, “Don’t recommend CrowdStrike for a start-up; you’ll get fired.” Tony recommends SentinelOne for small and medium-sized businesses. Since I found out about Bitdefender, I recommend it for start-ups. A few weeks later, I attended the RSA SANS CISO boot camp. The first SANS speaker starts out talking about how he just got done talking with a start-up that fired their CISO because he recommended CrowdStrike! The SANS speaker said, “Your company may not need an expensive EDR.” It was more confirmation of what Tony had cautioned me about already. This is why networking and knowing other people in the cybersecurity community is so important to bounce ideas off of them and find out what they are doing.

1 Gartner, December 2023

The good news is that Microsoft Defender for Endpoint comes free on Windows machines. Defender for Endpoint is rated very high on Gartner’s EPP Magic Quadrant, almost the same as CrowdStrike. You do have to do research on the level of protection provided with the free version of Defender for Endpoint. For example, to have email phishing protection, you have to also purchase the Windows Defender for Office 365 Plan 1 add-on or purchase one of the premium Microsoft 365 (M365) packages. The base Microsoft Defender package doesn’t include it. I know this because one client had gotten rid of Mimecast since they had M365 and they thought it provided email phishing protection, but the spam and phishing emails were exponentially increasing. When I researched the Windows M365 licensing, I realized that Microsoft Defender for M365 needed to be purchased separately. It’s way more cost-effective to purchase the Microsoft Defender add-on rather than purchase the premium M365 license.

When you are looking at new products, ideally look at three. You can create a spreadsheet and explain the features, ratings, and cost. This way, you are showing due diligence by doing a product comparison of at least three products. In your EDR product comparison for the SMB space, you could compare MS Defender for Endpoint, Bitdefender, SentinelOne, and Malwarebytes. Even though MS Defender for Endpoint is free, there is a cost associated with the extra features. As discussed earlier, the most cost-effective way to get an email scanner is to purchase the MS Defender add-on package. If you have Macs, although MS Defender provides a Mac version, I have heard it is difficult to get it working. For businesses with Macs and Windows, I recommend using Bitdefender, SentinelOne, or Malwarebytes ThreatDown.

When securing your endpoints, a VPN is necessary when you are away from the office or traveling, unless your company has a software-defined perimeter (SDP). I cover SDPs and Zero Trust in Chapter 11. Your company may have a VPN set up if they have an on-premise data center. Typically, you will connect to the company VPN in order to get access to the on-premise servers and applications. As more and more companies move to cloud-first postures, your company may not have one set up. If your company is cloud-first, then every service it uses is a SaaS. Your employees log in to M365 or Google Workspace, for example. The remote session is already being encrypted with TLS 1.2 or above. As more companies move to this posture, they may not have a VPN that you connect to. A VPN is not obsolete. When you are out and about away from your home Wi-Fi or company network, connecting to guest Wi-Fi, then you need to use a VPN. Be suspicious of any free VPN except for Proton VPN. There are free VPNs that track and sell your data, but not Proton VPN. Ideally, your company would purchase a VPN and provide it to your employees unless using SDP or Zero Trust. If you are at a start-up or budget-conscious company, then I recommend using F-Secure VPN or Proton VPN when you are out and about connecting to public Wi-Fi networks. There are other good VPNs on the market; just do your due diligence and research.

Email phishing is one of the top ways that hackers compromise people’s computers. The hackers craft an email that looks legitimate, but it has a malicious attachment. Another tactic is to have an email that contains a link to a malicious website. If the unsuspecting person clicks on the link, then the user ends up on a malicious website not realizing malware has been automatically downloaded to their computer. The malicious software may be used to spy on you or, even worse, capture every keystroke on your computer.

Phishing has advanced, giving rise to multiple variations employing the following methods:

  • Vishing scams: These occur via phone calls, voicemails, or Voice over Internet Protocol (VoIP) communications
  • Smishing scams: These are executed through SMS (text) messaging
  • Pharming scams: This variant involves the installation of malicious code on your computer, which redirects you to counterfeit websites

Email security scanners will analyze your email before it hits the email servers and filter out infected emails by putting them in quarantine, preventing phishing and spam emails from being delivered to your employee mailboxes. Quarantine is a safe place to store emails without them executing malicious software. Your company can then turn them in to the FTC (https://reportfraud.ftc.gov/#/) or delete the phishing emails.

Microsoft Exchange Online Protection (EOP) or Defender for Office 365 Plan 1 can be used for email scanning. The base free version of Defender doesn’t include an email scanner. This is important if you are also using M365, email phishing protection is not included in the base Office 365 (O365). If you are using M365 for email, then you should upgrade to include the Defender for Office 365 Plan 1 package. It’s cheaper to get the base M365 version and add the Defender package than to purchase the M365 E5 version.

Now, if your company is using Google Workspace for their email, then Google provides a high level of email phishing scanning, so the base Defender EDR would be fine. If your company is medium or large, then definitely look into a good email phishing filter product such as Abnormal Security, Proofpoint, Mimecast, Cisco Email Security Appliance (ESA), or Microsoft EOP. Definitely select at least three vendors to compare, and do your due diligence. You can find a software evaluation template at https://TrustedCISO.com. An example table is provided next:

FeaturesMimecastMicrosoft DefenderProofpoint
Windows clientYesYes for WindowsYes
Mac clientYesM365 for Mac*Yes
SaaSYesYesYes
Email spoofingYesTBDYes
URL protectionYesTBDYes
URL analysisYesTBDYes
Ransomware email protectionYesTBDYes
Cost$ TBD$ TBD$ TBD

* Note: There is a Defender for Mac, but I heard it is difficult to get working.

Table 5.1 ‒ Software evaluation email scanner

Similar to recommending EDRs based on your company size, it’s the same for email security scanners. Based on price, Proofpoint is the highest rated and most expensive. I only recommend it for large organizations. Mimecast has a better price and makes more sense for small and medium-sized organizations. Microsoft’s email scanner also makes sense for small and medium-sized organizations. Abnormal Security relies on artificial intelligence (AI) plugged into M365. It detects malicious emails that other email security solutions do not detect.

When securing your endpoints, typically mobile device management (MDM) comes up. I will be covering protecting your MDM later, in Chapter 9, Asset Inventory.

When COVID hit, there was a massive move from workers being in the office to working from home. Suddenly, your home network security became a higher priority. Now, we are in more of a hybrid work situation, but many companies are allowing their employees to continue to work from home. I think this is great. I have been working from home since 2001. I found it to be the best option for me. Prior to COVID, there was a move in tech to work in the office. I was super disappointed when I interviewed with IBM, which was one of the pioneers in working from home in the 90s and had completely abolished the ability to work from home. One bright spot of COVID is that it forced people to work from home, and companies saw it works. Everyone is different, so for some, being in an office works better for them. I think it should be a personal choice. Of course, for new college graduates, I think working from the office is paramount if able for the first 2 years. At the same time, with Zoom and all the great collaboration tools available, I don’t see a difference between working in the office and at home. I work with teams from all over, which makes remote work the best option.

The LastPass hack is a good reminder to make sure your company’s end-user machines are secure. First, let’s discuss how the breach occurred, and then we can talk about how it could have been prevented. The LastPass hack ended up being because a lead AWS administrator’s home computer was breached because of an unpatched Plex server that had a remote code executable vulnerability. Essentially, if the LastPass employee had ensured auto updates were enabled on his home computer, then there would not have been a huge LastPass breach.

Let’s get into the details of the hack. One of the most obvious issues is: Why would hacking his home computer cause a breach at his company? Well, once the hackers were able to compromise his home computer, they installed a key logger. At that point, the hackers were able to log every single keystroke on his home computer. You may still be asking yourself: How would that affect his company, LastPass? Well, some reports said he was also using his home computer to VPN into work. If this is accurate, then the employee had LastPass installed on his home computer and would type in his LastPass password to access his passwords for work. Now, the attackers had his LastPass password and had access to his LastPass password manager. If he’d had two-factor authentication (2FA) set up for LastPass, there would have been a chance that they couldn’t get access to LastPass. Even with the unpatched Plex server, why was the attacker able to gain access to his computer in the first place? If the LastPass employee’s home firewall had been properly configured, then the attacker would not have been able to gain access to his home network. Because this employee was a key AWS engineer supporting the LastPass cloud infrastructure, he had access to high-value administrator passwords and keys that allowed the hackers to gain access to the backups of customer LastPass vaults.

  • Turn on auto-updates for patching
  • Use 2fa
  • Ensure the home firewall is properly configured

You are probably thinking, is my home firewall properly configured? Cisco sent preconfigured firewalls to each employee. Most companies can’t afford to send every employee a firewall. One way to ensure your employee’s home networks are secure is to have them do a test on it. Steve Gibson’s ShieldsUP web page provides a home firewall test that can be run: https://www.grc.com/x/ne.dll?bh0bkyd2. You could send this out to your employees to test their home firewalls. HackerTarget offers a way to test your external firewall also: https://hackertarget.com/firewall-test/. In addition, you can update your information security policy or acceptable use policy (AUP) stating that an employee can only connect to the company network with their company-assigned computer. Only phones or home computers can be used for checking email.

Network access control (NAC) and Zero Trust

Section titled “Network access control (NAC) and Zero Trust”

Another option is to scan all devices that attempt to connect to your work network. Typically, this is part of Zero Trust offerings, but it’s actually NAC that has been around since the late 2000s. NAC provides scanning, ensuring that the operating system (OS) is patched. In addition, NAC will ensure that your antivirus and anti-malware are up to date on all devices prior to being allowed to access your network. If your machine is company-issued, but the OS isn’t patched or the antivirus needs to be updated, then NAC would place you on a separate network to upgrade the software. This was set up at Cisco years before the Zero Trust became a big topic. NAC is considered a building block of Zero Trust. At Cisco, if I brought in my personal laptop, it would not automatically connect to the Cisco internal Wi-Fi network. There was a website you would go to to register your device. NAC would scan your device to ensure the OS and antivirus were up to date. Even if the software on the device was patched and updated, the device would only be allowed to connect to the guest Wi-Fi. You can either attempt to set up NAC on your firewall for your network or purchase a Zero Trust solution. I always like to recommend Cloudflare’s Zero Trust solution. The first 50 seats are free, so it is ideal for small organizations. Instead of using a traditional VPN to connect to your internal network, use Cloudflare One. Cloudflare originally developed it during COVID when everyone was working from home. Now, they offer it as a service. There are other Zero Trust offerings such as Cato, and Zscaler is a leader in the space.

To secure your endpoint, ensure the application firewall is turned on. The application firewall protects your computer from being attacked by another device on the same network. Whether you are running Microsoft Windows or macOS, the application firewall needs to be enabled. By default, Windows has the application firewall turned on; leave it that way. On macOS, the application firewall is off by default. You should ensure your baseline configuration for Macs is to enable the application firewall. Go to Settings | Network | Firewall to enable it. Some may say, “Well, I mainly connect to my work network, so it is secure.” This is not always the case. Zero Trust means anyone could be an attacker. The reason is that a user’s machine could have been hacked, and the user unknowingly is part of a botnet. What is a botnet? Essentially, hackers take over Internet of Things (IoT) devices such as cameras and lights that are directly connected to the internet. Likewise, hackers can compromise computers. Once the hacker has control of the device or computer, they can install malware that brings those devices and computers into a botnet. The botnet is a hacker-controlled assimilation of devices that the hacker will use to attack and break into other networks. For example, the hacker could have these devices and computers attack a specific server by overwhelming it with pings or attempted connections. This would be a distributed denial-of-service (DDOS) attack. IoT devices are particularly susceptible since many have default passwords that cannot be changed. They also have such small processors and storage space that providing encryption such as TLS 1.2 or above is not possible. The National Institute of Standards and Technology (NIST) is working on a lightweight cryptography standard that can be run on IoT devices to help solve this problem.

There were unintended consequences of the 2016 Summer Olympics that were held in Rio de Janeiro. Brazil wanted to provide a safe and smart city initiative for the Olympics. The unintended consequences were that all of these cameras and sensors installed throughout the city had default admin credentials that couldn’t be changed. Hackers were able to install malware that made them part of the Mirai botnet. Mirai is a type of malware designed to compromise IoT devices running on ARC processors. Once infected, these devices are transformed into a remotely managed botnet, commonly used for executing DDoS attacks.

The IoT devices became a powerful hacker tool to execute DDoS attacks. You may think: Why not change the default password? Well, there is no option to change the password on these devices. They are so small, with little storage and processing power, that the only solution is to replace the sensors with ones that can change the password. IoT devices also can’t encrypt remote sessions using TLS, SSH, or IPsec. As a result, the only solution is to replace the devices with new ones. When you are purchasing IoT devices, check and see what security features they have. At a minimum, you can change the administrator password. Another solution is to put all of your IoT devices on a separate subnet off of the internet. You need to do a discovery of all of your IoT devices in order to get them off of your internal network. They need to be segmented into their own network. There are tools such as Armis, Axonius, and Forescout that you can use to do the discovery to inventory all of the IoT devices. There are tools you can use to segment these IoT devices into their own networks, such as Illumio, Airgap, and Cylera.

  • Change default password
  • Discovery
  • Segmentation

Everyone has a favorite browser, but I currently prefer Firefox. Brave is also a good browser that is based on Chrome; it has a lot of security functionality built in. Brave has built-in privacy. Brave provides safe browsing and search with a VPN (for an added fee). My only complaint is that it’s so safe, sometimes even after whitelisting a site, it may not work properly. Firefox also has some good blockers built in to protect you. You can also add Ghostery to your browser to add further blocking protections. Essentially, when you go to a website, you may have to allow an action on the site. This will prevent your computer from being harmed by a malicious website. Also, make sure you configure auto-update so that your browser stays updated on software patches and upgrades. Based on Chromium, Enterprise Browser is a web browser designed specifically for enterprise use. It features core security controls embedded within the browser itself, such as anti-phishing, a malware scanner, and web filtering.

Traditional firewalls are devices, but there are also software firewalls. A firewall is typically a device that sits between your internal network and external network (internet). The network firewall filters the network traffic. Software firewalls are applications you install such as in the cloud, in VLANs, or residing on your OS that filter traffic going into and out of the device that could be virtual. By default, you want to deny/deny traffic versus allow/allow.

Ensure the application firewall on your OS is enabled. macOS does not enable the application firewall by default. Go into your Mac’s System Settings | Network | Firewall and enable the firewall. By default, on Windows OS, the firewall is enabled. Open the Control Panel, then select Windows Security | Firewall and Network Protection | Firewall on.

The Okta hack was one of the biggest hacks of 2022. A tweet was sent on Twitter where the LAPSUS$ hacker group was bragging that they had hacked Okta. The tweets included screenshots of a customer support engineer’s computer:

Figure 5.1 ‒ LAPSUS$ announcing they had hacked Okta

Within the screenshots was a picture of the hacker logged in as a Cloudflare employee.

I was a CISO at this point, and someone at my company forwarded the tweets to me. Twitter (or X, as it is now called) is a good place to stay up on all of the latest hacks since hackers will brag on X. Also, there is a great number of cybersecurity researchers who post information on the site. If your company has an incident, then you need to do a write-up of the incident, detailing how you found out about it and the steps you took to address it. When there is an active incident at your company, you need to create a Tiger team or IR interim working group to focus on the Okta hack and how it may affect your company. You need to document a detailed timeline of when you found out about the hack or potential hack and the steps taken to address and remediate the issue. One of the first things we did was change our administrator passwords to be safe. Someone else suggested we force a password reset on all user accounts. The Tiger team decided to wait to force a password reset until we received more information about the hack. One of the problems is that it took Okta several days to respond publicly, which left Okta users wondering how to protect themselves and how bad the hack was. The hackers were making it out to be way worse than it actually was. The whole time, I documented what was happening and any steps taken.

The Tiger team checked for any signs of compromise to the company’s systems and found nothing. The Tiger team literally started doing Google searches to get more information on the hack, and I found the best actionable information posted by Cloudflare. The Cloudflare blog explained that Cloudflare uses Okta internally for their employee single sign-on (SSO). Since a Cloudflare employee’s account was in a tweet showing the hacker was using it, Cloudflare temporarily suspended the user’s account. Cloudflare’s IRT did a thorough investigation by pulling a list of all employees who requested a password or multi-factor authentication (MFA) reset from December 1, 2021, through March 22, 2022. Cloudflare forced a password reset for these employees in case a hacker had requested a password or MFA reset. Okta notified Cloudflare that morning that there was no evidence of compromise for Cloudflare’s Okta instances.

Cloudflare went on to explain that there is a setting within Okta that allows Okta Customer Support to have escalated privileges and recommended disabling this access. In the final blog that Cloudflare posted about the Okta hack, they removed the information about Customer Support access. Cloudflare also explained it reviewed its Okta logs and stores the Okta logs on-premise so that they have access to them past 90 days, which is what the Okta dashboard provides. Okta explained they searched for the following in the Okta logs:

user.account.reset_password, user.mfa.factor.update, system.mfa.factor.deactivate, user.mfa.attempt_bypass, and user.session.impersonation.initiate

In addition to searching their Okta accounts for password resets, they also reviewed their Google Workspace accounts for resets during the December through March timeframe and forced password resets on those accounts.2 As a CISO, I was so grateful for Cloudflare to have posted such detailed and helpful information publicly to help other Okta customers. It took Okta several days to respond to even acknowledge the hack, let alone provide guidance to its customers.

2 Graham-Cumming, John, et al. “Cloudflare’s Investigation of the January 2022 Okta Compromise.” The Cloudflare Blog, Cloudflare, 14 June 2022, blog.cloudflare.com/cloudflare-investigation-of-the-january-2022-okta-compromise/.

Based on company size, your company’s endpoint security strategy may consist of the following:

  • Basic:
    • Antivirus
      • Windows Defender (Windows devices) - Bitdefender (Mac devices) - Malwarebytes ThreatDown Core (Mac devices) - SentinelOne Core (Mac devices)
      • VPN
      • Proton VPN (free) when on guest Wi-Fi - F5 SecureFreedom - ExpressVPN - Surfshark
      • Security and awareness training and phishing campaigns (Chapter 7)
      • Curricula
  • Medium:
    • Antivirus
      • Windows Defender (Windows devices) - Bitdefender (All devices) - Malwarebytes ThreatDown Advanced or Elite (All devices) - SentinelOne Control or Complete (All devices)
      • VPN
      • F5 SecureFreedom - ExpressVPN - Surfshark - Cisco - Palo Alto - Check Point
      • Email scanner
      • Defender EOP - Mimecast
      • Security and awareness training and phishing campaigns (Chapter 7)
      • KnowBe4 - Curricula - NINJIO
  • Advanced:
    • EDR
      • Windows Defender (Windows devices) - Bitdefender (All devices) - Malwarebytes ThreatDown Elite or Ultimate (All devices) - SentinelOne Commercial or Enterprise (Mac devices)
      • VPN
      • Cisco - Palo Alto - Check Point
      • Email scanner
      • Defender EOP - Proofpoint - Cisco ESA
      • Security and awareness training and phishing campaigns (Chapter 7)
      • KnowBe4 - Curricula - Ninjio

In summary, securing your endpoints is imperative to lower your company’s risk. Whether an employee takes their work laptop and connects it to a public Wi-Fi or clicks on a suspicious email, there are risks with your endpoints. Ideally, you want an advanced antivirus and anti-malware solution such as an EDR. Having a good EDR will both secure the endpoint and will alert you and your security team if an event occurs.

In the next chapter, we will be covering backups. When building a security program, ensuring you have good offline backups is critical. Whether an employee makes a mistake or your company gets attacked by ransomware, you need good offline backups and a business continuity plan (BCP).