What is ransomware, and how do servers survive it?

Ransomware encrypts an organisation's data and demands payment for the key. Modern groups also copy the data first and threaten to publish it. Servers are prime targets because they hold the data that matters most.

How does ransomware reach a server?

Rarely by magic. Common entry points are stolen or guessed credentials for remote access, unpatched internet-facing software such as VPN appliances, file transfer tools and web applications, and an administrator's compromised workstation that already has SSH keys or panel sessions. Once inside, attackers explore quietly, often for days, collecting credentials and locating backups before they encrypt anything.

What is double extortion?

Stealing data and then encrypting it, so the victim faces two threats: losing access and having the data published. Good backups solve the first problem but not the second, which is why prevention and outbound monitoring matter as much as recovery. Some groups skip encryption entirely and only steal and threaten.

Why do attackers go after backups first?

Because restorable backups remove their leverage. If the production server can reach the backup server with credentials that allow deletion, the attacker uses them. A backup design that survives ransomware therefore separates credentials and permissions so that production can add new backups but cannot remove or alter old ones.

Backup propertyHow to get it
Off the production hostA separate server in another data centre
Append-only from productionBorg append-only keys, restic with a rest-server in append-only mode
VersionedDaily, weekly and monthly snapshots kept
Separate administrationDifferent credentials, no shared SSH keys
TestedMonthly restore drills with timings
rest-server --path /srv/restic --append-only --private-repos --listen 10.30.0.9:8000
restic -r rest:http://web03:changeme@10.30.0.9:8000/web03/ backup /var/www /etc --tag hourly

Pruning then runs on the backup server itself, with its own credentials, so nothing on the production side can shorten the history. Replace the placeholder password with a long random one per host.

What hardening makes the biggest difference?

Closing the common doors. Use SSH keys with passphrases instead of passwords, add a second factor for panels and remote access, patch internet-facing software quickly, and keep administration interfaces off the public internet behind WireGuard. Give each service its own user so one compromised application cannot read everything. Mount backup and data paths read-only where an application only needs to read. Hardening a new dedicated server lists a full baseline.

What are the early warning signs?

Activity that does not match normal operations: new administrator accounts, logins at odd hours or from unusual places, scanning between your own servers, archive tools running on database hosts, large outbound transfers, deleted snapshots or disabled security tools. Alert on these to a monitoring host the attacker cannot easily reach. Catching the exploration stage turns a disaster into an incident.

last -F -n 20; journalctl -u ssh --since "-24h" | grep -E 'Accepted|Failed' | tail -20
find /var/www /srv -newermt "-2 hours" -type f -name '*.locked' 2>/dev/null | head

What should happen in the first hours of an attack?

Contain, preserve and plan. Cut affected servers off from the network, or from everything except your own management address, to stop spread and exfiltration. Preserve evidence: our console can boot a machine into rescue mode, letting you copy disks and logs without starting the infected system. Check which backups are intact. Rotate every credential the attacker may have seen. Then rebuild from clean installs and restore data from a point before the intrusion, rather than trying to clean infected systems in place. Inform customers and authorities as the law requires.

Should a ransom be paid?

That is a business and legal decision, and many authorities advise against it. Payment does not guarantee a working key, does not undo data theft and funds further attacks, and in some jurisdictions payments to sanctioned groups are illegal. The stronger position is never having to consider it: tested, protected backups and a rehearsed rebuild. Respond to a compromised server gives the practical steps, and Data backup and recovery the backup design.

Machines for protected backup and monitoring roles

ModelProcessorCoresMemoryDrivesPortPer month
STORAGE-1AMD Ryzen 7 Pro 3700832 GB2x 480 GB SSD SATA + 4x 14 TB HDD SAS1 Gbps unmetered$109.80
STORAGE-2 2024AMD EPYC 4344P832 GB2x 960 GB SSD NVMe + 2x 22 TB HDD SAS3 Gbps unmetered$187.80
STORAGE-2 2026AMD EPYC 4345P832 GB2x 960 GB SSD NVMe + 2x 24 TB HDD SAS3 Gbps unmetered$273.00
ESSENTIAL-1Intel Xeon-E 2386G632 GB2x 512 GB SSD NVMe1 Gbps unmetered$38.40

Related pages

Respond to a compromised server

What to do in the first hour after you suspect an intruder on a rented machine: contain, preserve evidence, rebuild and close the hole.

Read more

Data backup and recovery

What a backup is and is not, the 3-2-1 rule for rented servers, file and database methods, retention, encryption and proving that a restore works.

Read more

Hardening a new dedicated server

The first hour on a fresh machine: SSH keys, a firewall, automatic updates, brute force blocking and a habit of checking what listens.

Read more

Backup and archive storage

Hard disk chassis from 44 TB to 576 TB raw for offsite backups, archives and object storage targets.

Read more

Questions and answers

How does ransomware get onto servers?

Mostly through stolen credentials, unpatched internet-facing software and compromised administrator workstations.

What is double extortion ransomware?

Attackers copy data before encrypting it, then threaten to publish it as well as withholding the key.

How do I make backups ransomware resistant?

Keep them on a separate server, make them append-only from production, version them and manage them with different credentials.

Can I investigate an infected server safely?

Yes. Boot it into rescue mode from our console and copy disks and logs without starting the infected system.

Should I clean an infected server or rebuild it?

Rebuild from a clean install and restore data from before the intrusion. Cleaning in place risks leaving a backdoor.