Network security

What Is an Air-Gapped Backup? How Offline Backups Stop Ransomware

Ransomware now targets backups before it encrypts anything. An air-gapped backup keeps at least one copy somewhere attackers cannot reach — here is how it works and how to build one.

Cysoro Security TeamPublished · 9 min read
NETWORK SECURITY Air-Gapped Backup The offline copy ransomware cannot reach. PRODUCTION ✕ BACKUP No network path — the gap is the defense 94% OF RANSOMWARE ATTACKS target backups first (Sophos, 2024) PHYSICAL · LOGICAL · AUTOMATED Three ways to build the gap
Quick answer

An air-gapped backup is a copy of critical data stored where attackers on your network cannot reach it — physically disconnected, like tape stored offsite, or logically isolated, like a cloud vault with no standing connection. Because ransomware tries to delete or encrypt accessible backups before encrypting production data, an air-gapped copy is often the only one left to restore from.

Key takeaways

  • An air gap breaks the network path between production systems and a backup copy, so ransomware cannot reach it.
  • Air gaps come in three forms: physical (tape or disconnected disk), logical (isolated network or account), and automated (connection open only during a backup window).
  • An air gap is not a substitute for immutability or testing — scan backups before isolating them, keep several versions, and test restores regularly.

Modern ransomware does not start by encrypting your files. It starts by finding your backups — and deleting them. If the only copy of your data sits on the same network as the systems it protects, the attacker can destroy it with the same credentials they used to get in.

What is an air-gapped backup?

An air-gapped backup is a copy of critical data stored on media or machines that are offline and not practically accessible over the internet. IBM describes it as a crucial layer of protection against data loss, ransomware and other cyber threats. The "air gap" is the separation between the backup and any network an attacker could use to reach it.

The term comes from the physical world: a literal gap of air between a system and any network, so nothing can cross it electronically. Applied to backup, it means at least one copy of your data sits somewhere a remote attacker — or malware spreading through a compromised network — simply cannot get to, no matter whose credentials it has stolen.

The gap can be physical, such as tape cartridges removed and stored in a vault, or logical, such as a backup on a separate network or cloud account with no standing connection to production. Either way, the security property is the same: outside a controlled transfer window, there is no network path to the copy.

How does an air-gapped backup work?

An air-gapped backup follows a four-phase cycle: capture, isolation, secure storage, and controlled recovery. Each phase has to hold for the isolation to mean anything.

The air-gapped backup cycle 1 Capture copy data, scan for malware first 2 Isolation disconnect media or close the connection 3 Secure storage offsite vault or locked, isolated vault 4 Recovery reconnect on a clean network, restore ↺ Repeat daily or weekly, on schedule The gap only protects data that has already been copied into it.
The four phases of an air-gapped backup cycle. Illustration by Cysoro.

First, production data is copied to the backup target. Before it enters the isolated environment, anti-malware scanning should validate it — backing up compromised data into an immutable, air-gapped copy creates a poisoned backup that could reinfect you during recovery.

Then the gap closes. For a physical air gap, that means removing tape cartridges or disconnecting removable disk arrays and storing them offline. For a logical gap, it means closing the network connection and removing standing access. In storage, the copy stays protected behind physical security, segmentation and immutability locks.

Recovery reverses the process on a clean network: the media is reconnected or the vault is opened, and data is restored to rebuilt systems. This is the phase most organizations under-test, and it is where a backup plan either works or falls apart.

What are the three types of air gap?

Products described as "air-gapped" isolate data in different ways. The differences affect recovery time and how much you depend on people following a procedure.

TypeHow the gap is createdStrengthTrade-off
Physical (offline)Tape, removable disks or a device unplugged and stored separatelyNo network path at allManual handling, slow restores, depends on discipline
Logical (network isolation)Backup on a separate network or account with no standing accessFast restores, no media handlingIsolation is enforced by configuration, so it must be protected and audited
Automated (scheduled isolation)A switch or controller opens the connection only for the backup window, then closes itShort exposure without manual stepsDepends on the controller; the window itself must be secured

Physical air gaps offer the strongest isolation, because there is literally no connection to attack. Their weakness is operational: someone has to rotate the media, store it properly, and bring it back for a restore. If the rotation slips, the "air-gapped" copy quietly becomes weeks out of date.

Logical air gaps recover faster, since nothing has to be physically reconnected, but they depend on the isolation controls being correctly configured and maintained. A misconfigured firewall rule or a shared admin credential can silently close the gap. Automated isolation splits the difference: the connection exists only during a defined transfer window, ideally with the port shut so the link is down the rest of the time.

Air-gapped vs immutable vs offsite backup

These three terms are often used as if they meant the same thing. They answer different questions, and a good backup strategy uses more than one of them.

TermQuestion it answersWhat it protects against
Air-gappedCan an attacker reach the copy?Attackers finding and accessing the backup
ImmutableCan the copy be changed or deleted?Deletion, encryption and tampering of the copy
OffsiteDoes a local disaster destroy every copy?Fire, flood, theft and site-wide failure

An air-gapped backup may or may not be immutable, and an immutable backup may still be reachable over the network. The strongest design layers all three: an immutable copy for fast recovery, an air-gapped copy as the last line of defense, and one copy offsite. This is the modern form of the 3-2-1 rule: three copies, on two media, with one offsite — plus one copy offline.

Why do air-gapped backups matter for ransomware?

Because ransomware operators hunt backups first. In a 2024 Sophos study of 2,974 organizations hit by ransomware, 94 percent said attackers tried to compromise their backups. The attackers know that a working backup removes their leverage, so they delete shadow copies, encrypt backup repositories and steal admin credentials before they encrypt production data.

They usually have time to look. Financially motivated attackers now move from the first compromised machine to others in 29 minutes on average, according to CrowdStrike's 2026 Global Threat Report, and they often spend days inside a network before triggering encryption. Any backup that stays reachable during those days can be found and deleted with the same credentials the attacker already holds.

CISA's guidance is direct: maintain offline, encrypted backups of critical data, and regularly test the availability and integrity of backups in a disaster recovery scenario. The agency's #StopRansomware Guide notes that many ransomware variants attempt to find and delete or encrypt accessible backups to make restoration impossible unless the ransom is paid. An air gap is the practical way to follow that advice.

Air gaps also help with threats that are not ransomware: compromised admin credentials, insider threats, and destructive wipers that target backup infrastructure. In each case, the property that saves you is the same — the copy is not reachable from the compromised environment.

How do I set up an air-gapped backup?

Start with what matters most. List the data you cannot rebuild: customer records, financial data, source code, contracts, and the system images needed to rebuild servers. That list decides what goes into the air-gapped copy and how often it is refreshed.

  1. Choose the gap type. A small business can start with rotating external drives: one attached for the backup, one offsite, swapping on a schedule. A larger organization should look at tape, a dedicated backup appliance, or a logically isolated cloud vault with separate credentials.
  2. Separate the credentials. The backup target must not share admin accounts, passwords or MFA with production. If one stolen credential can reach both, there is no air gap.
  3. Automate the window. If you use a logical or automated gap, schedule the connection to open only during the backup window and close automatically. Log every opening.
  4. Encrypt the copy. Backups should be encrypted at rest, and the encryption keys stored separately from the backup itself — ideally offline as well.
  5. Keep several versions. Ransomware can sit undetected for days, so a single recent copy may already contain encrypted or infected files. Keep daily, weekly and monthly versions.
  6. Test the restore. Restore to an isolated test system, confirm the data opens and the applications run, and record the result. A backup that has never been restored is a hope, not a plan.

A NAS can serve as an isolated backup target in several ways: rotating removable drives, a separate network segment with no standing route from production, or a scheduled connection window controlled by the device itself. Whichever you choose, write the procedure down and assign an owner — an air gap that depends on one person's memory will fail when that person is on holiday.

For the wider picture, our small business cybersecurity checklist covers backups alongside the other basics.

What are the downsides and common mistakes?

Air gaps add friction, and that friction causes the most common mistakes. The first is a gap that is not really a gap: a "disconnected" drive that stays plugged in, a cloud vault that shares credentials with production, or a backup window that never closes. Test the isolation, not just the backup — try to reach the copy from a production machine and confirm you cannot.

Five mistakes that break an air gap 1. The gap never closesdrive stays plugged in, window stays open 2. Shared credentialsone stolen admin account reaches both sides 3. No scan before backupinfected files copied into the isolated copy 4. Only one version kepta single poisoned copy leaves nothing to restore 5. Restores never testeda backup that has never been restored is a hope, not a plan Check the gap itself — not just the backup job — at least once a quarter.
Five mistakes that silently break an air-gapped backup. Illustration by Cysoro.

The second mistake is slow restores. Tape and offsite media take time to retrieve and restore, and a recovery that takes three days may breach your recovery time objective. Plan the restore in advance: know where the media is, who can fetch it, and how long a full restore takes in practice.

The third is treating the air gap as the whole strategy. An air gap does not detect malware, does not replace immutable copies for fast recovery, and does not help if the data was already encrypted before it was backed up. It is one layer — the last one — in a backup strategy that also needs versioning, encryption and testing.

An air gap is not a backup strategy on its ownIf your only backup is air-gapped and it fails, you have nothing. Keep an immutable, always-reachable copy for fast everyday recovery, and treat the air-gapped copy as the last resort for the worst day, not the first resort for every restore.

How often should you test an air-gapped backup?

Test restores at least quarterly, and after any major change to your systems, your backup software or your media. A test should restore real data to an isolated system and confirm it works — not just confirm that the backup job reported success.

Also test the gap itself: from a production machine, try to reach the isolated copy and confirm you cannot. If the test succeeds in reaching it, the gap is broken and the backup is not air-gapped, whatever the diagram says.

Record both tests, with dates, so an auditor or an insurer can see the evidence. That evidence matters: many cyber insurance policies now ask specifically about offline backups, and a tested air-gapped copy is one of the strongest answers you can give. See our cyber insurance readiness page for what insurers usually ask about backups.

Who needs an air-gapped backup?

Any organization for which losing its data would stop the business, or for which a ransom payment would be the only alternative. That includes healthcare, legal and financial firms, manufacturers with production data, and any business holding customer data it cannot rebuild.

Regulated organizations often have no choice: frameworks and regulators increasingly expect offline backups as part of ransomware resilience, and CISA's guidance applies to organizations of every size. Even a one-person business benefits from a rotating pair of external drives, one of which is always offsite — the simplest air gap there is.

Ransomware usually enters through phishing, not through backup systems, so the air gap is only half the defense. The other half is stopping the initial compromise — which is why staff training matters. Our guide to what spear phishing is explains the most common entry point and how to defend against it.

The bottom line

An air-gapped backup is a copy of your data that attackers cannot reach, because the network path to it does not exist outside a controlled window. It is the most reliable answer to ransomware that targets backups — and ransomware targets backups in nearly every attack.

Start simple: pick your critical data, separate the credentials, keep several encrypted versions, and test the restore. Then verify the gap itself, on a schedule, and keep the evidence.

A backup you have restored is a recovery plan; a backup you have only scheduled is a hope. Check your own public-facing security with our free SSL checker while you are at it — the backup protects you after an attack, but the basics help stop one from happening.

Frequently asked questions

What is an air-gapped backup?

It is a copy of data stored on media or a network that is physically or logically isolated from the production environment and the internet, so an attacker who has compromised the primary network still cannot reach, encrypt or delete it.

What is the difference between an air-gapped backup and an immutable backup?

An air-gapped backup cannot be reached over the network outside its transfer window, while an immutable backup cannot be changed or deleted for a set period but may still be reachable. Many strategies layer both: an immutable copy for fast day-to-day recovery, and an air-gapped copy as the last line of defense.

Is a cloud backup air-gapped?

Only if it is logically isolated — for example, a separate cloud account with no standing access from production, or a vault that only connects during a backup window. An ordinary cloud backup that stays connected and uses the same credentials as production is not air-gapped.

How often should air-gapped backups be made?

As often as your recovery point objective requires. Daily is common for business data, and many organizations keep weekly and monthly air-gapped copies as well. The gap only protects data that has already been copied into it, so a stale copy limits what you can restore.

Can ransomware infect an air-gapped backup?

Ransomware cannot reach a properly isolated copy over the network, but malware can be copied into the backup if infected files are backed up before the gap closes. That is why you should scan data before it enters the isolated copy and keep several versions, so you can restore from a clean one.

Do small businesses need air-gapped backups?

Yes, if losing your data would stop the business. A small business can start simply: a rotating set of external drives, with one always offsite, or a cloud vault with separate credentials and no standing connection. The cost is far lower than a ransom or a rebuild.

How do I test an air-gapped backup?

Restore it to an isolated test system and confirm the data opens, applications run, and the copy is complete and uncorrupted. CISA recommends testing backups regularly in a disaster recovery scenario, not just checking that the backup job reported success.

Sources

  1. IBM — What is an Air Gap Backup?
  2. CISA — #StopRansomware Guide
  3. QNAP Blog — What Is an Air-Gapped Backup and When Should I Use It?
  4. SentinelOne — What Are Air Gapped Backups?
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against IBM's air gap backup guide, CISA's #StopRansomware Guide, and QNAP's air-gapped backup guide.

How we write and fact-check →

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free