Deleting backups
| Class | Availability and abuse |
|---|---|
| Also known as | Inhibit system recovery; backup destruction |
| MITRE ATT&CK | T1490 Inhibit System Recovery |
| Typical severity | High, critical together with encryption or deletion of the data |
| Affects | Windows and Linux servers, VMware ESXi hosts, network storage, and cloud accounts holding snapshots, database backups, machine images and versioned storage |
Alongside encrypting or wiping data, an attacker removes whatever the owner would use to restore it, or switches it off.1 The targets go beyond backup files: shadow copies kept by Windows, snapshots of virtual machines and disks, database backups, earlier versions of stored objects, and the settings that would make new copies. Once these are gone, data locked by Ransomware and data destruction or deleted on purpose can come back only from a copy the attacker could not reach.
On servers and virtual machines
Windows keeps a backup catalog, volume shadow copies and automatic repair features, and a built-in tool deletes or switches off each one. Commands recorded in such attacks include:1
vssadmin.exe delete shadows /all /quiet
wmic shadowcopy delete
wbadmin.exe delete catalog -quiet
bcdedit.exe /set {default} recoveryenabled noThe first two delete every shadow copy on the machine, the third removes the Windows Backup catalog, and the last switches off the automatic recovery features in the boot configuration. Dozens of ransomware families delete shadow copies or the catalog, Conti, LockBit, REvil and BlackCat among them; Maze tried to delete the shadow copies twice, once before it encrypted the files and once after.1
On a VMware ESXi host the same step is vim-cmd vmsvc/snapshot.removeall, which erases every snapshot of a virtual machine. Backups that stay connected, on network storage or in a folder that syncs to a cloud service, are deleted the same way. Some attackers first silence the alerts a backup system sends and then corrupt the backups.1
In a cloud account
No malware is needed in a cloud account. A login or key with enough rights can turn off object versioning and backup policies, then delete snapshots, database backups, machine images and older versions of stored files through the provider's API.1 When the copies live in the same account as the data, the credentials that reach one reach the other.
Provider defaults decide how much a single deletion takes with it. Deleting an Amazon RDS database without the option to keep automated backups removes those backups in its Region for good; manual snapshots and backups replicated to another Region remain. Databases created in the RDS console get deletion protection by default, but any account allowed to modify the database can switch it off, with no outage.2 Deleting a Supabase project removes its data and its backups permanently. Only paid plans get automatic daily backups, kept for 7 to 30 days depending on the plan.3
Code Spaces, 2014
Code Spaces sold hosted Subversion and Git repositories and ran on Amazon Web Services.4 On 17 June 2014 its servers came under a DDoS attack. Messages left inside its EC2 control panel, the AWS console where its servers were managed, led to a person who wanted a large fee to stop it.5 The intruder could not log in to the servers, because the private keys had not leaked, but the panel itself was enough. When staff changed the passwords to take the account back, they found the intruder had already set up several extra logins, and the intruder began deleting resources.5
Over 12 hours the intruder removed all disk snapshots (EBS snapshots), all S3 buckets and all machine images, some disk volumes and several virtual servers. Every volume holding database files was deleted together with its snapshots and backups, and most of the data, backups, machine settings and off-site backups were partly or completely deleted. Git repositories could still be exported, though none had a backup left. The company announced it could not keep operating.5 Its statement does not say how the panel login was obtained.
Detection
On a Windows server, the sign is a process running vssadmin, wbadmin, diskshadow, bcdedit, REAgentC or wmic with arguments that delete shadow copies or the backup catalog, or that turn recovery off. In a cloud account it is a run of API calls that stop snapshot schedules, backup policies or versioning, followed by calls such as DeleteSnapshot and DeleteVolume.1
Copies a stolen login cannot delete
Backups belong off the system they protect. In the cloud that means versioning on storage objects and copies in a second account or Region.1 AWS Backup can copy recovery points to another account in the same AWS Organizations organization; when the original is deleted, the copy can be copied back from that account.6
A lock the account owner cannot lift goes further. AWS Backup Vault Lock in compliance mode starts with a grace time of at least 72 hours. After it, neither a user nor AWS can change or remove the lock, and AWS Backup refuses any request, from the root user too, to delete a backup in the vault or change its lifecycle. In governance mode any user whose IAM permissions (the AWS access rules) allow it can remove the lock, so a stolen administrator key can too.7 Adding --changeable-for-days selects compliance mode:
aws backup put-backup-vault-lock-configuration \
--backup-vault-name my_vault_to_lock \
--changeable-for-days 3 \
--min-retention-days 7 \
--max-retention-days 30The lock costs nothing extra, but storage is billed until each backup expires, and one set to be kept forever can never be removed. Backups already in the vault keep their earlier lifecycle.7
On Amazon S3, MFA delete asks for a code from the owner's MFA device before an object version is removed for good or the bucket's versioning is changed. Only the root account can turn it on, through the CLI or the API, and a bucket with lifecycle rules cannot use it.8
Delete rights on backups should belong to as few accounts as possible (Principle of least privilege); in AWS Organizations, Service Control Policies can refuse delete calls on backups, snapshots and images. On Windows servers, reagentc /enable keeps the recovery environment on.1
Prompt for a coding agent
List every place where this project's data is copied for recovery: database backups, point-in-time recovery, disk snapshots, storage versioning and any export scripts. For each one, find out which keys or accounts in this project's code, environment variables and deploy settings are able to delete it or turn it off, and name them. Then propose changes so that at least one copy sits in a separate account, or under a lock that those keys cannot remove. Do not print any key or password in your answer.
In SecFlash
The Cloud page reports SF-CLD-108 for a Hetzner server, volume or network that has no delete protection. It also reports SF-CLD-104 and SF-CLD-205 when a Hetzner server or a DigitalOcean Droplet has the provider's backups switched off, and SF-CLD-525 when a Supabase project has neither a recent backup nor point-in-time recovery.
See also
- Ransomware and data destruction
- Backup and restore
- Point-in-time recovery
- Abuse of leaked API keys
- Additional cloud credentials
- Stolen cloud credentials
- Audit logs
- Category: Availability and abuse
References
- a b c d e f g h "Inhibit System Recovery, T1490". MITRE ATT&CK. Version 1.6, last modified 4 November 2026.
- back Amazon Web Services. "Deleting a DB instance". Amazon RDS User Guide.
- back Supabase. "Database Backups". Supabase documentation. Updated 12 November 2026.
- back McAllister, Neil (18 June 2014). "Code Spaces goes titsup FOREVER after attacker NUKES its Amazon-hosted data". The Register.
- a b c Code Spaces (June 2014). "Dear Customers", statement on the company homepage. Archived by the Wayback Machine, 20 June 2014.
- back Amazon Web Services. "Creating backup copies across AWS accounts". AWS Backup Developer Guide.
- a b Amazon Web Services. "AWS Backup Vault Lock". AWS Backup Developer Guide.
- back Amazon Web Services. "Configuring MFA delete". Amazon S3 User Guide.
External links
- #StopRansomware, CISA