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

# AWS SageMaker notebook instance configured with direct internet access feature

### Synopsis

| Field               | Value                                                                          |
| ------------------- | ------------------------------------------------------------------------------ |
| Rule Type           | Detection                                                                      |
| Finding Type        | AWS SageMaker notebook instance configured with direct internet access feature |
| Finding ID          | 60000437                                                                       |
| 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      | TA0001 (TA0001)                                                                |
| ATT\&CK Technique   | T1190 (T1190)                                                                  |

### Description

SageMaker notebook instances with direct internet access are vulnerable to unauthorized connections from untrusted IPs, increasing the risk of data breaches and malicious activities.

The SageMaker notebook instance's direct internet access setting allows inbound connections from any IP address, bypassing VPC security controls. This misconfiguration exposes the instance to attacks from malicious actors, potentially leading to data exfiltration, unauthorized code execution, and complete system compromise.

The impact of this misconfiguration includes sensitive data exposure, unauthorized access to resources within the VPC, and potential financial losses. Restricting internet access to only trusted IPs or using a bastion host significantly reduces the attack surface and enhances the security posture.

To mitigate this risk, disable direct internet access for SageMaker notebook instances and enforce access via a VPC. Alternatively, utilize a bastion host or other secure access methods to control and monitor inbound connections. Regularly review and update network security group rules to maintain a strong security posture.

For more details: <https://docs.aws.amazon.com/sagemaker/latest/dg/appendix-notebook-and-internet-access.html>

### Remediation

**Manual steps:**

AWS SageMaker Notebook Instance - Manual remediation steps:

AWS SageMaker notebook instance direct internet access feature cannot be disabled once it is created. You need to create a new notebook instance with disabled direct internet access feature; and migrate all required data from the reported notebook instance to the newly created notebook instance before you delete the reported notebook instance.

To create a New AWS SageMaker notebook instance,

1. Log in to AWS console
2. Navigate to the AWS SageMaker dashboard
3. Choose Notebook instances and then choose 'Create notebook instance'
4. On the Create notebook instance page, within the 'Network' section,

   From 'VPC - optional' dropdown list, select the VPC where you want to deploy a new SageMaker notebook instance.
5. Select the 'Disable - Access the internet through a VPC' button under the 'Direct internet access' to disable direct internet access for the new notebook instance.
6. Choose other parameters as per your requirement and Click on the 'Create notebook instance' button

To delete reported notebook instance,

1. Log in to AWS console
2. Navigate to the AWS SageMaker dashboard
3. Choose Notebook instances and Choose the reported notebook instance
4. Click on the 'Actions' dropdown menu, select the 'Stop' option, and when instance stops, select the 'Delete' option.
5. Within Delete dialog box, click the Delete button to confirm the action.


---

# 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-configured-with-direct-internet-access-feature.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.
