---
title: "Incident response for cloud servers: the first 24 hours · CloudSat"
description: "An incident response plan for cloud servers: confirm, contain without losing evidence, rebuild clean, rotate secrets, and meet notification deadlines."
url: https://cloudsat.io/learn/cloud-incident-response-plan
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Security](https://cloudsat.io/learn/topic/server-security)

# Incident response for cloud servers: the first 24 hours

An incident response plan for cloud servers: confirm, contain without losing evidence, rebuild clean, rotate secrets, and meet notification deadlines.

CloudSat team November 18, 2026 6 min read

An incident rarely announces itself. It looks like a server pegged at 100% CPU, an abuse report about spam you never sent, an API token found in a public repository, or a customer asking why their data is for sale. What you do in the first day decides how much you lose, what you can prove later, and whether you meet legal deadlines that start counting the moment you become aware. This plan is written for small teams running their own cloud servers, technical staff and managers alike.

## Before anything happens: a one-page plan

Write it now, while nothing is on fire, and store a copy outside the systems it covers:

- **Roles.** One incident lead who decides, one person doing technical work, one person handling communication. In a team of two, write down who wears which hat.
- **Contacts.** Your hosting provider's support channel, legal counsel, your cyber insurer if you have one, and the data protection contact for each major customer.
- **An out-of-band channel.** If email or chat may be compromised, you need another way to talk, such as a pre-arranged group on a separate messaging service.
- **Where evidence goes.** A storage location that the affected servers cannot reach or delete.

NIST's incident response guide, SP 800-61 Revision 3 (April 2025), now frames this work within the six functions of its Cybersecurity Framework 2.0: govern, identify, protect, detect, respond and recover. The practical message for a small team is that preparation and recovery count as much as the firefight.

## Hour 0 to 1: confirm and scope

Open an incident log immediately: a plain document with UTC timestamps for everything you observe and every action you take. It becomes your memory, your evidence and the backbone of any notification.

Then confirm what you are dealing with. From your existing session, a few read-only commands show who is connected, what is running and what changed:

```bash
w
last -Faiw | head -30
sudo ss -tupan
ps auxf --sort=-%cpu | head -25
systemctl list-timers --all
sudo ls -la /etc/cron.d /var/spool/cron
sudo journalctl --since "48 hours ago" -u ssh -u sshd --no-pager | tail -100
sudo find /etc /usr/local /tmp /var/tmp -xdev -type f -mtime -3 | head -50
```

Also read every `authorized_keys` file for keys you do not recognize. Keep in mind that a thoroughly compromised system can lie: a rootkit can hide processes and files from these very tools. If the signs are serious, plan to examine a copy of the disk rather than trusting the live system.

## Hours 1 to 4: contain without destroying evidence

1. **Snapshot first.** A disk snapshot preserves the state of the server before you change anything. On CloudSat, take a [snapshot](https://cloudsat.io/docs/take-a-snapshot) from the console, then use a [cloud firewall](https://cloudsat.io/docs/cloud-firewalls) to limit inbound traffic to your own address.
2. **Do not power off by reflex.** Memory contents, running processes and network connections disappear on shutdown. Pull the plug only if the server is actively causing harm, such as encrypting data or attacking other systems.
3. **Stop outbound traffic.** Inbound rules do not stop a compromised server from sending spam or data out. On Linux, a temporary nftables table can block every new outbound connection while keeping your current session alive:

```bash
sudo nft add table inet ir
sudo nft add chain inet ir out '{ type filter hook output priority 0; policy drop; }'
sudo nft add rule inet ir out ct state established,related accept
sudo nft add rule inet ir out oif lo accept
```

1. **Revoke what the server could reach.** Rotate, from a clean machine, every credential stored on the affected server: API tokens, deploy keys, database passwords, cloud keys, and the SSH keys it used to reach other hosts.
2. **Collect logs off the server.** Stream them to your own machine instead of writing new files on the compromised disk, then record checksums:

```bash
ssh admin@203.0.113.10 'sudo journalctl --since "14 days ago" -o short-iso --no-pager' > web-01-journal.txt
sha256sum web-01-journal.txt >> evidence-checksums.txt
```

## Hours 4 to 24: eradicate and recover

**Rebuild rather than clean.** Removing the malware you found does not remove the backdoor you did not find. Deploy a fresh server from a known-good image, apply your configuration, and restore data from a backup taken before the compromise began. Keep the old server isolated, or keep its snapshot, for analysis.

**Find the way in before you go live.** An unpatched plugin, an exposed admin panel, a leaked key, a reused password. If you restore without closing the entry point, expect a second incident within days.

**Pick the recovery point carefully.** Work out when the compromise started from logs and file timestamps, and restore from a backup older than that. Check the restored data for planted accounts or modified files.

**Watch closely afterwards.** Keep extra logging and alerting in place for at least two weeks. Attackers who lose access often try the same door again.

If SSH no longer works at any point, CloudSat support takes tickets 24/7 and can arrange [console access](https://cloudsat.io/docs/recovery-tools) to the server.

## Notification duties: compliance basics

If personal data may have been exposed, deadlines start when you become aware of the breach, not when the investigation ends. The main ones:

| Regime | Who it applies to | Deadline |
| --- | --- | --- |
| GDPR and UK GDPR, Article 33 | Controllers processing personal data of people in the EU or UK | Supervisory authority without undue delay, within 72 hours where feasible |
| GDPR, Article 34 | Same, when the risk to individuals is high | Affected people without undue delay |
| NIS2 | Essential and important entities in the EU | Early warning within 24 hours, notification within 72 hours, final report within one month |
| US state laws | Every state has one; triggers and deadlines vary | Often "without unreasonable delay", some with fixed day limits |
| HIPAA | US covered entities and business associates | Individuals within 60 days of discovery at the latest |
| SEC Form 8-K, Item 1.05 | US public companies | Four business days after the incident is judged material |

If you process data for customers, your contracts and data processing agreements usually require you to tell them quickly so they can meet their own deadlines. GDPR also requires you to document every personal data breach internally, including the ones you decide not to report. Involve legal counsel early; this table is orientation, not legal advice.

## After the incident

Within two weeks, hold a blameless review. Rebuild the timeline, identify the root cause, note what detected the incident and what slowed you down, and agree on three to five changes with owners and dates. Twice a year, run a tabletop exercise: pick a scenario such as "a production API token appears on a public paste site" and walk through the plan out loud. Gaps show up quickly when people say what they would actually do.

## FAQ

### Should we pay a ransom?

Law enforcement agencies, including the FBI, advise against it: payment does not guarantee the data comes back and funds further attacks, and paying certain groups can breach sanctions rules. Tested, offline backups are the real answer.

### Can we simply restore last night's snapshot?

Only if the compromise started after that snapshot and you have closed the entry point. Otherwise you restore the attacker's foothold along with your data.

### Who else should we tell?

Your hosting provider, if the server attacked others or you need help with access. In the US, incidents can be reported to the FBI's IC3; in the EU, to your national CSIRT. Tell your insurer before you hire outside responders, since many policies require it.

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in Security](https://cloudsat.io/learn/topic/server-security)

- [Protect cloud server data: encryption, backups and retention](https://cloudsat.io/learn/protect-data-on-cloud-servers): Security Protect cloud server data: encryption, backups and retention 6 min read
- [Server antivirus: ClamAV, LMD, ImunifyAV and Defender](https://cloudsat.io/learn/malware-scanning-for-linux-and-windows-servers): Security Server antivirus: ClamAV, LMD, ImunifyAV and Defender 6 min read
- [Cloud IAM for small teams: least privilege, MFA and tokens](https://cloudsat.io/learn/cloud-iam-least-privilege-checklist): Security Cloud IAM for small teams: least privilege, MFA and tokens 6 min read
- [Deploy AI-built apps without leaking company data](https://cloudsat.io/learn/deploy-ai-built-apps-without-leaking-data): Security Deploy AI-built apps without leaking company data 7 min read
