How Ransomware Turns Access into a Recovery Problem

Editorial illustration.

Originally published 16 June 2023; rewritten and reviewed on 15 October 2026.

The first visible sign of ransomware is usually a panicked message on WhatsApp: someone cannot open a shared spreadsheet, an ERP login page throws a 500 error, or a .locked extension appears across a file share. By the time you see the ransom note, the encryption is already the final act. What you actually have on your hands is a trust and recovery problem—figuring out what was touched, whether data was exfiltrated before the locks went on, and how to bring a clean system back online without reintroducing the attacker.

How a small foothold reaches your backups

Most incidents I have read post-mortems on—or helped small Malaysian SMEs clean up after—did not start with some exotic zero-day. They started with an exposed RDP port on 3389, a WordPress plugin left unpatched for two years, a recycled admin password without MFA, or a malicious invoice attachment opened on a finance PC that also happened to have mapped network drives.

Once inside, attackers rarely encrypt on minute one. They sit quietly, harvest credentials, look for domain admin or root access, and hunt down the backup server. If your NAS or backup bucket uses the same Active Directory credentials, or if your Linux VPS pushes backups to an S3/R2 bucket using a key that has s3:DeleteObject permissions, the attacker deletes or encrypts your backups first. Only then do they trigger the payload on production.

That is why defence cannot stop at antivirus on endpoints. Keep SSH and admin panels off the public internet behind a VPN or Cloudflare Tunnel, enforce MFA on every cloud and registrar account, and separate service accounts so a compromised web app cannot touch the database backup store.

Making logs and alerts survive the host

If an attacker wipes a server or encrypts /var/log, local logs do you no good. Ship authentication logs, sudo usage, firewall drops, and backup job events off-box to a separate log sink—even a small dedicated VPS or managed syslog endpoint—so you have a timeline when something looks off.

Pay attention to boring signals that precede encryption:

  • New admin users created outside a change window
  • Scheduled tasks, cron jobs, or systemd units modified unexpectedly
  • Backup retention policies shortened or snapshots deleted
  • Large outbound transfers at 3 a.m. from a database or file server

Give staff a low-friction way to report weird behaviour (“I clicked a link and nothing opened, or a macro prompt popped up”) without shaming them. Catching an incident two hours after a phishing click is worlds cheaper than finding out three weeks later on a Monday morning.

Practising restoration before you need it

A green “Backup Succeeded” email means almost nothing if you have never run a restore onto a clean machine. On Linux servers, tools like restic or borg paired with append-only repositories or S3/Cloudflare R2 Object Lock ensure that even a compromised production box can write new snapshots without being allowed to delete or overwrite yesterday’s clean copy.

Keep a written, offline-accessible runbook that answers practical questions under stress:

  • Where are the database encryption keys, .env secrets, and TLS/registrar credentials stored if your password manager or primary mail server is down?
  • How long does a full pg_restore or mysqldump import actually take on your real data volume—20 minutes or 14 hours?
  • Which service comes up first so finance, customer portals, and email can operate minimally while the rest is rebuilt?

During an active incident, resist the urge to immediately reboot or wipe infected machines before taking a disk snapshot for investigation, and do not assume paying a ransom guarantees a working decryption key or stops leaked data from being sold anyway. When your backups are immutable, your blast radius is segmented, and you have rehearsed a restore on a spare VM at least once a quarter, ransomware stops being an existential crisis and becomes a measurable, survivable outage.