> 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/ai-model-tampering-risk-due-to-publicly-writable-s3-bucket-used-for-storing-sagemaker-training.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AI model tampering risk due to publicly writable S3 bucket used for storing SageMaker training...

### Synopsis

| Field               | Value                                                                                                     |
| ------------------- | --------------------------------------------------------------------------------------------------------- |
| Rule Name           | AI model tampering risk due to publicly writable S3 bucket used for storing SageMaker training job output |
| Rule Type           | Detection                                                                                                 |
| Finding Type        | AI model tampering risk due to publicly writable S3 bucket used for storing SageMaker training job output |
| Finding ID          | 60001392                                                                                                  |
| Generates a Finding | This detection rule also generates a finding                                                              |
| Severity            | High                                                                                                      |
| Category            | POSTURE                                                                                                   |
| Cloud Providers     | AWS                                                                                                       |
| Platform Module     | CSPM                                                                                                      |
| Asset Types         | S3\_BUCKET                                                                                                |

### Description

Publicly writable AWS S3 buckets storing SageMaker training job output pose a significant risk of AI model tampering, leading to compromised model integrity and accuracy.

Attackers could exploit this attack path by writing malicious data into the S3 bucket, potentially altering the training data or replacing the trained model with a compromised version. This could result in inaccurate predictions, biased outputs, or even malicious behavior from the AI model.

Mitigate this risk by immediately restricting write access to the S3 bucket. Implement granular access control lists (ACLs) or bucket policies that only allow authorized users and services to write data. This ensures only legitimate processes can modify training data and model artifacts.

To prevent future occurrences, enforce least privilege principles when configuring S3 buckets. Regularly review and audit bucket permissions, and consider using encryption at rest and in transit for added protection. Adopt a strong access control policy for all S3 buckets.

### Remediation

```
[PUBLIC_ACCESS]
```

1. Log in to the AWS Console
2. Navigate to the 'S3' service
3. Click on the S3 resource reported in the alert
4. Click on the 'Permissions' tab
5. If Access Control List is set to 'Public' follow the below steps
   1. Under 'Access Control List', Click on 'Everyone' and uncheck all items
   2. Under 'Access Control List', Click on 'Authenticated users group' and uncheck all items
   3. Click on Save changes
6. If 'Bucket Policy' is set to public follow the below steps
   1. Under 'Bucket Policy', Select 'Edit Bucket Policy' and consider defining what explicit 'Principal' should have the ability to PUT/CREATE/REPLICATE/DELETE objects in your S3 bucket. You may also want to specifically limit the 'Principal' ability to perform specific PUT/CREATE/REPLICATE/DELETE functions, without the wild card.

      If 'Bucket Policy' is not required delete the existing 'Bucket Policy'.
   2. Click on Save changes

Note: Make sure updating 'Access Control List' or 'Bucket Policy' does not affect S3 bucket data access.


---

# 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/ai-model-tampering-risk-due-to-publicly-writable-s3-bucket-used-for-storing-sagemaker-training.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.
