> 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-sagemaker-notebook-instance-with-root-access-enabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS SageMaker notebook instance with root access enabled

### Synopsis

| Field               | Value                                                    |
| ------------------- | -------------------------------------------------------- |
| Rule Type           | Detection                                                |
| Finding Type        | AWS SageMaker notebook instance with root access enabled |
| Finding ID          | 60000522                                                 |
| Generates a Finding | This detection rule also generates a finding             |
| Severity            | Medium                                                   |
| Category            | CONFIGURATION                                            |
| Cloud Providers     | AWS                                                      |
| Platform Module     | CSPM                                                     |
| Asset Types         | AMAZON\_SAGEMAKER\_NOTEBOOK\_INSTANCE                    |
| ATT\&CK Tactic      | TA0004 (TA0004)                                          |
| ATT\&CK Technique   | T1078.004 (T1078.004)                                    |

### Description

SageMaker notebook instances with root access enabled pose a significant security risk, allowing users to perform unauthorized actions and potentially compromise the entire instance.

SageMaker notebook instances provide computing environments for machine learning tasks. Enabling root access grants users complete control, including the ability to install malicious software, modify system files, or escalate privileges. This misconfiguration bypasses standard security controls and exposes the instance to various attacks, leading to data breaches or complete system compromise.

The impact of this misconfiguration could be severe, ranging from data exfiltration to complete system takeover. Maintaining least privilege access is crucial; disabling root access minimizes the potential damage from compromised user accounts and reduces the attack surface. Restricting access to only necessary privileges ensures that even if a user account is compromised, the attacker's capabilities are limited.

To mitigate this risk, disable root access on all SageMaker notebook instances unless required for specific lifecycle configurations. Regularly review and audit notebook instance configurations to ensure root access is only enabled when strictly necessary and promptly disable it once the task requiring root access is complete. Implement strong access controls and regularly monitor for suspicious activity.

### Remediation

**Manual steps:**

AWS SageMaker Notebook Instance - Manual remediation steps:

1. Log in to AWS console
2. Navigate to the AWS SageMaker dashboard
3. Choose Notebook instances (Left panel)
4. Click on the reported SageMaker notebook instance

   Note: To update root access for SageMaker notebook instances; Instances need to be stopped. So stop running instance before editing.
5. In the 'Notebook instance settings' section, click on 'Edit'
6. On the Edit notebook instance page, within the 'Permissions and encryption' section,

   From the 'Root access - optional' options, select 'Disable - Don't give users root access to the notebook'
7. Click on the 'Update notebook instance'


---

# 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-sagemaker-notebook-instance-with-root-access-enabled.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.
