> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-s3-bucket-is-not-configured-with-mfa-delete.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS S3 bucket is not configured with MFA Delete

### Synopsis

| Field               | Value                                           |
| ------------------- | ----------------------------------------------- |
| Rule Type           | Detection                                       |
| Finding Type        | AWS S3 bucket is not configured with MFA Delete |
| Finding ID          | 60000304                                        |
| Generates a Finding | This detection rule also generates a finding    |
| Severity            | Medium                                          |
| Category            | CONFIGURATION                                   |
| Cloud Providers     | AWS                                             |
| Platform Module     | CSPM                                            |
| Asset Types         | S3\_BUCKET                                      |

### Description

AWS S3 buckets lacking MFA Delete are susceptible to accidental or malicious data deletion.

The AWS S3 service allows versioning of objects, providing a mechanism for recovery from accidental deletions. However, without MFA Delete enabled, anyone with sufficient permissions can permanently delete object versions, bypassing versioning protection. This misconfiguration leaves data vulnerable to unauthorized removal or data breaches. An attacker could exploit this to permanently delete sensitive information.

Compromised credentials or unintended actions could lead to irreversible data loss. MFA Delete adds a crucial second layer of authentication, significantly reducing the risk of accidental or malicious object deletion. Implementing this best practice ensures data integrity and minimizes the impact of compromised credentials.

Enable MFA Delete on all versioned S3 buckets. Regularly audit bucket configurations to ensure MFA Delete remains enabled. Consider implementing least privilege access controls and robust access logging to further enhance security.

### Remediation

Using console you can enable versioning on the bucket but you cannot enable MFA delete. You can do it via only with the AWS CLI: aws s3api put-bucket-versioning --bucket \<BUCKET\_NAME> --versioning-configuration Status=Enabled,MFADelete=Enabled --mfa "\<MFA\_SERIAL\_NUMBER> \<MFA\_CODE>"

NOTE: The bucket owner, the AWS account that created the bucket (root account), and all authorized IAM users can enable versioning, but only the bucket owner (root account) can enable MFA Delete. Successful execution will enable the S3 bucket versioning and MFA delete on the bucket.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-s3-bucket-is-not-configured-with-mfa-delete.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
