What to do if your company suffers a cyberattack: response protocol for the first few hours

By Eduard Bardaji on Oct 14, 2026, 9:00:00 AM

<span id="hs_cos_wrapper_name" class="hs_cos_wrapper hs_cos_wrapper_meta_field hs_cos_wrapper_type_text" style="" data-hs-cos-general-type="meta_field" data-hs-cos-type="text" >What to do if your company suffers a cyberattack: response protocol for the first few hours</span>

Suffering a cyberattack does not necessarily mean that your company has lost control of its systems. What happens during the first few hours can make the difference between a contained incident and a prolonged business disruption.

At that point, the goal is not to solve everything immediately. It is to contain the incident, prevent the cybercriminal from progressing, preserve the information needed to analyze what happened, and make decisions based on evidence.

This requires acting quickly while also avoiding impulsive decisions that could make recovery more difficult.

What to do during the first few minutes

If you suspect a cyberattack, the priority should be to determine whether there is an active intrusion and limit its scope.

The first actions should focus on:

  • Activate the response protocol: notify the people responsible for security, systems, and management.
  • Isolate affected devices: prevent compromised systems from continuing to communicate with other devices or servers.
  • Identify critical systems: determine which services, applications, and data may be affected.
  • Document what happened: record times, affected devices, messages received, and actions taken since the incident was detected.
  • Protect communication channels: if the corporate email account or system may be compromised, use an alternative channel to coordinate the response.

The initial goal is not to investigate every detail, but to gain control of the incident without destroying information that may be needed later.

Mistakes that can make a ransomware attack worse

Ransomware attacks require particular care because a poor decision during the first few hours can make both analysis and recovery more difficult.

Shutting down every device without a clear plan

Disconnecting or shutting down a device can help contain an incident, but doing so indiscriminately can remove useful information needed to determine what happened.

The decision should consider the type of system, the level of compromise, and whether evidence needs to be preserved. When technically possible, it is preferable to isolate the device from the network before shutting it down completely.

Restoring backups too early

Having backups does not mean they should be used immediately.

Before restoring, it is necessary to determine how the intrusion occurred, which systems are compromised, and whether the cybercriminal still has access. Restoring systems while the attacker maintains access can lead to reinfection or compromise the recovered systems as well.

Contain and secure the environment first. Recover afterward.

Paying the ransom as a first reaction

A ransom demand does not guarantee that the data will be recovered or that stolen information will not be published.

The decision should be assessed from a technical, legal, operational, and business perspective. Before negotiating or making any payment, the company needs to understand what information has been encrypted or exfiltrated, what recovery options are available, and what obligations may apply to the incident.

Hiding or delaying communication about the incident

Trying to minimize the problem can delay important decisions.

Management should be informed as soon as possible and, depending on the incident, it may be necessary to notify customers, suppliers, insurers, authorities, or other organizations within the applicable deadlines.

Communicating does not mean creating unnecessary alarm. It means coordinating the response based on the information available and meeting applicable obligations.

Deleting evidence or modifying compromised systems

Deleting files, formatting devices, or changing configurations before the incident has been properly analyzed can make the investigation more difficult.

Logs, access records, emails, alerts, connections, and other indicators can help determine how the cybercriminal gained access, how long they remained in the network, and how far they reached.

Continuing to use compromised communication channels

If an email account, administration system, or collaboration tool is suspected of being compromised, it should not be used as the only channel for coordinating the response.

A cybercriminal with access to these tools could learn about the company's decisions and anticipate containment measures.

What to do during the first 4 hours

An organized response can be divided into several phases. Not every company has the same resources, but the overall approach should be similar.

First hour: contain the incident

During the first hour, the priority is to limit the cybercriminal's movement.

This includes:

  • Isolating affected devices and systems.
  • Reviewing accounts with suspicious activity.
  • Blocking access that may have been compromised.
  • Checking external connections and suspicious communications.
  • Identifying critical systems that remain operational.
  • Preventing affected systems from reconnecting before they have been analyzed.

At this stage, it is important to distinguish between what is known and what is suspected. Making decisions based on unverified information can cause the incident to spread.

Between the first and second hour: determine the scope

Once the initial situation has been contained, the next step is to answer specific questions:

  • Which device or account was affected first?
  • How could the attacker have gained access?
  • Which systems show signs of compromise?
  • Were privileged accounts used?
  • Were any data encrypted or modified?
  • Is there evidence that information was extracted?
  • Does the cybercriminal still have access?

This phase allows the company to move from an initial perception of the incident to an assessment of its actual scope.

Do not assume that an affected device is the only problem. Ransomware can spread through compromised credentials, remote access, servers, shared resources, or administration systems.

Between the second and fourth hour: preserve evidence and prepare for recovery

Once there is an initial assessment of the scope, the next step is to collect and preserve the information needed to continue the analysis.

Relevant information may include:

  • System and security device logs.
  • Authentication and access logs.
  • Alerts from security tools.
  • Emails or messages related to the incident.
  • Files or notes left by the ransomware.
  • IP addresses, domains, and suspicious connections.
  • Times when the detected activities occurred.
  • Information about modified or encrypted files.

This is also the time to review the available backups and determine which ones can be safely used.

Recovery should be performed from a controlled environment after confirming that the cause of the incident has been contained.

When to recover systems

The pressure to restore business operations can be enormous, especially when the incident affects critical processes. However, recovering too early can cause a second disruption.

Before restoring systems, verify:

  1. That the access used by the cybercriminal has been blocked.
  2. That compromised accounts have been identified and secured.
  3. That the systems being used for recovery are trustworthy.
  4. That the backups have not been compromised.
  5. That the cause of the incident has been analyzed.
  6. That there is a recovery order based on the criticality of the services.

Recovery should begin with the systems required to restore essential business operations, rather than necessarily restoring every device at the same time.

What a company should have prepared before an incident

The response will be much faster if some decisions have already been made before an attack occurs.

At a minimum, the company should have:

  • A response protocol: who makes decisions, who performs technical actions, and who communicates about the incident.
  • An inventory of critical systems: know which applications, servers, and services are essential to maintaining business operations.
  • Protected backups: with controls that prevent a compromised account from modifying or deleting them.
  • Emergency contacts: security and IT providers, legal advisors, insurers, and other necessary resources.
  • Alternative communication channels: especially for situations where corporate email cannot be trusted.
  • Monitoring capabilities: detect suspicious activity before the incident reaches a larger scale.

Having these capabilities does not prevent every incident, but it significantly reduces the time needed to identify, contain, and recover from one.

Why detecting an incident before it escalates matters

A company that only reacts when a ransomware note appears is already responding at an advanced stage of the incident.

Continuous monitoring can detect suspicious access, compromised credentials, lateral movement, or suspicious tools earlier, allowing the company to act before the incident escalates.

Should you handle 24/7 monitoring and response internally or outsource it?

When addressing this need, management typically considers two options with very different implications:

  • Internal 24/7 team: requires multiple shifts of specialized analysts, as well as the cost of security tools and their ongoing maintenance. For many SMBs and mid-sized companies, maintaining this structure can be difficult to sustain.
  • External managed service (MDR/SOC): allows the company to delegate continuous monitoring and specialized response to an external team, with ongoing coverage and a predictable fixed monthly fee.

Nueva llamada a la acción

What should happen after the incident

Once business operations have been restored, the company should determine:

  • How the intrusion occurred.
  • Which vulnerability or access point enabled the breach.
  • What information may have been affected.
  • Which systems were compromised.
  • What measures need to be changed to prevent a recurrence.
  • What evidence needs to be preserved.

The goal is for the incident to end not simply with the recovery of the systems, but with a real reduction in the risk that allowed it to happen.

It is also important to review the response protocol used during the incident. If certain decisions were delayed, information was missing, or it was unclear who was responsible for taking action, those lessons should be incorporated into the future procedure.

When should you outsource incident response and 24/7 monitoring?

The first few hours after a cyberattack require speed, but above all, organization and sound judgment. Isolating affected systems, protecting evidence, determining the scope, and safely restoring operations are far more important than trying to solve everything immediately.

The best response starts before an incident occurs: with protected backups, defined procedures, access controls, continuous monitoring, and the ability to detect and respond while there is still an opportunity to contain the problem.

At ESED, we help companies strengthen this capability through managed cybersecurity services, 24/7 monitoring, MDR/XDR, vulnerability management, and specialized incident response and analysis services. We operate with a fixed monthly fee, so companies can maintain continuous, predictable coverage without unexpected costs.

If your company does not have the internal capacity to continuously monitor and respond to threats, the next step is to assess which functions need to be covered and what level of protection needs to be maintained on an ongoing basis.

Contact us