Notebook Direct Internet Access

Ensure Notebook Instance is not publicly available.

SageMaker notebooks should not be exposed to the Internet. Public availability can be configured via the DirectInternetAccess attribute.

Follow the appropriate remediation steps below to resolve the issue.

  1. Log into the AWS Management Console.

  2. Select the “Services” option and search for Sagemaker. Step

  3. Scroll down the left navigation panel and choose the “Notebook instances” under “Notebook” in Amazon Sagemaker.Step

  4. Select the “Notebook instance” that needs to be verified and click on the “Name” to access the selected “Notebook instance” configuration.Step

  5. On the selected “Notebook instance” configuration page scroll down and check the “Network” tab. If “Direct internet access” is set to “Enabled” then the selected “Notebook instance” is exposed to the Internet. Step

  6. Repeat step number 2 - 5 to verify other “Notebook instances” in the selected AWS region.

  7. Navigate to “Sagemaker” and select the “Notebook instance” under “Notebook” and click on the “Create notebook instance” to create a new “Notebook instance” with data encrypted.Step

  8. On the “Create notebook instance” page provide a unique name under the “Notebook instance name” and select the “Notebook instance type” as per the requirements.

  9. Scroll down the “Create notebook instance” page and on the “Network” tab select the “VPC” from the dropdown menu and choose “Subnets & Security Groups” as per the requirements. 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”.Step

  10. Click on the “Create notebook instance” button at the bottom to create a new “Notebook instance”.Step

  11. Once the new “Notebook instance” status is “InService” copy all the data from old “Notebook instance” to the new instance.Step

  12. Repeat steps number 7 - 11 to create the “Notebook instances” without exposing it to the Internet.