ENع
→Incident response
الدرس 18 · العمليات الأمنية

Incident response

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

14 دقيقة10 خطوات5 أسئلةAdvanced
عن هذا الدرس

Detection tells you something is wrong; incident response is the planned work of stopping it and putting things right. Follow one incident, a staff account taken over with a stolen password, through every phase NIST and CISA describe: preparation, detection and triage, containment, keeping evidence, eradication, recovery and lessons learned. A tiny Python timeline grows by one entry per phase, and the lesson ends with how NIST SP 800-61 Rev. 3 maps the work onto CSF 2.0.

ستتعلّم

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

شكل 18 · تفاعلي
01 / 10

What an incident is

An incident is an event that harms, or is about to harm, the confidentiality, integrity or availability of data or systems, or breaks security policy. Here a criminal has a staff member's password and is signed in to their account.

incident   an event that harms (or is about to harm)
           confidentiality, integrity or availability,
           or breaks the rules (security policy)
here       a stolen password: the attacker is signed in
           as a staff member, near the company files
response   the planned work of stopping and fixing it
جارٍ تحميل الرسم…
أو ← →
اقرأ الدرس خطوة بخطوة
  1. What an incident is

    An incident is an event that harms, or is about to harm, the confidentiality, integrity or availability of data or systems, or breaks security policy. Here a criminal has a staff member's password and is signed in to their account.

    incident   an event that harms (or is about to harm)
               confidentiality, integrity or availability,
               or breaks the rules (security policy)
    here       a stolen password: the attacker is signed in
               as a staff member, near the company files
    response   the planned work of stopping and fixing it
  2. Preparation comes first

    Response starts before any attack. The team writes a playbook (who does what, who to call), keeps logs and monitoring running, keeps clean backups, and has a place to record every action. Here that record is a Python list.

    playbook     roles, contacts, steps for common incidents
    monitoring   logs collected, alerts set up
    backups      offline copies, restores tested
    the record   line 1  timeline = []      an empty list
                 line 2  def log(time, step):
                 line 3  add the pair (time, step) to the end
  3. Detect: an alert arrives

    At 09:00 monitoring raises an alert: this account signed in from a new country, minutes after a sign-in at the office. The team opens the incident and logs the first entry. The timeline now holds one item.

    alert      sign-in from a new country,
               minutes after one at the office
    line 4     log("09:00", "detect")
    timeline   [("09:00", "detect")]
    len        1
  4. Triage: is it real, how big?

    Analysis, or triage, asks: is this a real incident, what does it touch, and how serious is it? The logs show the account reading and changing files on the server and a hidden rule forwarding its email out. Severity: high.

    triage     sort by how serious and how urgent
    real?      yes: the user did not sign in from there
    scope      the account, its mailbox, the file server
    found      a hidden rule forwarding email outside
    severity   high  · tell the incident lead and managers
    line 5     log("09:12", "triage")    len 2
  5. Contain: stop the spread

    Containment stops the damage growing. The team disables the account and ends all its signed-in sessions, so the attacker is thrown out, and takes the laptop off the network. Containing first, before cleaning up, limits harm.

    contain    stop it getting worse, fast
      account  disabled; every session signed out
      laptop   taken off the network (isolated)
    attacker   session ended: no way back in
    line 6     log("09:20", "contain")   len 3
  6. Keep the evidence

    Before anything is wiped, the team copies the evidence: memory first (it is lost at power-off), then the disk and the sign-in logs. A chain of custody records who handled each copy, and when. Then the facts cannot be lost.

    evidence   what happened, kept safe for later
    order      memory first (lost at power-off),
               then the disk, then the logs
    custody    who handled each copy, and when
    line 7     log("09:35", "evidence")  len 4
  7. Eradicate: remove the cause

    Eradication removes what the attacker left and the weakness they used. The team deletes the forwarding rule, resets the password, and turns on phishing-resistant MFA, so a stolen password alone is not enough again.

    eradicate  remove every trace and the way in
      removed  the hidden forwarding rule
      reset    the password
      fixed    phishing-resistant MFA switched on
    line 8     log("11:40", "eradicate") len 5
  8. Recover: back to normal

    Recovery brings things back safely. Two files the attacker changed are restored from the clean backup, the account is switched back on, and monitoring watches it closely for a while in case the attacker returns.

    recover    return to normal, carefully
      files    restored from the clean offline backup
      account  switched back on, with MFA
      watch    extra monitoring for a few weeks
    line 9     log("15:00", "recover")   len 6
  9. Lessons learned

    A few days later everyone involved reviews the timeline: what worked, what was slow, and what to change. The aim is fixing the system, not blaming a person. The fixes go back into the playbook, monitoring and training.

    review     within a few days, everyone involved
    asks       what worked? what was slow? what next?
    blameless  fix the system, not the person
    output     playbook, alerts and training updated
    line 10    log("day 3", "lessons")   len 7
    timeline   7 entries: the full story, in order
  10. The NIST view

    NIST SP 800-61 Rev. 3 ties this to the Cybersecurity Framework 2.0. Govern, Identify and Protect prepare. Detect finds the incident. Respond analyses, contains and removes it. Recover restores. Lessons learned improve all of them.

    NIST SP 800-61 Rev. 3 (April 2025), a CSF 2.0 profile
      Govern · Identify · Protect   preparation
      Detect                        alert
      Respond                       triage, contain, eradicate
      Recover                       restore, return to normal
      Improvement                   lessons learned, everywhere

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