Skip to content

Security incident response: a plan for the first 24 hours

B2Bnetwork team · · 6 min

Security

In brief

In the first 24 hours of a security incident you need to confirm it is an incident, appoint the person who leads the response, limit the damage by isolating systems and accounts, secure the evidence and assess your reporting obligations. Under NIS2, an early warning about a significant incident goes to the CSIRT within 24 hours, and under the GDPR a personal data breach is reported to the supervisory authority within 72 hours. The plan, roles and contacts have to be ready before the incident, because there is no time to set them up during one.

Before anything happens

NIST SP 800-61 Rev. 3, published in April 2025, superseded the 2012 revision and describes incident response through the six functions of NIST CSF 2.0. Govern, Identify and Protect are the preparation that supports response, while response itself is Detect, Respond and Recover. Lessons from every stage feed back into improving the whole process.

Phase in the 2012 revisionCSF 2.0 functions in Rev. 3
PreparationGovern, Identify, Protect
Detection and analysisDetect, Identify (improvement)
Containment, eradication and recoveryRespond, Recover, Identify (improvement)
Post-incident activityIdentify (improvement)

Before an incident you need:

  • a response plan with criteria for what counts as an incident and how severity is assessed;
  • roles: incident lead, technical lead, communications, legal, and a management representative who makes business decisions;
  • contacts outside company systems: a phone list on paper or in a separate channel, because email may be compromised;
  • playbooks for typical scenarios: ransomware, a compromised account, a data leak, an attack on a vendor;
  • deletion-resistant backups and a tested restore, as described in the article on cloud backups;
  • exercises: at least a tabletop exercise based on a realistic scenario, with management taking part.

Hour 0–1: confirm and take command

  1. Confirm. An alert from the SOC, a report from an employee or a call from a customer is only a signal. Someone with the right knowledge checks whether it is an incident and not a false alarm.
  2. Open the incident. A number, the time of detection, who reported it. From this moment the reporting deadlines run, so the time must be recorded.
  3. Appoint an incident lead. One person sets priorities and assigns tasks. Without one, five people do the same thing and nobody does the important things.
  4. Move to a secure channel. If the attacker may have taken over email or chat, incident discussions move to a channel the compromised environment does not control.
  5. Keep a log. Every decision and action with the time and the person. The log will be useful for reporting, in a dispute with the insurer and in the post-incident review.

Hour 1–6: containment and evidence

Containment is meant to stop the attack from spreading without destroying the traces:

  • disconnect infected hosts from the network or isolate them with the EDR tool instead of shutting them down right away, because a shutdown wipes memory;
  • lock compromised accounts and revoke their sessions and tokens, and rotate any passwords and keys that may have leaked from a clean device;
  • block the addresses and domains the attacker uses on the firewall, proxy and mail system;
  • secure logs from the SIEM, systems and cloud before retention overwrites them, and take disk and memory images of key hosts;
  • check whether the attack reaches the backups and the accounts used to manage them.

Every containment action is a business decision: disconnecting the payment system stops sales. That is why the incident lead needs someone from management who can make that call on the spot. How a SOC prepares rules and playbooks for this is described in the article on SOC and SIEM.

Hour 6–24: scope, reporting and communication

Scope. Which systems, data and accounts are affected, how long the attacker has been in the environment, how they got in. The full answer will take days, but the current state of knowledge is enough for reporting.

Reporting. The deadline runs from the moment the company became aware of the incident:

BasisWho it applies toFirst deadline
NIS2, Art. 23essential and important entities, through the national laws transposing the directiveearly warning within 24 hours, incident notification within 72 hours, final report within one month
GDPR, Art. 33every controller of personal databreach notification to the supervisory authority (in Poland, UODO, the Polish Data Protection Authority) within 72 hours
DORAfinancial entitiesdeadlines set by the regulation and its implementing acts

When and to whom to report is covered in detail in the article on incident reporting under DORA and NIS2. An incident can also be reported to CERT Polska through incydent.cert.pl, even when the company has no statutory obligation.

Communication. Internally: short, regular updates for employees, with instructions on what to do and what not to do. Externally: customers, partners, the insurer and, for a large incident, the media. One person owns the content and legal reviews it. Until the facts are confirmed, it is better to say less than something you will have to retract.

After the first day: eradication, recovery and lessons

Eradication and recovery start only once you know how the attacker got in and where they left access. Restoring systems from backup without closing the entry point ends in a repeat. The backup is checked before restoring, and systems come back in the order set by the business continuity plan, described in the article on BCP and DRP.

After closing the incident, the team writes up the timeline, the root cause, what worked and what did not, and a list of tasks with owners. In Rev. 3, NIST recommends sharing lessons as soon as they emerge rather than waiting until recovery is finished. An example of building playbooks at a bank is described in the security operations center case.

Questions and answers

What should you do in the first hour after detecting ransomware?

Disconnect infected computers and servers from the network without shutting them down, lock the accounts the attacker is using and check that the backups are safe. Appoint an incident lead, move communication to a secure channel and record the time of detection, because the reporting deadlines run from it. Decisions about paying a ransom require management, legal and reports to the authorities.

Should you shut down an infected server?

Usually it is better to disconnect it from the network or isolate it with the EDR tool than to shut it down. A shutdown wipes memory, which may hold encryption keys, traces of malicious code and the attacker's active connections. The exception is when isolation is impossible and the server is encrypting data right now: then stopping the damage takes priority over evidence.

When do you report an incident to the CSIRT and to UODO?

An entity covered by NIS2 sends an early warning about a significant incident to the competent CSIRT within 24 hours of becoming aware of it, and a full notification within 72 hours, under the national laws transposing the directive. A personal data breach is reported to UODO (the Polish Data Protection Authority) within 72 hours, unless it is unlikely to result in a risk to people. One incident often triggers both obligations.

Who should be on the incident response team?

The incident lead, engineers who know the affected systems, a security specialist or an external response team, a legal representative and the data protection officer, a communications person and a member of management with authority over business decisions. For outsourced services, vendor contacts join the team, written into the contract together with response times.

What it looks like in a project

Want to check your application's security? Talk to an engineer.

Let's talk

Read more: Security