Menu: fields and runbooks

Security · runbook

Not yet tested against live systems

Versions: not pinned yet

Last reviewed · covers windows-server, linux, active-directory, entra-id, m365, firewall, dns, cloud, backup

Ask the runbooksSearches AdminCycle runbook content only. It does not generate answers.

    Results are passages quoted word for word from the runbooks, with a link to the section. Your question stays in this browser: it is not sent or stored.

    War-room mode: background text and diagrams are hidden. Steps, warnings and decision points stay. Turn it off with the button above.

    After an incident: work out what happened

    What you’re probably seeing right now

    • The fire is out, or mostly. Systems are isolated or running again. You have been awake too long.
    • Management wants “what happened” by the morning meeting. The insurer wants a timeline. Someone from legal asks whether personal data left the building.
    • A colleague wants to reimage the infected machines “so we can get back to work”.
    • The logs you need are spread across a firewall, two domain controllers, a cloud tenant and a backup console, each in its own time zone. Some of them roll over in days.
    • You do not know yet how they got in. That is the question everybody will ask first.

    First 5 minutes

    Before anything else: this runbook runs only with written authorisation from the system owner (your management, or the client). Get it in writing, a mail or a signed note is enough to start. Defensive work on your own or authorised systems only.

    Your hands, in this order:

    1. Stop anyone from reimaging, rebooting, restoring or “cleaning up” affected hosts. Say it out loud and write it in the incident channel.
    2. List every log source and its retention. The shortest retention gets exported first.
    3. Start the case log: case ID, who authorised it, who collects what, all times in UTC.
    4. Check the clocks of your key sources (commands below). A wrong clock reorders the story.

    Do not touch, yet:

    • Do not power off or reimage a host before memory and disk are captured.
    • Do not delete accounts, mailbox rules, scheduled tasks or malware files. Disable and document instead.
    • Do not log in to, scan, or “check” anything the attacker controls. No hack-back. Not even a ping.
    • Do not guess in writing. “Unknown” is a valid answer until evidence says otherwise.

    What to tell the manager, and when: at the start, so expectations are set.

    “I am preserving evidence first, then building the timeline. You will get a first fact-based summary at [time], with what we know, what we don’t, and what we’re still checking. Please make sure nobody reimages or restores the affected machines until I say so.”

    If you see this, do that

    Can you trust this source’s timestamps?

    w32tm /query /status

    Synced to a domain time source · example output

    Leap Indicator: 0(no warning)
    Stratum: 4 (secondary reference - syncd by (S)NTP)
    Precision: -23 (119.209ns per tick)
    Root Delay: 0.0312500s
    Root Dispersion: 0.1066408s
    ReferenceId: 0x0A00000A (source IP:  10.0.0.10)
    Last Successful Sync Time: 20/11/2026 01:58:12
    Source: DC01.corp.example.com
    Poll Interval: 10 (1024s)

    Running on its own clock · example output

    Leap Indicator: 3(not synchronized)
    Stratum: 0 (unspecified)
    Precision: -23 (119.209ns per tick)
    Root Delay: 0.0000000s
    Root Dispersion: 0.0000000s
    ReferenceId: 0x00000000 (unspecified)
    Last Successful Sync Time: unspecified
    Source: Local CMOS Clock
    Poll Interval: 10 (1024s)

    On Linux:

    Synced · example output (timedatectl, excerpt)

                   Local time: Fri 2026-11-20 02:14:07 UTC
               Universal time: Fri 2026-11-20 02:14:07 UTC
                    Time zone: Etc/UTC (UTC, +0000)
    System clock synchronized: yes
                  NTP service: active

    Not synced · example output (excerpt)

                   Local time: Fri 2026-11-20 03:21:44 CET
               Universal time: Fri 2026-11-20 02:21:44 UTC
                    Time zone: Europe/Berlin (CET, +0100)
    System clock synchronized: no
                  NTP service: inactive
    • Synced: convert its timestamps to UTC and use them.
    • Not synced, or Local CMOS Clock: measure the offset against a trusted clock now and write it in the case log. Correct every timestamp from that source by the offset, and keep the original next to it.

    Is the log you need still there?

    Export first, analyse later. On a domain controller, the oldest event in the Security log tells you how far back you can still see:

    Get-WinEvent -LogName Security -MaxEvents 1 -Oldest | Select-Object TimeCreated

    Reaches back before the suspected entry · example output

    TimeCreated
    -----------
    02/11/2026 06:41:19

    Only covers the last few hours · example output

    TimeCreated
    -----------
    19/11/2026 23:58:03
    • Covers the window: export it now (wevtutil epl, see step 2 below) and hash it.
    • Starts after the suspected entry time: that part of the story is gone from this host. Look for the same events in a log collector or SIEM. Write the gap in the case log as a finding.
    • A Security event 1102 (“The audit log was cleared”) in the window: someone cleared it. That is evidence in itself.

    Warning

    Reimaging, restoring or rebooting an affected host deletes the evidence you need to answer “how did they get in”. Capture memory and disk first, export logs, hash everything, and only then hand the host over for rebuild. Write who approved the rebuild and when.

    Stop and escalate when

    • You have no written authorisation yet. Stop until you do.
    • There are signs of data exfiltration, or personal data may be involved. Legal and the DPO now; the GDPR 72-hour clock may already be running. That is a reminder, not legal advice.
    • The insurer requires its own incident response firm. Hand over, and keep your evidence and custody records intact.
    • You find signs the attacker is still active (new sign-ins, beacons, fresh persistence). Containment comes before investigation.
    • Anyone proposes contacting, scanning or “checking” the attacker’s infrastructure. The answer is no.
    • The case needs a forensic image of a physical disk and you have no write-blocker or experience. Bring in a DFIR firm.

    What this investigation is for

    Summary. Once the immediate fire is out, you need to know how the intruder got in, what they touched, what they took or changed, and whether anything of theirs is still running. This runbook keeps the evidence intact, pulls the right logs from every source, puts them on one timeline in UTC, and ends in a root cause, a confirmed scope and fixes that go back into the checklists. Defensive only: on your own systems or a client’s, with written authorisation.

    Check before you use this. All hostnames, IPs, accounts and paths below are example data (RFC 5737, RFC 1918, example.com). Tool names appear only as examples inside technical steps; use what your organisation already trusts and check current vendor documentation.

    Where to start

    Four questions, in this order. Tick them as you go; each one points you to the logs that answer it. Ticks stay in this browser only.

    • 1. What was the entry point? Check, in this order: a phishing mail and what the user clicked or entered; exposed remote access (RDP, VPN, remote management) and its logs; a stolen or reused credential (sign-ins from new places, MFA prompts the user did not expect); an unpatched edge device (firewall, VPN gateway, mail gateway); third-party or supplier access.
    • 2. What did they touch? Check the sign-in logs for the accounts involved, admin actions in the directory and cloud audit logs, and which hosts the accounts or the first host reached (remote logons, admin shares, remote management sessions).
    • 3. What did they take or change? Check data egress (firewall, proxy and DNS volumes to unusual destinations, mass downloads or sharing links), new accounts, group memberships, mailbox rules and forwarding, scheduled tasks and services, OAuth or app consents, and configuration changes (firewall rules, Conditional Access, backup jobs).
    • 4. What’s still live? Check active sessions and refresh tokens, persistence (scheduled tasks, services, run keys, startup items, new SSH keys), backdoor accounts and app credentials, and outbound traffic that looks like command-and-control (regular beacons, rare destinations).

    Warning

    Contain without destroying evidence. Isolate a host from the network instead of powering it off or reimaging it, and capture memory and disk first. Revoke sessions and disable accounts rather than deleting them. Every “clean-up” before capture removes the traces you need to answer these four questions.

    Think like the attacker

    Before you dig, spend ten minutes in the attacker’s shoes, the way an ethical hacker would. The aim is to decide where to look in your own logs and systems, not to do anything to anyone else.

    • How would a skilled attacker have got in here? Look at your own environment from outside: what is exposed, which accounts have no strong MFA, which suppliers have remote access, which edge devices are behind on patches. Check those first.
    • What would they have touched next? Admin accounts, the directory, backup consoles, mail, file shares with finance or HR data, the hypervisor management. Check the logs for those systems around the time of entry.
    • What would they leave behind? Persistence (scheduled tasks, services, extra accounts, app consents, SSH keys), cleared or gapped logs (a gap is itself a finding), staging folders with archives (.zip, .7z, .rar in temp or public folders), renamed admin tools, and new forwarding rules.

    Note

    This is a thinking tool for investigating your own or authorised systems. Active testing (scanning, exploiting, password attacks) only under a written authorisation with an agreed scope, such as a penetration test. Never touch attacker infrastructure, never “hack back”, never log in to anything the attacker controls.

    Trigger

    Use this runbook:

    • after containment of a security incident (breach, ransomware, account takeover, malware outbreak, insider case), before systems are rebuilt,
    • when a decoy fired and the source was not a known scanner (see honeypots and honeytokens),
    • when the post-mortem phase of the DR checklist or the ransomware runbook needs a root cause.

    Get permission and help first. Written authorisation from the system owner (your management, or the client). Involve legal, your cyber insurer and your data protection officer early: insurers often require their own incident response firm, and personal data may trigger reporting duties (under GDPR, generally within 72 hours of becoming aware). For serious cases consider an external digital forensics and incident response (DFIR) firm and reporting to law enforcement.

    Immediate action

    1. Preserve evidence first

    Warning

    These destroy evidence: reimaging or restoring a host, rebooting or powering it off before a memory capture, running antivirus “clean” or “delete” on the only copy, deleting accounts, mailbox rules or scheduled tasks, rotating logs, and letting log retention expire. Capture first, then change.

    Collect in order of volatility (most fleeting first):

    1. Memory and running state: processes, network connections, logged-on users (example: a memory acquisition tool your IR partner supports).
    2. Network state: firewall session tables, VPN sessions, cloud sessions.
    3. Disk: a forensic image, or for VMs a snapshot plus an exported copy of the disks. Physical disks behind a write-blocker.
    4. Logs: export them now, before retention removes them.
    5. Backups and configuration exports: keep the restore points from before and after the incident; do not let retention delete them.

    Chain of custody for every item: what it is, where it came from, who collected it, when (UTC), its hash, where it is stored and every hand-over.

    # Hash each evidence file at collection and again at every hand-over (example paths)
    sha256sum /evidence/case-2026-001/hv02-app01-disk0.vhdx > /evidence/case-2026-001/hashes.sha256
    sha256sum -c /evidence/case-2026-001/hashes.sha256
    # Windows: hash exported logs and images (example path)
    Get-ChildItem D:\Evidence\Case-2026-001 -File -Recurse | Get-FileHash -Algorithm SHA256 |
      Export-Csv D:\Evidence\Case-2026-001\hashes.csv -NoTypeInformation

    Store evidence on media the attacker cannot reach (not the compromised domain, not the same backup system), read-only where possible.

    2. Collect artefacts from every source

    Source What to collect (examples)
    Endpoints Security, System and PowerShell event logs; EDR timeline; browser and download history; prefetch and startup items
    Servers Event logs or syslog/journal; web and application logs; scheduled tasks and services; new local accounts
    Identity Directory change and logon events from all domain controllers; cloud sign-in and audit logs (Entra ID sign-in logs via Graph need P1 or P2)
    Mail Message trace, mailbox audit, inbox and forwarding rules, app consents
    Network Firewall, VPN and proxy logs; DNS query logs; NetFlow if you have it
    Cloud Control-plane audit logs (activity logs, trails), storage access logs, key vault access
    Backup Job history, deleted restore points, console logins, retention or immutability changes
    # Example: export Windows Security logs from a domain controller for the case (UTC kept in the file)
    wevtutil epl Security D:\Evidence\Case-2026-001\DC01-Security.evtx
    # Example: export systemd journal for a time window, in UTC
    journalctl --utc --since "2026-11-18 00:00" --until "2026-11-20 23:59" -o short-iso > /evidence/case-2026-001/app01-journal.txt

    3. Normalise time to UTC

    • Check the clock of every source: NTP status, timezone setting, drift. Note any offset in the case log; one wrong clock can reorder the story.
    • Convert every timestamp to UTC before you put it on the timeline. Keep the original value next to it.
    w32tm /query /status          # Windows time source and last sync
    timedatectl                    # Linux: time zone, NTP sync state

    4. Build the timeline and correlate

    • One table or sheet: UTC time | source | host | account | event | evidence ref.
    • Start from known anchors (the first alert, the ransom note, the decoy hit) and work backwards to the entry point and forwards to the impact.
    • Correlate across sources by account, source IP, host name and time window. A sign-in from 198.51.100.23 at 02:14, a new scheduled task on APP01 at 02:19 and a 4 GB upload at 02:40 belong together.
    • Map it to stages: initial access → execution → persistence → privilege escalation → lateral movement → collection → exfiltration or impact. Common frameworks (example: MITRE ATT&CK) give you names for each step.
    • Mark gaps. Missing logs are findings, not reasons to guess.

    5. Root cause analysis

    • Five whys for the direct cause: “Why did they get in? An exposed RDP port. Why was it exposed? A temporary rule from a migration. Why was it never removed? No expiry on firewall changes…”
    • Fault tree when several things had to fail together: draw the impact at the top and the conditions under it (no MFA and exposed service and no alert on new admin).
    • Separate the technical cause from the process gap behind it.

    6. Confirm the scope

    • Every account, host, mailbox, cloud resource and data set the timeline touches is listed as affected, cleared or unknown.
    • Search for the same indicators (IPs, file hashes, account names, rule names) across all systems, not only those you already know.
    • “Unknown” stays open until it is checked. Do not close the case on assumptions.

    Verification

    • The four “where to start” questions have answers backed by evidence, or are explicitly marked unknown with the reason (for example, logs expired).
    • Every evidence item has a hash, a custody record and a storage location.
    • The timeline runs from entry to impact in UTC without unexplained jumps.
    • Scope is confirmed, and indicator searches across all systems are done.
    • Legal, insurer and DPO have what they asked for; any reporting deadlines are recorded as met or with the reason.

    Rollback

    There is little to undo in an investigation, but there are things to put back:

    • Temporary access given to investigators or a DFIR firm: remove it and rotate any credentials they used.
    • Extra logging or auditing you raised during the case: keep it if it helped, otherwise return it to the documented level so disks do not fill.
    • Isolated hosts: rebuild from known-good media rather than reconnect, unless the investigation proved them clean.
    • Evidence: keep it for the retention period legal sets, then destroy it with a record. Do not quietly delete it earlier.

    After it’s back up

    “Back up” here means the investigation is closed, not that systems are running.

    • The four “where to start” questions answered with evidence, or marked unknown with the reason.
    • Evidence list complete: hash, custody, storage location for every item.
    • Timeline in UTC from entry to impact, gaps marked.
    • Reporting duties recorded as met (insurer, authority, customers), with dates.
    • Blameless review booked within two weeks, actions with owners and dates.
    • Checklists and runbooks updated with what was missing.

    Prevention

    Lessons learned (blameless)

    Hold the review within two weeks. Blameless means you look for conditions and decisions, not culprits: people acted on what they knew at the time.

    Post-mortem template:

    Section Content
    Summary Two sentences: what happened, impact
    Timeline Key UTC events from entry to recovery
    Root cause Technical cause and process gap
    What went well Detection, decisions, tools that helped
    What was hard Missing logs, unclear ownership, slow approvals
    Actions Each with an owner and a due date
    Checklist updates Which checklist or runbook changes, and the link to the change

    Feed fixes back

    • Every action goes to a ticket with an owner and a date.
    • Update the matching checklist: a missing step becomes a tick box, for example in the security checklist or the DR checklist.
    • Keep logs long enough to answer the four questions next time; many investigations fail on 7-day retention.
    • Make sure time is synchronised everywhere and logs are collected off the hosts they describe.

    Diagrams

    Simple view: from incident to lessons learned

    Diagram (Mermaid); the same steps are written out in the text of this pageDiagram (Mermaid); the same steps are written out in the text of this page
    Diagram source (Mermaid)
    flowchart TD
        C["Contained incident"] --> P["Preserve evidence<br/>capture before change"]
        P --> Q["Where to start<br/>entry, touched, taken, still live"]
        Q --> A["Collect artefacts<br/>all sources"]
        A --> T["Normalise to UTC<br/>build timeline"]
        T --> R["Root cause<br/>five whys, fault tree"]
        R --> S{"Scope confirmed?"}
        S -->|"no, unknowns"| A
        S -->|"yes"| L["Blameless review<br/>actions with owners"]
        L --> F["Update checklists<br/>and runbooks"]

    Technical view: evidence and correlation

    Example data: first host APP01 10.20.0.31, domain controller DC01 10.10.1.10, firewall 10.0.0.1, unknown external source 198.51.100.23, evidence store 10.99.0.20 outside the compromised domain.

    Diagram (Mermaid); the same steps are written out in the text of this pageDiagram (Mermaid); the same steps are written out in the text of this page
    Diagram source (Mermaid)
    sequenceDiagram
        autonumber
        participant IR as Investigator
        participant APP as APP01 10.20.0.31
        participant DC as DC01 10.10.1.10
        participant FW as Firewall 10.0.0.1
        participant EV as Evidence store 10.99.0.20
    
        IR->>APP: isolate, capture memory, snapshot and export disks
        APP->>EV: images and logs, SHA-256 recorded
        IR->>DC: export Security logs from all DCs
        DC->>EV: evtx files, hashed
        IR->>FW: export firewall, VPN, DNS logs for the window
        FW->>EV: log files, hashed
        IR->>IR: normalise to UTC, build one timeline
        Note over IR: 198.51.100.23 sign-in, new task on APP01, large upload
        IR->>IR: map entry to impact, root cause, scope
        IR->>EV: case report, custody log, post-mortem actions

    Was this useful?

    Esc
    ↑ ↓ moveEnter openEsc close