keepcalculator

06 Numbers and Powers

Protect Backups from Ransomware and Accidental Deletion

Card No. 06·69185 · Updated · Standard formula, shown below

This guide shows you how to safeguard your backups so they survive both ransomware attacks and accidental deletion. You’ll learn to configure immutable backups, enforce versioning, and apply access controls—so even if your primary data is encrypted or wiped, you can restore cleanly. No special hardware is required; you’ll use the features already built into most backup software and cloud storage services.

What You’ll Need

  • Backup software or a cloud backup service (e.g., cloud storage with versioning, or a local backup tool with retention policies).
  • Access to your backup storage admin console (e.g., cloud provider dashboard, NAS settings, or backup software settings).
  • An account with permissions to change backup policies and create access keys (if using cloud storage).
  • Basic understanding of your backup schedule and current retention settings.

Step-by-Step

  1. Enable versioning on your backup storage. For cloud storage (like S3, Azure Blob, or Google Cloud Storage), turn on object versioning. This keeps every version of a file, so if ransomware overwrites or deletes a backup, you can restore a previous version. For local backups, use software that supports versioned backups (e.g., Veeam, Acronis, or rsync with snapshots).
  2. Set up immutable backups (WORM). Use the “Object Lock” or “immutability” feature in your cloud storage to make backups write-once-read-many (WORM). Set a retention period (e.g., 30 days) during which no one—including administrators—can delete or modify the backup. For local storage, use a NAS that supports immutable snapshots or a backup appliance with a “compliance mode.”
  3. Implement the 3-2-1 rule. Keep at least three copies of your data: one primary, two backups on different media (e.g., local disk and cloud), with one copy offsite. This ensures that even if one backup is compromised, you have another.
  4. Enforce multi-factor authentication (MFA) on backup accounts. Use MFA on any account that can access or manage backups. This prevents attackers from gaining access to your backup console and deleting or encrypting your backups.
  5. Restrict access with least privilege. Create separate user accounts for backups with minimal permissions. For example, a backup service account should only have write access to the backup bucket, not delete permissions. Use role-based access control (RBAC) to ensure only authorized admins can modify retention policies.
  6. Set up alerts and monitoring. Enable notifications for backup failures, deletion attempts, or unusual activity (e.g., mass deletion). Cloud providers offer CloudTrail or activity logs; configure alerts to email or SMS when a backup is deleted or modified.
  7. Test your backups regularly. Perform a restore test at least monthly to verify that you can actually recover files from your backups. This also helps you catch any configuration errors before a real disaster.
  8. Document your recovery plan. Write down the steps to restore from backup, including where backups are stored, how to access them, and who has the credentials. Store this document in a secure place (e.g., a password manager) that is not accessible via your main network.

Common Mistakes

  • Not enabling versioning. If you only keep the latest backup, a ransomware attack that encrypts your backup will leave you with no clean copy.
  • Using the same credentials for backups as for primary data. If an attacker gets your main account password, they can also access and delete backups.
  • Setting immutability too short. A 1-day retention period may not be enough to detect an attack. Choose a period that exceeds your typical detection time (e.g., 30 days).
  • Ignoring alerts. If you don’t monitor your backups, you won’t know they’ve been compromised until it’s too late.
  • Storing backups on the same network as production data. Ransomware can spread to local backup drives. Isolate backups on a separate network or use offline storage (e.g., tape or disconnected disk).

Tips

  • Use air-gapped backups for critical data. Keep a copy of your most important files on a disk that is physically disconnected from your system except during backups.
  • Encrypt your backups. Even if backups are stolen, encryption prevents attackers from reading your data. Use encryption at rest and in transit.
  • Automate backups. Manual backups are often forgotten. Use a schedule to run backups automatically, and verify they complete successfully.
  • Consider a backup service with built-in ransomware protection. Some services offer automatic versioning and immutability; choose one that fits your needs.
  • Keep a local copy. Cloud backups are great, but a local backup (e.g., external drive) allows for fast recovery if your internet is down.

Troubleshooting

If you find that your backups are not protected, try the following:

  • Backup deleted or encrypted: Check if versioning is enabled. If yes, restore a previous version. If not, you may need to recover from another backup or use data recovery tools (but these are not guaranteed).
  • Immutable lock fails: Ensure you have the correct permissions to set Object Lock. Some providers require a special “legal hold” or “retention” setting. Verify that the retention period is set and that the lock is active.
  • Alerts not working: Check your notification settings. Ensure that the email or SMS address is correct and that the alerts are not going to spam.
  • Restore fails: Test your restore process regularly. If a restore fails, check that you have the correct encryption keys and that the backup is not corrupted. Try restoring to a different location.
  • Backup software not supporting immutability: Use a cloud storage provider that offers Object Lock, or switch to a backup tool that supports WORM (e.g., Veeam with S3 Object Lock).

Frequently Asked Questions

Q: What is immutable backup?
Immutable backup means that once data is written, it cannot be modified or deleted until a specified retention period expires. This protects against ransomware that tries to encrypt or delete backups.

Q: How long should I keep backups?
It depends on your needs, but a common practice is to keep daily backups for 30 days, weekly backups for 3 months, and monthly backups for a year. Adjust based on your data importance and compliance requirements.

Q: Can ransomware attack my cloud backups?
If your cloud backup account credentials are compromised, ransomware can access and delete backups. That’s why MFA and least-privilege access are critical.

Q: What’s the difference between versioning and immutability?
Versioning keeps multiple versions of a file, so you can revert to an older version. Immutability prevents any version from being deleted or overwritten for a certain period. Both are useful; immutability is stronger.

Q: Do I need a separate backup for my backups?
Not necessarily, but having a second copy (e.g., one local and one cloud) is wise. The 3-2-1 rule suggests three copies total.

Q: Can I use free cloud storage for backups?
You can, but free tiers often lack versioning or immutability. For critical data, it’s worth paying for a service that offers these protections.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →