Incident response
The first hour of a cyber incident: what to do, in order
What to do in the first hour of a cyber incident: isolate without powering off, move to out-of-band comms, call the right people, leave evidence alone.
Something on your network is wrong, and you’re the one who has to decide what happens next. Here is the order we work through in the first hour of a cyber incident, with the reasoning behind each step, so you can adapt it when your situation doesn’t match the script.
What the first hour of a cyber incident is for
The first hour is not for working out who did it. It has three jobs: stop the spread, keep the evidence you’ll need later, and get the right people talking somewhere the attacker can’t listen. Root cause, full scope and the regulator conversation all come later, and they come faster if this hour goes well.
A lot of avoidable damage happens in these sixty minutes, and most of it is done by defenders with good intentions. A server gets reimaged before anyone copies its logs. A domain admin logs in to an infected machine “to take a look” and hands the attacker one more privileged credential. Someone sends an all-staff email about the incident through the mail system the attacker is reading. None of these people were careless. They were busy, and nobody had told them the order.
The minute markers below are approximate. If you have more than one pair of hands, several steps run in parallel. The sequence matters more than the clock.
Minute 0: start a written log before you touch anything
Open a text file on a machine you trust, or use paper. Write down the time in UTC, who noticed what, which hostnames and usernames are involved, and what was on the screen. Take phone photos of anything unusual: a ransom note, a strange login prompt, an alert in the EDR console.
From here on, every action gets a line: time, who, what, why. “14:12 UTC, Minh shut switch port Gi1/0/14 (FS02) to stop SMB traffic.” It feels slow. It isn’t. This log becomes the backbone of the timeline your insurer, your lawyers and possibly a regulator will ask for, and some notification deadlines are measured from the moment you became aware of the incident. Reconstructing all of that from memory three days later is miserable and usually wrong.
Minutes 5–15: isolate affected systems, but don’t power them off
The instinct is to pull the plug. Resist it. A running machine holds things that disappear the moment it loses power: the processes the attacker is running, open connections to their infrastructure, code injected into memory that never touched the disk, and sometimes key material. If the disk is protected by BitLocker and nobody can find the recovery key, a hard shutdown can also leave you with a disk image you can’t read.
What you want is a machine that is still running but can’t talk to anything. In rough order of preference:
- EDR network containment. Defender for Endpoint’s “Isolate device”, CrowdStrike’s network containment and their equivalents cut the host off while keeping the agent’s connection to the console, so you can still collect files and run commands remotely.
- Switch-level isolation. Shut the port or move it to a quarantine VLAN. Your network team can do this without walking anywhere.
- Physical disconnection. Pull the network cable, then check Wi-Fi. Laptops will happily rejoin the office wireless thirty seconds after you unplug them.
- Virtual machines. Disconnect the virtual NIC rather than shutting the VM down. If the hypervisor supports it, take a snapshot that includes memory first.
If several machines are affected and you don’t know how far it goes, think one layer up. Blocking outbound traffic at the firewall except to known-good destinations, dropping site-to-site VPN tunnels and suspending remote-access VPN logins will hurt the business. It will hurt the attacker more. That trade is usually worth making for a few hours while you look around.
Warning: There is one exception to “don’t power off.” If you can see files being encrypted right now and you have no quick way to isolate the machine, cutting power may be the lesser harm. Make the call, note the time, and move on. Just don’t make it the default.
Minutes 15–25: move the conversation off your own systems
Assume the attacker can read your corporate email, your Teams or Slack, and your helpdesk tickets. If they hold domain admin or a Microsoft 365 global admin account, that assumption is probably correct. Discussing the response on those channels tells them exactly what you know and when you plan to act.
Set up an out-of-band channel now. A Signal or WhatsApp group on personal phones works. So does a conference bridge that isn’t tied to your corporate single sign-on. Keep the membership small: the incident lead, IT, whoever owns the affected business process, and your outside responders when they join. Write the bridge number on paper. Don’t paste passwords into the chat, even this one.
If staff need to do something (stop using the VPN, stay off the shared drive), have managers tell them by phone or in person. An all-staff email about a cyber incident is a gift to anyone still sitting in your mail server.
Minutes 25–40: who to call, and in what order
The exact order depends on your contracts and your jurisdiction, but this sequence holds up in most cases:
- Whoever has decision rights. Someone has to be able to say “take the ERP down for the afternoon” or “bring in outside help” without waiting for a board meeting. If that isn’t you, get them on the bridge.
- Your incident response provider. If you have a retainer, use it. If you don’t, our 24/7 emergency incident response desk takes reports at [email protected], and every one is acknowledged within 15 minutes.
- Your cyber insurer. Many policies require prompt notice, and some require you to use specific vendors or get approval before you spend money. If you can read the notification clause in five minutes, read it before you engage anyone.
- Legal counsel. Internal or external. They will want a say in how the investigation is commissioned and documented, and they’re the ones who track notification obligations.
- Your bank, if money moved. A fraudulent wire is the one case where minutes change the outcome. Our piece on containing business email compromise covers the recall conversation.
Law enforcement and your national CERT come next, usually not in the first hour but not long after. In the US, CISA’s incident reporting page is a reasonable starting point. Who you don’t call yet: the attacker, the press, or customers. You’ll probably talk to customers soon. Not before counsel has seen the wording.
Minutes 40–60: what not to touch
This is where well-meaning people do the most harm. The short list:
- Don’t reimage or restore yet. You’ll destroy the evidence of how they got in, which is the thing that stops them getting back in next week.
- Don’t run a full antivirus sweep with automatic deletion. It removes the samples your responders need and tells the attacker you’ve noticed.
- Don’t log in to suspect machines with domain admin accounts. An interactive logon leaves credential material in memory on a host the attacker controls. Use EDR live response, or a local account created for the purpose.
- Don’t delete attacker accounts one at a time. Disable them, in one coordinated sweep once you know what you’re dealing with. Picking off one backdoor tells them to use the other three. If they’re actively destroying things, cut access immediately and accept the trade-off.
- Don’t let logs roll over. On a busy domain controller the Security log may hold only hours of history. Export it to external media.
wevtutil epl Security E:\ir\DC01-Security.evtx
wevtutil epl System E:\ir\DC01-System.evtx
The events your responders will look at first are 4624 and 4625 (successful and failed logons), 4720 (account created), 4732 (member added to a security-enabled local group), 4688 (process creation, if you have it enabled), 7045 in the System log (new service installed) and 1102 (audit log cleared). A 1102 that nobody on your team caused is a strong signal on its own.
Firewall, VPN and identity provider logs matter just as much and often have shorter retention. Export what you can. The principle of collecting the most volatile data first is set out in RFC 3227’s order of volatility, and we go further in preserving evidence without slowing recovery.
Where you should be at minute 60
You won’t know the full scope yet, and that’s normal. You should be able to say yes to most of these:
- Known affected systems are isolated but still running.
- A written log exists, with times in UTC.
- The response team is talking on a channel outside your corporate systems.
- Your responder, insurer and counsel have been told, or there’s a deliberate reason why not yet.
- Security, firewall and VPN logs from key systems are copied somewhere safe.
- Someone with authority has decided what the business does for the rest of the day.
If it turns out to be ransomware, the next stage brings its own decisions about backups and restore order, which we cover in ransomware: the first 48 hours. The UK NCSC’s incident management guidance is worth reading on a calmer day.
If this is happening to you now, start the log and isolate before you read anything else, then report the incident to our desk and we’ll pick it up from wherever you are. If it isn’t, print the minute markers above, tape them next to the phone numbers for your insurer and your bank, and find out today who in your organization actually has the authority to switch things off.
Dealing with this right now?
A responder will acknowledge your report within 15 minutes, 24/7.
Related service: Emergency Incident Response