Cybersecurity
Ransomware and Backups: A No-Nonsense Protection Plan for Small Businesses
Attackers do not only target big companies. Small businesses are attractive because they are less prepared. Here is a practical plan built around backups you can actually restore.
By Philip Mutuku · Published · Updated · 5 min read
One morning every file on the company server has a strange extension, and a text file explains how to pay to get them back. This is ransomware: malware that encrypts your data and demands payment. It is often paired with the theft of copies of the data and a threat to publish them.
Small and mid-sized businesses are frequent victims, not because they are interesting but because they tend to have weaker defences and cannot afford downtime. The average global cost of a data breach was USD 4.44 million in 2025 according to IBM’s annual study.[2] Your costs will be smaller, but so is your cushion.
How attackers usually get in
- Phishing emails with malicious attachments or links to credential-stealing pages.
- Stolen or reused passwords, especially on remote access tools and email.
- Unpatched software on servers, VPNs and routers that face the internet.
- Exposed remote desktop or admin panels without multi-factor authentication.
Notice that none of these require genius. Basic hygiene closes most of the doors.[1]
Backups are your real insurance
If your data is safely backed up, ransomware becomes an expensive inconvenience rather than an existential threat. But a backup that is connected to the infected network gets encrypted too. The classic guideline is the 3-2-1 rule:
| Meaning | Example | |
|---|---|---|
| 3 | Keep at least three copies of important data | Live data plus two backups |
| 2 | On at least two different types of storage | Server disk and cloud object storage |
| 1 | With at least one copy offline or immutable and off-site | Cloud bucket with versioning and object lock, or a disconnected drive |
#!/usr/bin/env bash
set -euo pipefail
STAMP=$(date +%F)
DUMP="/var/backups/app-$STAMP.sql.gz"
# 1. Dump the database (credentials come from ~/.my.cnf, not this script)
mysqldump --single-transaction --routines appdb | gzip > "$DUMP"
# 2. Encrypt before it leaves the server
gpg --batch --yes --encrypt --recipient [email protected] "$DUMP"
# 3. Copy to off-site storage whose credentials can ADD files but not DELETE them
rclone copy "$DUMP.gpg" remote:company-backups/db/
# 4. Verify the upload and clean up local copies older than 7 days
rclone check "$DUMP.gpg" remote:company-backups/db/ --one-way
find /var/backups -name 'app-*.sql.gz*' -mtime +7 -delete
Prevention that pays off most
- Multi-factor authentication everywhere, starting with email, admin consoles, cloud accounts and remote access.
- Patch promptly. Enable automatic updates; retire software that no longer receives them.
- Least privilege. Staff should not have admin rights for daily work, and finance data should not be reachable from every laptop.
- Train people to spot phishing, and make it easy to report suspicious messages without embarrassment.
- Separate networks and accounts so one compromised laptop cannot reach your servers and backups.
- Endpoint protection and email filtering to catch common malware and malicious attachments.
A backup design that survives an attack
Ransomware looks for backups and encrypts or deletes them first. A backup that is always connected to the same network and accessible with the same admin account is not a safe backup. The widely used 3-2-1 rule is a good start: keep three copies of your data, on two different types of storage, with one copy off-site and offline or immutable.
- Immutable or offline copy. Use storage where backups cannot be altered or deleted for a set period, or rotate disks that are disconnected after each run.
- Separate credentials. The account that manages backups should not be the everyday admin account.
- Test restores. A backup you have never restored is a hope, not a plan. Restore a sample every quarter and time it.
- Cover the whole business. Email, accounting data, shared drives, databases and cloud services such as your website host all need coverage.
Decide your recovery priorities now
When systems are down, everyone will want everything back at once. Decide in advance which systems matter most and how long you can live without each. Two numbers help: the recovery time objective, how quickly a system must be running again, and the recovery point objective, how much recent data you can afford to lose. A shop’s point-of-sale and M-Pesa reconciliation may need hours; the marketing archive can wait days.
| System | Needed back within | Maximum data loss |
|---|---|---|
| Point of sale / orders | Hours | Minutes to an hour |
| Accounting and payroll | 1–2 days | One day |
| Customer email | Hours | Minimal |
| Shared documents | 2–3 days | One day |
| Website | 1 day | One day |
Should you ever pay the ransom?
Authorities generally advise against paying. Payment does not guarantee you will get working keys, funds further crime and may mark you as a willing payer. Your decision should be informed by your backups, legal advice and, where relevant, law enforcement. In Kenya, personal data breaches can trigger duties to notify the Office of the Data Protection Commissioner and affected people, so involve a lawyer early.
Frequently asked questions
Is antivirus enough?
It helps, but it is one layer. Combine it with updates, multi-factor authentication, restricted admin rights, email filtering and, above all, tested offline backups.
We are tiny. Are we really a target?
Yes. Attackers often use automated scans for exposed remote desktop services and weak passwords, and small businesses tend to have weaker defences. Size does not protect you; basic hygiene does.
Have a response plan before you need it
In a crisis, decisions made in panic are rarely good ones. Write down, now, who to call and what to do:
- Isolate. Disconnect affected machines from the network (unplug the cable, turn off Wi-Fi). Do not wipe them yet; they hold evidence.
- Preserve and assess. Identify what was hit and whether data was stolen as well as encrypted.
- Activate your contacts: your IT provider, a security specialist, your lawyer, and your insurer if you have cover.
- Restore from clean backups, onto rebuilt or verified-clean systems, and change all credentials.
- Notify as required. If personal data is involved, Kenya’s Data Protection Act imposes security and breach-notification duties, so involve your legal adviser early.[4]
- Review and fix how they got in, so it does not happen twice.
Law-enforcement and security agencies generally advise against paying ransoms: payment funds criminals and does not guarantee you get usable data back.[1] The best answer to the question “should we pay?” is to be in a position where you do not need to ask it.
References & further reading
- CISA, “#StopRansomware Guide” (prevention and response checklists). https://www.cisa.gov/stopransomware
- IBM & Ponemon Institute, “Cost of a Data Breach Report 2025”. https://www.ibm.com/reports/data-breach
- National Cyber Security Centre (UK), “Mitigating malware and ransomware attacks”. https://www.ncsc.gov.uk/guidance/mitigating-malware-and-ransomware-attacks
- Office of the Data Protection Commissioner, Kenya: Data Protection Act, 2019 (breach notification and security safeguards). https://www.odpc.go.ke