Protecting Backups from Attack
This lesson explains why backups are a target, and how Azure Backup's security features keep recovery points safe.
Learning outcomes
After completing this lesson, you will be able to:
- Explain why backups are a target.
- Describe soft delete and its retention.
- Compare the immutable vault states.
- Explain how multi-user authorization works.
Backups as a target
A backup is the last line of defence against data loss, and that makes it a target. Modern ransomware operators spend time in a network before encrypting anything, and one of their aims is to find and delete backups. If they obtain a backup administrator's credentials, the usual access controls do not help, because the attacker now holds those rights. Backup security therefore has to assume that a legitimate administrator account may be acting maliciously.
Azure Backup stores data in one of two vault types, which support different workloads. A Recovery Services vault protects Azure VMs, SQL Server and SAP HANA on Azure VMs, Azure Files, and on-premises workloads through the MARS agent and Azure Backup Server. A Backup vault protects newer workloads, such as Azure Kubernetes Service, Azure Database for PostgreSQL and Azure Cosmos DB.
Soft delete
Soft delete keeps deleted backup data for a retention period, and it can be recovered during that time without any cost for the soft-deleted data. The default retention is 14 days, and it can be set between 14 and 180 days. With enhanced soft delete it can be made always-on, so that it cannot be disabled. If an attacker deletes the backups, the data remains recoverable, which buys time to detect the attack. A longer period is useful, because many attacks are detected only after days or weeks.
Backup soft delete
Immutable vaults
An immutable vault prevents operations that could lose recovery points, such as reducing retention or deleting backup data before it expires. It has three states, which the following table explains.
| State | Effect | Reversible |
|---|---|---|
| Disabled | No immutability protection | Yes |
| Enabled | Protection is on, and an administrator can turn it off | Yes |
| Enabled and locked | Protection is on, with write once, read many storage | No |
Enabling immutability uses either a mode based on the backup policy, which is the default, or a specific duration. Immutability applies to data in the vault, and it does not cover operational backups of blobs, files and disks. Since the locked state is irreversible, and since it prevents reduction of retention, it should be used only after a policy has been tested. An organization can otherwise commit itself to storage costs that it cannot reduce.
Locking cannot be undone
A locked immutable vault cannot be unlocked. Test retention policies with the Enabled state before locking.
Immutability states
Multi-user authorization
Soft delete and immutability both have an off switch, unless they are locked. An attacker with vault rights might turn them off. Multi-user authorization (MUA) closes that route by requiring a second party's approval for critical operations. It uses a Resource Guard, a separate Azure resource that a different person controls.
The protection rests on a separation of duties. The Backup administrator holds rights on the vault, but no rights on the Resource Guard, which is owned by a security administrator, ideally in a different subscription or even a different tenant. When the Backup administrator attempts a protected operation, it needs temporary rights on the guard, granted through a process such as PIM. A stolen Backup administrator account alone therefore cannot complete the operation.
Some operations are always protected: on a Recovery Services vault these are Disable soft delete or security features and Remove MUA protection. Others are optional, such as Delete protection, Modify policy and Disable immutability. The dedicated roles are Backup MUA Admin and Backup MUA Operator, with Operator being for critical operations only.
The following diagram shows the separation of duties that multi-user authorization creates.

Multi-user authorization
Other layers of protection
Azure Backup has several additional controls that support these features, as follows.
- Azure roles: Backup Contributor, Backup Operator and Backup Reader separate duties, and Backup Operator cannot delete backup data or remove protection.
- Encryption: backup data is encrypted at rest, optionally with a customer-managed key.
- Private endpoints: a Recovery Services vault can be reached privately, and public access can be denied.
- Alerts and monitoring: Azure Monitor alerts on destructive operations, such as disabling protection, so that an attempt is seen quickly.
- Cross-region restore: geo-redundant vaults allow recovery in a secondary region.
Azure Policy has definitions that can audit immutability and multi-user authorization across vaults, and Defender for Cloud also produces recommendations about them.
More backup protections
Resisting a compromised administrator
After a ransomware attack at a similar company, a CISO requires that a compromised Backup administrator account must be unable to reduce retention or disable backup protection, and that the protection must not depend on the same administrators. The company wants the ability to change the retention policy later, subject to approval. What should you configure?
Configure multi-user authorization with a Resource Guard in a separate subscription owned by the security team, and protect the operations Delete protection and Modify policy as well as the mandatory operations. Enable immutability in the Enabled state, and keep soft delete always-on.
Enabled and locked immutability would stop an attacker, but it would also remove the ability to change retention, which the company wishes to keep. A resource lock on the vault can be removed by an Owner and does not cover these data operations. Azure RBAC alone fails the scenario because the threat is an account that already has the rights.
Why should a Resource Guard sit in a different subscription or tenant?
Show answer
So that someone who compromises the Backup administrator cannot also control the guard.
Exam Tips
Remember for the exam
- Assume that a backup administrator account can be compromised.
- Enabled and locked immutability is irreversible.
- The Resource Guard must be controlled by someone other than the vault administrator.
- Soft delete retention defaults to 14 days, and can reach 180.