Backup Security ensures that your AWS backups are protected, immutable, and recoverable, even if your primary account is compromised by ransomware or insider threats.
Modern ransomware playbooks target backups before they target data. An attacker who obtains administrator credentials in your account does not start by encrypting your databases; they start by deleting your recovery points, so that when the encryption happens you have nothing to restore from. This is why "we have AWS Backup enabled" is not a ransomware answer on its own: if the same credentials that run production can also delete recovery points, your backups share the blast radius of the account. The subtler version of this failure involves vault lock mode selection. A vault locked in governance mode can have its lock removed by any principal with sufficient IAM permissions, which is exactly what a fully compromised admin identity has, so governance mode protects against mistakes and junior operators, not against a determined attacker holding your keys. Compliance mode closes that hole: once its cooling-off grace period (minimum 3 days) expires, the lock and the vault configuration become immutable and cannot be altered by any user or by AWS. But compliance mode has its own well-documented trap in the opposite direction: if a recovery point with an indefinite retention setting lands in a compliance-locked vault, it can never be deleted, and you will pay for that storage forever. Check your retention lifecycles before the grace period ends, not after.
Confirm whether a vault is actually locked, and how:
aws backup describe-backup-vault --backup-vault-name prod-vault
In the output, Locked set to true means Vault Lock is enforcing deletion protection, MinRetentionDays and MaxRetentionDays show the enforced retention window, and LockDate tells you when the compliance-mode grace period ends and the configuration becomes immutable. To create a compliance-mode lock, include the grace period parameter:
aws backup put-backup-vault-lock-configuration --backup-vault-name prod-vault --changeable-for-days 3 --min-retention-days 7 --max-retention-days 365
Omitting --changeable-for-days creates the lock in governance mode instead; including it (minimum value 3) selects compliance mode and starts the countdown to immutability.
What is the difference between governance mode and compliance mode?
Governance mode locks the vault against everyone except principals with the IAM permissions to manage or remove the lock. Compliance mode is irreversible: after the grace period (at least 3 days, up to 36,500), neither you, nor your root user, nor AWS can change or remove the lock while recovery points remain in the vault. Use governance mode for operational guardrails and compliance mode when you need true immutability against a compromised administrator.
Can AWS delete my locked backups?
Not through the API, with one lifecycle exception: if you close the AWS account, AWS suspends it for 90 days with backups intact, and after that the vault contents are deleted even if Vault Lock was in place. Account closure protection is another argument for keeping backup copies in a separate, dedicated account under different administrative control.
Does Vault Lock cost extra?
The Vault Lock feature itself is free; you pay standard AWS Backup storage for what is in the vault. The financial risk is retention, not the lock: immutable backups with long retention accumulate storage costs you cannot cancel early, so size MinRetentionDays and MaxRetentionDays against your actual compliance obligations.
Is a locked vault in my production account enough?
It is a strong control against deletion, but a single account is still a single failure domain for access, billing, and human error. Combine Vault Lock with cross-account copies to a backup account and periodic restore testing; the 3-2-1 rule still applies in the cloud.
Protecting stored data by encrypting it on disk so that it cannot be read without the encryption key, even if the storage media is compromised.
The scope of impact when a security incident occurs - how many resources, accounts, or users are affected. Smaller blast radius means better security posture.
Using multiple AWS accounts to isolate workloads, environments, and teams, providing the strongest security boundary available in AWS.
Meeting regulatory requirements and industry standards (SOC 2, HIPAA, GDPR, PCI DSS, CIS) for data protection, access control, and security practices in the cloud.
Toc Consulting: AWS Security & Cloud Architecture
Our team helps engineering teams secure and architect AWS the right way: assessment in week one, a prioritized action plan in week two.