Backup & Storage

Ransomware Basics: How It Works and How to Prepare

Ransomware locks your files and demands payment. Learn how attacks usually start and the preparation steps that make the biggest difference.

A technician crouching next to a server rack with a laptop
Photo: Technician with laptop working on server rack at NERSC.jpg by Derrick Coetzee from Berkeley, CA, USA, CC0, via Wikimedia Commons.
Key points
  • Ransomware encrypts files and often steals data too
  • Common entry points are phishing emails, exposed remote access and unpatched software
  • Offline or protected backups are the strongest recovery tool
  • Write down a response plan before you need one

Ransomware is malicious software that locks your files, or your whole system, so you cannot use them. The attackers then demand payment for the key. It is one of the most disruptive kinds of cyber attack for small organisations because a single infected computer can stop work for days.

This guide explains how ransomware generally works, how attacks tend to start, and the preparation steps recommended by government cyber agencies. It is general information, not incident response advice for a live attack.

How a ransomware attack works

Most attacks follow a similar path:

  1. Getting in. The attacker gains access to one computer or account.
  2. Spreading. They move through the network, looking for file servers, backups and accounts with wide permissions.
  3. Locking files. The software encrypts documents, databases and sometimes backups.
  4. Demanding payment. A message appears with instructions. In many cases the attackers also copy data first and threaten to publish it.

The US Cybersecurity and Infrastructure Security Agency (CISA) publishes a joint guide, the #StopRansomware Guide, that lays out prevention and response checklists for organisations. It describes common entry points and a step-by-step response list.

Common ways in

Government guidance repeatedly names the same weak spots:

  • Phishing emails with malicious attachments or links that lead to a fake sign-in page.
  • Remote access that is exposed to the internet without strong protection, for example remote desktop with a weak password and no second step.
  • Software that is out of date, where a known flaw has an available fix that was never installed.
  • Stolen or reused passwords, which let an attacker simply log in.

You can reduce all four with routine habits. Turn on multi-factor authentication for email and remote access, install updates promptly, and teach people how to spot suspicious messages. Our guides on phishing and two-step verification cover the basics.

The most important defence: backups you can reach

If your files are encrypted, a clean backup lets you restore them without paying anyone. The catch is that attackers know this and try to find and destroy backups first. The NCSC makes this point in its post on offline backups: backups that are always connected to your network can be reached and encrypted along with everything else.

Practical steps:

  • Keep at least one backup disconnected from your network when it is not being updated, or use a service that keeps previous versions and cannot be altered from your normal accounts.
  • Protect cloud backup accounts with a unique password and two-step verification.
  • Test restoring files. A backup you have never restored is unproven.
  • Back up the things you would miss: documents, accounting data, customer records, and the settings needed to rebuild systems.

See the 3-2-1 backup rule for a simple setup.

Limit the damage

Even with good backups, you want an attack to spread as little as possible:

  • Use separate accounts. Everyday work should not use an administrator account. Admin accounts should be used only when needed.
  • Give people access only to what they need. A receptionist's account should not be able to open the finance folder.
  • Keep devices updated. Turn on automatic updates for operating systems and browsers.
  • Use security software that is kept up to date, and keep it switched on.
  • Remove what you no longer use. Old accounts for former staff, unused remote access, and forgotten test systems are easy targets.

NIST's Small Business Cybersecurity Corner collects free guides and templates aimed at organisations with limited IT staff, including planning and awareness materials.

Prepare a one-page response plan

Under pressure, people make mistakes. A short written plan helps. CISA's guide includes a response checklist; a small organisation might adapt it into a page covering:

  • Who decides. Name the person who leads the response and a backup.
  • Who to call. A trusted IT provider, your insurer if you have cyber cover, and the relevant national reporting body.
  • First actions. Disconnect affected devices from the network, but do not turn them off unless advised, since that can lose useful evidence. Check CISA's guide for the current order of steps.
  • Where the backups are and how to restore them.
  • How you will communicate if email is down, for example a phone list kept on paper.

Store a printed copy somewhere you can reach without your computers.

Should you pay?

Government agencies generally discourage paying. Payment does not guarantee you get your data back, and it can encourage further attacks. Check CISA's guide for its current position and reporting advice, and speak to a qualified professional and the authorities in your country if you are ever in this position. This site cannot advise on a specific incident.

A simple monthly routine

  • Confirm that automatic updates are on for all computers and phones.
  • Check the last successful backup date.
  • Review who has administrator rights.
  • Remind staff about suspicious emails, and make it easy to report them.
  • Once a quarter, restore a few files from backup.

The short version

Ransomware usually gets in through a human mistake or an unpatched system. You cannot prevent every attempt, but you can make an attack survivable: keep updated, protect logins, limit access, hold a backup that attackers cannot reach, and write down what to do before you need it.

Sources and further reading

  1. CISA, #StopRansomware Guide
  2. NCSC, Offline backups in an online world
  3. NCSC, Small organisations guide to cyber security: Backing up your data
  4. NIST, Small Business Cybersecurity Corner

How this page was made: drafted with the help of an AI writing assistant, then checked against the sources above. Software menus and policies change, so check the linked pages for the current version. Read our editorial policy or report a mistake.

A

A.Agaag
Editor and site owner at ArcClear. ArcClear publishes practical guides on everyday software, devices and online safety, and links to the official documentation behind each claim.