> 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-is-not-placed-in-vpc.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS SageMaker notebook instance is not placed in VPC

### Synopsis

| Field               | Value                                                |
| ------------------- | ---------------------------------------------------- |
| Rule Type           | Detection                                            |
| Finding Type        | AWS SageMaker notebook instance is not placed in VPC |
| Finding ID          | 60000445                                             |
| 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      | TA0112 (TA0112)                                      |
| ATT\&CK Technique   | T1685 (T1685)                                        |

### Description

AWS SageMaker notebook instances accessible from the public internet represent a significant security risk. These instances should reside within a Virtual Private Cloud (VPC) to restrict access and enhance security.

SageMaker notebook instances, by default, can be accessed publicly if not configured within a VPC. This misconfiguration exposes sensitive data and computational resources to unauthorized access and potential attacks. Attackers could exploit this to gain access to sensitive data, conduct reconnaissance, or launch further attacks against your infrastructure.

The impact of this misconfiguration is the potential for data breaches, unauthorized access to sensitive information, and compromise of your AWS environment. Restricting access through a VPC is crucial for maintaining data confidentiality, integrity, and availability. A VPC provides a logically isolated section of the AWS cloud, enhancing security posture and minimizing the attack surface.

To mitigate this risk, ensure all SageMaker notebook instances are created and run within a VPC. Implement appropriate security groups and network access control lists (ACLs) to further restrict inbound and outbound network traffic to only necessary sources. Regularly review and update your network configurations to maintain a strong security posture.

For more details: <https://docs.aws.amazon.com/sagemaker/latest/dg/process-vpc.html>

### Remediation

**Manual steps:**

AWS SageMaker Notebook Instance - Manual remediation steps:

AWS SageMaker notebook instance can be not placed in VPC once it is created. You need to create a new notebook instance placing it in VPC; 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 the 'VPC - optional' dropdown list, select the VPC where you want to deploy a new SageMaker notebook instance.
5. 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-is-not-placed-in-vpc.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.
