studyhubInformation Assurance & Security

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:

  1. Monitor: establish procedures for security-related information.
  2. Evaluate: decide whether the update is applicable.
  3. Plan: the installation of application updates and patches.
  4. 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.

KindWhat it does
AntivirusMonitors for viruses, warns, quarantines or deletes
AdwareLooks for programs that show unwanted popup ads
PhishingBlocks IPs of known phishing sites, warns on suspicious mail
SpywareScans for keyloggers and other spyware
Sources verificationWarns 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

ThreatCountermeasure
Unpatched softwareUpdate and patch all OSs and applications
User downloadsApproved application list
MalwareAutomated antimalware scans and updates
Unattended devicesPassword policies, screen lockout on inactivity
Unauthorised mediaDisable CD/DVD and USB ports, or auto-scan inserted media
AUP violationsContent 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 BootMeasured Boot
HowFirmware checks the signature of each boot component; only valid signatures let the OS take controlLogs each component in the TPM, measuring from firmware through to boot start drivers
CoversUEFI firmware drivers, UEFI applications and the OSIdentifies untrusted applications trying to load
ResultDevice boots using only trusted softwareBoot 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

FeatureWhat it does
Secure EnclaveSpecial CPU, boot and AES engine on one chip
FileVault / Data ProtectionHardware AES encrypted storage
Boot ROMOnly genuine, unaltered Apple OS software runs
Biometric dataProcessed in security hardware, away from the OS
Find My MacLocates lost or stolen macOS devices; can remotely lock them or erase storage
XProtectSignature-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
GatekeeperAllows only authentic, digitally signed software from an Apple-notarised developer to be installed

9.2Antimalware protection

Antimalware software detects threats in three ways:

MethodLooks for
Signature-basedCharacteristics of known malware files
Heuristics-basedGeneral features shared by various malware
Behavior-basedSuspicious 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:

DeviceRole
AMPAdvanced Malware Protection: endpoint protection from viruses and malware
ESAEmail Security Appliance: filters spam and malicious email before it reaches endpoints
WSAWeb Security Appliance: website filtering and blocklisting; enforces acceptable use policies
NACNetwork 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.

FirewallNotes
Windows Defender FirewallProfile-based, first included with Windows XP. Profiles: Public (restrictive), Private (behind a firewalled router), Domain (trusted business network)
iptablesLinux; access rules that are part of the kernel's Netfilter modules
nftablesLinux; successor to iptables, runs decision rules in a kernel virtual machine
TCP WrappersLinux; 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.

DetectionHow it worksBasis
SignatureMatches known threatsKnown signatures; not zero-day or polymorphic malware
Anomaly-basedCompares behaviour to a learned baseline; significant deviations signal intrusionJudged against the baseline
Policy-basedEnforces predefined rules; a violation triggers action, such as shutting down the processRule-driven
TermRole
HIDSHost-based intrusion detection: alerts on attacks
HIPSHost-based intrusion prevention: blocks known attacks and anomalies
EDREndpoint 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:

ComponentCovers
NetworkWired and wireless protocol weaknesses, network and transport layers
SoftwareWeb, cloud or host-based applications
HumanSocial 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. 1.List the four steps of a systematic approach to updates, and what a service pack is.
  2. 2.Name the three antimalware detection methods and say why signature-based detection fails against zero-day and polymorphic malware.
  3. 3.Compare agent-based and agentless antivirus, and name the four network-based malware protection devices (AMP, ESA, WSA, NAC).
  4. 4.What is the difference between HIDS, HIPS and EDR, and between anomaly-based and policy-based detection?
  5. 5.Contrast Secure Boot with Measured Boot, and EFS with full disk encryption.
  6. 6.Name SANS's three attack surface components, and explain blocklist versus allow list and what sandboxing is for.