Endpoint security
About this lesson
Endpoints, the laptops, phones and servers where people and programs work, are where most attacks land. Learn the habits that protect them: keep an inventory, set a safe baseline, patch quickly, encrypt the disk, watch with EDR and respond fast. Then follow one laptop through a seven-line Python health check: it is stopped while an update is missing, passes once patched, is cut off automatically when EDR raises an alert, and gets its access back after the clean-up.
What an endpoint is
An endpoint is any device at the end of a network link where people and programs work: laptops, phones and servers. Attacks often land on endpoints, so each one needs its own protection. Here: one laptop and one phone.
endpoint a device at the end of a network link
where people and programs work
examples laptops, desktops, phones, tablets,
servers
here one laptop · one phone
why email, web pages and files all
arrive here firstRead the lesson step by step
What an endpoint is
An endpoint is any device at the end of a network link where people and programs work: laptops, phones and servers. Attacks often land on endpoints, so each one needs its own protection. Here: one laptop and one phone.
endpoint a device at the end of a network link where people and programs work examples laptops, desktops, phones, tablets, servers here one laptop · one phone why email, web pages and files all arrive here firstKnow every device
You cannot protect a device you do not know about. So step one is an inventory: a list of every device, who uses it and what runs on it. Each device checks in with the security console, which keeps that list.
inventory every device, its owner, and the software on it NIST CSF 2.0 ID.AM-01 hardware inventory ID.AM-02 software inventory console laptop ✓ checked in phone ✓ checked in unknown device = unprotected deviceWrite the baseline down
A baseline is the settings every device must have. In Python, the list CHECKS names four: updates installed, disk encrypted, a security watcher (EDR) running, and no open alert. The four boxes show our laptop: one is False.
CHECKS = ["patched", "encrypted", "edr_on", "no_alert"] laptop = {"patched": False, "encrypted": True, "edr_on": True, "no_alert": True} baseline the same safe settings on every device (OWASP: a repeatable hardening process)Check before access
Before the laptop reaches company data, a check runs. missing() lists every check the laptop fails. Here it returns ["patched"]: an update is missing. So allowed() returns False, the lamp shows 0 and the request is stopped.
>>> missing(laptop) ['patched'] >>> allowed(laptop) False # one check failed stopped at the access check checked on every request, not oncePatch, then pass
Patching means installing the maker's fixes for known flaws. The update arrives, patched becomes True, and missing() now returns an empty list. allowed() returns True: the lamp shows 1 and the request reaches the data.
laptop["patched"] = True # update installed >>> missing(laptop) [] >>> allowed(laptop) True # the request reaches the data patch first flaws in CISA's Known Exploited Vulnerabilities catalogEncryption for lost laptops
Full-disk encryption scrambles everything stored on the laptop, so it can only be read after the user signs in. If the laptop is lost or stolen, the files stay unreadable. encrypted is True, so this check passes.
full-disk encryption on the disk scrambled after sign-in readable for the user lost laptop the finder sees only scrambled data laptop["encrypted"] True ✓ NIST SP 800-111 storage encryption for end user devicesSomething still gets in
No baseline stops everything. A harmful file arrives by email and someone opens it. They use a normal account, not an admin one, so the program cannot change the whole system. But it starts to run.
harmful file malware: software that does harm arrives by email, a download, a USB stick normal account not admin: the program cannot change the whole system (least privilege) still it runs as that userEDR spots it
EDR, endpoint detection and response, is a watcher on the device. It notices odd behaviour, like one program changing hundreds of files in seconds, and alerts the console. The laptop's no_alert box turns False.
EDR endpoint detection and response watches what programs do, not only what files look like odd one program changing many files fast alert sent to the security console laptop["no_alert"] = FalseCut off automatically
At the next request, missing() returns ["no_alert"], so allowed() returns False and the laptop is cut off from company data automatically. The console can also isolate it: block its network, except the console, while people investigate.
>>> missing(laptop) ['no_alert'] >>> allowed(laptop) False # cut off from company data isolate the console blocks the network (except itself) while people look contain first, then clean upClean up, then back in
Responders remove the harmful program, or wipe and reinstall the laptop, and close the alert. Now no_alert is True, missing() is empty and allowed() returns True, so the laptop gets its access back.
clean up remove the harmful program, or wipe and reinstall laptop["no_alert"] = True # alert closed >>> allowed(laptop) True learn why did it get in? update the baseline if neededEndpoint security in five habits
Five habits: know every device, set a safe baseline, patch quickly, watch with EDR, and respond fast. A check like allowed() ties them together: a device that falls behind loses access until it is fixed.
1 know every device inventory 2 set a safe baseline encrypt, no admin 3 patch quickly known flaws first 4 watch EDR alerts 5 respond isolate, clean, return unhealthy device → no access until fixed
5 quick questions
Choose one answer per question. You can change your choices before checking them.
01Why does endpoint security start with an inventory of devices?
Every other habit (baseline, patching, EDR, response) needs to know which devices exist and what runs on them. NIST CSF 2.0 lists hardware and software inventories (ID.AM-01, ID.AM-02) for this reason.
02With CHECKS = ["patched", "encrypted", "edr_on", "no_alert"], what does missing(laptop) return for laptop = {"patched": True, "encrypted": False, "edr_on": True, "no_alert": True}?
missing() keeps every check whose value is not true. Only "encrypted" is False, so the list is ["encrypted"], and allowed(laptop) is False.
03A laptop with full-disk encryption is left on a train, switched off. What does the encryption protect?
Full-disk encryption protects data at rest on a lost or stolen device. While the user is signed in the files are readable, so it does not stop malware running on that laptop.
04What does EDR (endpoint detection and response) add that a baseline does not?
A baseline sets the device up safely; EDR keeps watching while it runs and alerts people (and can isolate the device) when something behaves oddly, like one program changing many files fast.
05EDR raises an alert on a laptop. In the figure, why is the laptop cut off from company data straight away?
The access decision uses the device's current health on every request. One failing value is enough to say no until responders clean up and close the alert.
Glossary
- Endpoint
- Any device at the end of a network link where people and programs work: laptops, desktops, phones, tablets and servers.
- Inventory
- A list of every device an organisation has, who uses it and what software runs on it. You cannot protect what is not on the list.
- Baseline (hardening)
- The safe settings every device must have, applied the same way each time: for example updates on, disk encrypted, a normal (not admin) account for daily work.
- Patching
- Installing the software maker's fixes for known flaws. Flaws known to be used in real attacks (CISA's KEV catalog) are fixed first.
- Full-disk encryption
- Scrambling everything stored on a device so it can only be read after the user signs in. It protects a lost or stolen device.
- EDR (endpoint detection and response)
- A watcher on each device that notices odd behaviour, sends alerts to a security console and can isolate the device.
- Isolation
- Cutting a device off from the network (except the security console) while people investigate, so a problem cannot spread.
- Device health check
- A rule, checked on every request, that lets a device reach company data only while it meets the baseline. Zero trust designs use device health this way.
Notes and sources
- Real device-management and zero trust systems check far more than four values, and get them from the device itself, signed so they cannot simply be faked. The idea is the same: decide on every request, using the device's current health.
- EDR is not magic: it can miss things and raise false alarms, so people review its alerts. It is one layer among several, next to patching, encryption and least privilege.
- Using a normal account for everyday work, and a separate admin account only for admin tasks, limits what a harmful program can change (NIST SP 800-83; CISA Cross-Sector Performance Goals).
- Encryption protects a device that is switched off or locked. While the user is signed in, the files are readable, so it does not stop malware running on that laptop.
- This course is about defence. It explains how attacks work only at the level needed to stop them, and never how to attack a real system.
- NIST CSWP 29: The NIST Cybersecurity Framework (CSF) 2.0
- NIST SP 800-40 Rev. 4: Guide to Enterprise Patch Management Planning
- NIST SP 800-111: Guide to Storage Encryption Technologies for End User Devices
- NIST SP 800-83 Rev. 1: Guide to Malware Incident Prevention and Handling for Desktops and Laptops
- NIST SP 800-207: Zero Trust Architecture
- NIST SP 800-61 Rev. 3: Incident Response Recommendations and Considerations for Cybersecurity Risk Management
- CISA: Cross-Sector Cybersecurity Performance Goals
- CISA: Known Exploited Vulnerabilities Catalog
- CISA and MS-ISAC: #StopRansomware Guide
- OWASP Top 10 2021: A05 Security Misconfiguration
- OWASP Top 10 2021: A06 Vulnerable and Outdated Components
- Python docs: list comprehensions
Quiz Unlocks after the last step.