Lesson 3 of 3 Endpoint Device Security

TPM, Secure Browsing and EDR

Hardware roots of trust, safe web browsing and continuous endpoint monitoring complete endpoint security. This lesson explains the Trusted Platform Module and hardware security modules, secure browsing with digital certificates, and endpoint detection and response.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the functions of the TPM.
  • Describe HSMs and their management.
  • Explain secure browsing practices.
  • Explain EDR capabilities and compare EDR with antivirus.

The Trusted Platform Module

A Trusted Platform Module (TPM) is a secure cryptographic processor, a dedicated chip or a firmware implementation, built into most modern computers and specified by the Trusted Computing Group (TPM 2.0 is current). It provides a hardware root of trust with several functions.

  • Secure key storage: it generates and stores keys that cannot be exported, so they cannot be copied to another machine.
  • Measured boot: it records cryptographic measurements of each boot component in platform configuration registers.
  • Sealing: it releases a secret, such as a disk encryption key, only if the measurements match the expected state, so tampering with the boot process prevents unlocking.
  • Attestation: it signs its measurements so a remote service can verify that the device booted in a trusted state.
  • Random number generation and protection against dictionary attacks on PINs.

Secure Boot, a UEFI feature, complements the TPM by allowing only signed bootloaders and kernels to run. Together they defend against bootkits and firmware rootkits and support device health checks for zero trust access.

The following diagram shows how the boot chain detects a modified bootloader at the next boot.

What happens at the next boot after an attacker modifies a laptop's bootloader to capture the disk password. Secure Boot refuses to run an unsigned or altered bootloader, and the TPM's measured boot sees that the boot components differ from the sealed state, so it does not release the disk key. The laptop asks for the recovery key, alerting the user and IT.
The scenario is illustrative.

Hardware security modules

A hardware security module (HSM) is a dedicated, tamper-resistant device, appliance or cloud service that generates, stores and uses keys for servers and applications, such as certificate authority keys, payment PIN keys, database encryption keys and code-signing keys. Keys never leave the HSM in plaintext; applications send data to it to be signed or decrypted. HSMs are validated to FIPS 140-3 levels and detect and respond to tampering, for example by erasing keys.

HSM management includes controlling administrative access with roles, dual control and smart cards; backing up key material securely (often to another HSM); applying firmware updates; monitoring and auditing all operations; planning capacity and high availability; and managing the lifecycle of the keys it holds. A TPM protects one device's keys; an HSM protects an organisation's critical keys at scale.

Secure browsing

Web browsers are the most exposed applications on most endpoints. Secure browsing relies first on digital certificates: when a browser connects over HTTPS, it verifies that the server's certificate was issued by a trusted certificate authority for that domain, has not expired and has not been revoked. Certificate warnings may indicate a man-in-the-middle attack, so users must not click through them, and organisations should fix internal sites that cause warnings so that users are not trained to ignore them. HTTP Strict Transport Security (HSTS) forces browsers to use HTTPS for a site.

Further measures include keeping browsers updated automatically; managing extensions centrally and allowing only approved ones; DNS and URL filtering and secure web gateways to block malicious sites; isolating risky browsing in remote browser isolation or sandboxed environments; disabling unnecessary plug-ins; enforcing safe download settings; and separating administrative accounts from browsing. Enterprise browser management policies apply these settings consistently.

True or false

Secure browsing

Exam skills 7.2.7

Check facts about secure browsing and certificates.

Log in to try this activity Interactive activities are free with an account.

Endpoint detection and response

Endpoint detection and response (EDR) continuously records detailed endpoint telemetry, such as process creation and command lines, file and registry changes, network connections, logins and script activity, and sends it to a central platform. There, detection rules, indicators of compromise and behavioural analytics identify threats, often mapped to MITRE ATT&CK techniques.

EDR supports response: analysts or automated playbooks can isolate a host from the network while keeping it connected to the EDR console, kill processes, quarantine files, collect forensic artefacts and memory, and roll back changes such as ransomware encryption on some platforms. It supports investigation and threat hunting by letting analysts search telemetry across all endpoints, for example for every machine that ran a particular command line. Extended detection and response (XDR) correlates endpoint data with email, identity, network and cloud telemetry, and managed detection and response (MDR) services provide analysts who monitor and respond around the clock.

Traditional antivirus
DetectionMainly signatures of known malware
VisibilityScan results
ResponseQuarantine or delete a file
Fileless and novel attacksOften missed
EDR
DetectionBehaviour, indicators and analytics across telemetry
VisibilityDetailed activity history for investigation
ResponseIsolate host, kill processes, collect evidence, roll back
Fileless and novel attacksOften detected by behaviour
Select all that apply

What EDR provides

Exam skills 7.2.8

Identify capabilities of endpoint detection and response.

Log in to try this activity Interactive activities are free with an account.
Worked example

Tampering with boot

An attacker with physical access to a laptop modifies its bootloader to capture the disk encryption password. The laptop uses BitLocker sealed to the TPM with Secure Boot. What happens at the next boot?

Secure Boot refuses to run an unsigned or altered bootloader, and the TPM's measured boot detects that the boot components differ from the sealed state, so it does not release the disk encryption key. The device asks for the recovery key, which alerts the user and IT that something has changed.

Worked example

Hunting with EDR

Threat intelligence reports that an attacker group runs a specific renamed copy of a remote access tool with a characteristic command line. How can EDR help?

Analysts can search EDR telemetry across all endpoints for that command line, the tool's file hash and its network destinations over recent months, identify any affected hosts, isolate them remotely and collect forensic data, and create a detection rule so that future occurrences alert automatically.

Check yourself

What does it mean for the TPM to seal a key?

Show answer

It releases the key only if the measured boot state matches the expected values, so tampering with the boot process prevents unlocking.

Exam Tips

Remember for the exam

  • The TPM stores non-exportable keys, measures boot and seals keys to a trusted state.
  • HSMs protect an organisation's critical keys and need dual control and auditing.
  • EDR records behaviour, detects fileless attacks, isolates hosts and supports threat hunting.