ENع
→Endpoints
الدرس 14 · الأنظمة الآمنة

Endpoint security

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

12 دقيقة11 خطوة5 أسئلةIntermediate
عن هذا الدرس

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.

ستتعلّم

حدّد ما تشعر بأنك أتقنته. هذا التقييم الذاتي لا يؤثر في درجة الدرس.

شكل 14 · تفاعلي
01 / 11

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 first
جارٍ تحميل الرسم…
أو ← →
اقرأ الدرس خطوة بخطوة
  1. 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 first
  2. Know 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 device
  3. Write 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)
  4. 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 once
  5. Patch, 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 catalog
  6. Encryption 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 devices
  7. Something 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 user
  8. EDR 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"] = False
  9. Cut 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 up
  10. Clean 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 needed
  11. Endpoint 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

اختبار يتاح بعد الخطوة الأخيرة.