# Source: https://docs.datadoghq.com/security/default_rules/c70-8d3-554.md

---
title: Amazon S3 bucket policy modified
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > Datadog Security > OOTB Rules > Amazon S3 bucket policy modified
---

# Amazon S3 bucket policy modified
Classification:attackTactic:[TA0040-impact](https://attack.mitre.org/tactics/TA0040)Technique:[T1485-data-destruction](https://attack.mitre.org/techniques/T1485) 
## Goal{% #goal %}

Detect when a S3 Bucket policy is modified.

## Strategy{% #strategy %}

Monitor CloudTrail and detect when S3 policies are being modified via one of the following API calls:

- [PutBucketAcl](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAcl.html)
- [PutBucketPolicy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketPolicy.html)
- [PutBucketCors](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketCors.html)
- [PutBucketLifecycle](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycle.html)
- [PutBucketReplication](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketReplication.html)
- [DeleteBucketPolicy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketPolicy.html)
- [DeleteBucketCors](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketCors.html)
- [DeleteBucketReplication](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketReplication.html)

## Triage and response{% #triage-and-response %}

1. Determine who the user was who made this API call.
1. Contact the user and see if this was an API call which was made by the user.
1. If the API call was not made by the user:
   - Rotate the user credentials and investigate what other API calls.
   - Determine what other API calls the user made which were not made by the user.

## Changelog{% #changelog %}

- 18 March 2022 - Updated signal message, query and severity.
- 16 November 2022 - Updated rule query.