Notes / Module 9
System & Endpoint Protection
Every endpoint is a way into the network, so protection layers host-based tools (antimalware, host firewall, HIDS/HIPS) on top of network-based ones. This module covers OS hardening, patching, antimalware, host intrusion detection, boot integrity and shrinking the attack surface.
9.1.2Operating system security
Hardening an operating system means removing unneeded programs and services and installing security patches and updates promptly. Patches correct faults and mitigate risks, and a good administrator configures the OS to protect against outside threats.
Updates should follow a systematic approach:
- Monitor: establish procedures for security-related information.
- Evaluate: decide whether the update is applicable.
- Plan: the installation of application updates and patches.
- Install: using a documented plan.
A baseline lets you compare how a system performs against expectations, so you can identify potential vulnerabilities.
9.1.3Antimalware and malware types
Antimalware protection comes in five kinds. Run only one antimalware program at a time.
| Kind | What it does |
|---|---|
| Antivirus | Monitors for viruses, warns, quarantines or deletes |
| Adware | Looks for programs that show unwanted popup ads |
| Phishing | Blocks IPs of known phishing sites, warns on suspicious mail |
| Spyware | Scans for keyloggers and other spyware |
| Sources verification | Warns about unsafe programs or websites |
Malware includes viruses, worms, Trojans, keyloggers, spyware and adware. A rogue antivirus is a fake Windows-style warning, shown as an ad or popup while browsing, that installs malware when you click to "clean" the computer. It does not come from a legitimate source, and clicking anywhere in the window may download malware.
Fileless malware uses legitimate programs and runs straight in memory, leaving no footprint on disk. It uses scripting tools such as Windows PowerShell, is hard to detect and remove, and the attack ends when the system is rebooted. Python, Bash (the command language of macOS and most Linux distributions) and VBA (Visual Basic for Applications, used in Microsoft macros) can all carry malicious scripts.
Unapproved software may not be malicious but breaks security policy. It is installed unintentionally or deliberately by users and can interfere with the organisation's software or network services. Remove non-compliant software immediately.
9.1.5Patch management
A patch is a code update that stops a new virus, worm or other malware from making a successful attack. Patches and upgrades are often combined into a service pack. Windows checks for security updates, critical updates and service packs, and can auto-install high-priority updates or just notify the user.
An automated patch service gives the administrator central control:
- Approve or decline updates, or force an update on a specific date.
- Get reports on the updates each system needs.
- Patches come from a local server, so each computer need not contact the vendor.
- Users cannot disable or circumvent updates.
- A patch can be tested before it is deployed organisation-wide.
Third-party applications such as Adobe Acrobat, Java and Chrome need patching too. Proactive patching helps prevent ransomware.
9.1.6Endpoint and host-based solutions
An endpoint is a host on the network that can access, or be accessed by, other hosts: computers and servers, IoT devices such as cameras and controllers, and devices reaching the network remotely over VPN. Each endpoint is a potential opening for malware.
A host-based solution is software running on the endpoint itself, working with the operating system to prevent attacks. The internal LAN has two elements to secure: the endpoints (laptops, desktops, printers, servers, IP phones; prone to malware) and the infrastructure that interconnects them (switches, wireless and IP telephony devices). Infrastructure faces MAC table overflow, spoofing, DHCP, LAN storm, STP and VLAN attacks.
- Host-based firewall
- Filters traffic entering or leaving one device
- HIDS
- Host-based intrusion detection; alerts on attacks
- HIPS
- Host-based intrusion prevention; blocks known attacks and anomalies
- EDR
- Endpoint detection and response; collects endpoint data, analyzes it and responds
- DLP
- Data loss prevention; stops sensitive data leaving or being misused
- NGFW
- Next-generation firewall; a firewall plus extra filtering such as application awareness and IPS
9.1.11Managing device threats and physical protection
| Threat | Countermeasure |
|---|---|
| Unpatched software | Update and patch all OSs and applications |
| User downloads | Approved application list |
| Malware | Automated antimalware scans and updates |
| Unattended devices | Password policies, screen lockout on inactivity |
| Unauthorised media | Disable CD/DVD and USB ports, or auto-scan inserted media |
| AUP violations | Content filtering, annual awareness training |
Physical protection includes cable locks, locked telecom rooms and Faraday cages, which block electromagnetic fields and signals. A keyed entry lock is the most common but easily forced; add a deadbolt, and remember any keyed lock is vulnerable if keys are lost, stolen or duplicated. A cipher lock uses a button sequence, can be time-limited and logs the code and time of each opening.
RFID uses radio waves to identify and track tagged items, and can wirelessly lock, unlock or configure devices. Tags hold an integrated circuit connected to an antenna, are small and need no battery to talk to a reader. This helps automate asset tracking.
9.1.8Host encryption and boot integrity
EFS (Windows Encrypting File System) encrypts files, folders or a drive. Full disk encryption encrypts everything on the drive, including temp files and memory; Windows uses BitLocker. The TPM is a chip on the motherboard that stores encryption keys, digital certificates and passwords, and information about the host system. It must be enabled in the BIOS for BitLocker to use it.
BitLocker To Go encrypts removable drives, needs no TPM, and requires a password to decrypt. A self-encrypting drive automatically encrypts all its data, which blocks attackers reading the drive through their own OS.
BIOS is the first program that runs at power-on; UEFI is the newer standard interface between OS, firmware and external devices, preferred because it can run in 64-bit mode. Firmware sits on a small memory chip on the motherboard.
Boot integrity is assurance that the system is trusted and was not altered while the operating system loaded.
| Secure Boot | Measured Boot | |
|---|---|---|
| How | Firmware checks the signature of each boot component; only valid signatures let the OS take control | Logs each component in the TPM, measuring from firmware through to boot start drivers |
| Covers | UEFI firmware drivers, UEFI applications and the OS | Identifies untrusted applications trying to load |
| Result | Device boots using only trusted software | Boot state can be verified remotely; allows antimalware to load earlier |
Measured Boot is the stronger of the two: it records what loaded rather than only blocking what is untrusted.
9.1.10Apple system security
| Feature | What it does |
|---|---|
| Secure Enclave | Special CPU, boot and AES engine on one chip |
| FileVault / Data Protection | Hardware AES encrypted storage |
| Boot ROM | Only genuine, unaltered Apple OS software runs |
| Biometric data | Processed in security hardware, away from the OS |
| Find My Mac | Locates lost or stolen macOS devices; can remotely lock them or erase storage |
| XProtect | Signature-based detection that blocks malware, alerts the user and offers removal |
| Malware Removal Tool (MRT) | Detects and removes existing infections; rules updated automatically by Apple; also checks at restart and login |
| Gatekeeper | Allows only authentic, digitally signed software from an Apple-notarised developer to be installed |
9.2Antimalware protection
Antimalware software detects threats in three ways:
| Method | Looks for |
|---|---|
| Signature-based | Characteristics of known malware files |
| Heuristics-based | General features shared by various malware |
| Behavior-based | Suspicious behavior |
Agent-based antivirus runs on every machine. Agentless antivirus scans hosts from a central system, which suits virtualised hosts, because an agent in each virtual machine drains system resources.
Telemetry is the robust logging built into host-based security software, which some programs send to a central location for analysis. Security suites bundle antivirus, anti-phishing, safe browsing, HIPS and firewall. AV-TEST is an independent lab that reviews host-based protection.
Network-based devices add a second layer:
| Device | Role |
|---|---|
| AMP | Advanced Malware Protection: endpoint protection from viruses and malware |
| ESA | Email Security Appliance: filters spam and malicious email before it reaches endpoints |
| WSA | Web Security Appliance: website filtering and blocklisting; enforces acceptable use policies |
| NAC | Network Admission Control: only authorised, compliant systems may connect |
9.3Host-based firewalls and intrusion detection
A host-based firewall is standalone software controlling traffic entering or leaving a computer, using profiles or custom rules that can match addresses, protocols and ports. It can alert the user to suspicious behaviour, and its logs record time, allow/deny, IPs and ports. Distributed firewalls are host firewalls with centralised rule management.
| Firewall | Notes |
|---|---|
| Windows Defender Firewall | Profile-based, first included with Windows XP. Profiles: Public (restrictive), Private (behind a firewalled router), Domain (trusted business network) |
| iptables | Linux; access rules that are part of the kernel's Netfilter modules |
| nftables | Linux; successor to iptables, runs decision rules in a kernel virtual machine |
| TCP Wrappers | Linux; rule-based control and logging by IP and network service |
A HIDS is agent-based software combining antimalware with firewall functions to protect hosts from known and unknown malware. It monitors system calls and file access and provides log analysis, event correlation, integrity checking, policy enforcement, rootkit detection and alerting. It often has a management server endpoint, and it detects malware and can stop it executing.
| Detection | How it works | Basis |
|---|---|---|
| Signature | Matches known threats | Known signatures; not zero-day or polymorphic malware |
| Anomaly-based | Compares behaviour to a learned baseline; significant deviations signal intrusion | Judged against the baseline |
| Policy-based | Enforces predefined rules; a violation triggers action, such as shutting down the process | Rule-driven |
| Term | Role |
|---|---|
| HIDS | Host-based intrusion detection: alerts on attacks |
| HIPS | Host-based intrusion prevention: blocks known attacks and anomalies |
| EDR | Endpoint detection and response: collects endpoint data, analyzes it and responds |
HIDS products include Cisco AMP, AlienVault USM, Tripwire and OSSEC, the open-source one, which uses a manager server plus agents on Mac, Windows, Linux and Solaris. OSSEC monitors logs, checks file integrity, detects rootkits and can receive syslog alerts from network devices.
9.4Application security and the attack surface
The attack surface is the total sum of vulnerabilities in a system that is accessible to an attacker: open ports on servers or hosts, software on internet-facing servers, wireless network protocols, and even users. It grows with IoT, BYOD, cloud and mobility. SANS splits it into three components:
| Component | Covers |
|---|---|
| Network | Wired and wireless protocol weaknesses, network and transport layers |
| Software | Web, cloud or host-based applications |
| Human | Social engineering, malicious insiders, user error |
A blocklist names applications that may not run; an allow list names the only ones that may. Both reduce the attack surface. Allow lists follow the organisation's security baseline, and non-allowlisted software raises risk beyond it. Websites can be listed too, for example by Spamhaus or Cisco Talos via Firepower.
Sandboxing runs suspicious files in a safe, isolated environment to analyse their behaviour; the observed behaviour is used to build defences. Cuckoo Sandbox is a popular free option run locally. Online options are VirusTotal, Joe Sandbox and CrowdStrike Falcon Sandbox, and ANY.RUN gives interactive reports with screenshots. Cisco AMP can track a file through the network and "roll back" events to obtain a copy for the sandbox.
Check yourself
Answer these out loud, without scrolling up. Any you can't, reread that section — then let the deck mark you.
- 1.List the four steps of a systematic approach to updates, and what a service pack is.
- 2.Name the three antimalware detection methods and say why signature-based detection fails against zero-day and polymorphic malware.
- 3.Compare agent-based and agentless antivirus, and name the four network-based malware protection devices (AMP, ESA, WSA, NAC).
- 4.What is the difference between HIDS, HIPS and EDR, and between anomaly-based and policy-based detection?
- 5.Contrast Secure Boot with Measured Boot, and EFS with full disk encryption.
- 6.Name SANS's three attack surface components, and explain blocklist versus allow list and what sandboxing is for.