AWS S3 Bucket MFA Delete Disablement
Adversaries may disable MFA Delete on versioned Amazon S3 buckets to enable the permanent destruction of object version history, a critical step in ransomware attacks targeting cloud-native backups.
Disabling MFA Delete on an Amazon S3 bucket removes a mandatory security control that requires multi-factor authentication to permanently delete object versions or change versioning status. This capability is specifically designed to prevent the unauthorized destruction of data backups. Adversaries who have compromised long-term access keys or gained administrative control over an S3 environment can use the PutBucketVersioning API call to set the MfaDelete parameter to Disabled. By neutralizing this safeguard, attackers gain the ability to permanently delete previous object versions, effectively destroying the organization's ability to recover from ransomware encryption. Because only the AWS root user can modify MFA Delete settings, the occurrence of this API call is a high-confidence indicator of root credential compromise or unauthorized escalation of privileges.
Attack Chain
- Attacker gains initial access to the cloud environment, typically via compromised long-term access keys or session tokens.
- Attacker performs reconnaissance to identify sensitive S3 buckets that contain backups or critical data.
- Attacker uses compromised credentials to assume an IAM role or directly access the root account to gain necessary permissions.
- Attacker monitors S3 configuration and identifies buckets with MFA Delete enabled as a recovery barrier.
- Attacker executes the PutBucketVersioning API call, setting MfaDelete to Disabled to weaken bucket security.
- Attacker deletes existing object versions or executes ransomware encryption on current files to ensure no recovery point exists.
Impact
Successful exploitation allows attackers to destroy data versioning history within Amazon S3 buckets. This eliminates the capability to restore files from versioned backups after a ransomware attack, significantly increasing the probability of data loss and the likelihood that victims will be forced to pay extortion demands to restore operational continuity.
Recommendation
- Deploy the provided Sigma detection rule to alert on successful PutBucketVersioning API calls where MfaDelete is set to Disabled.
- Restrict the use of AWS root user credentials to strictly defined break-glass scenarios and implement hardware-based MFA for these accounts.
- Use AWS CloudTrail and IAM Access Analyzer to audit and restrict principals authorized to invoke the PutBucketVersioning API.
- Enable AWS Config rules to monitor and automatically remediate configurations where bucket versioning or MFA Delete settings are altered.
Immediate actions
Deploy the detection rule for MFA Delete disablement.
Mitigations
Enable MFA Delete on all critical S3 buckets containing versioned data.
T1490
Detection coverage 1
Detect AWS S3 Bucket MFA Delete Disabled
highDetects PutBucketVersioning API calls that disable the MFA Delete feature, indicating a potential ransomware preparation step.
Detection queries are available on the platform. Get full rules →