Remediation
Disable Root Access for SageMaker Notebook Instancesβ
To remediate this finding, disable Root Access on the affected AWS SageMaker Notebook Instance. AWS requires the notebook instance to be stopped before modifying the root access configuration.
From Command Lineβ
-
Stop the Notebook Instance
aws sagemaker stop-notebook-instance \
--notebook-instance-name {{notebook-instance-name}} -
Disable Root Access
aws sagemaker update-notebook-instance \
--notebook-instance-name {{notebook-instance-name}} \
--root-access Disabled -
Restart the Notebook Instance
aws sagemaker start-notebook-instance \
--notebook-instance-name {{notebook-instance-name}}
Notesβ
- Disabling root access enforces the principle of least privilege and reduces the risk of unauthorized system-level changes.
- If system-level packages or configurations are required, use Lifecycle Configurations to perform approved setup tasks in a controlled and auditable manner.
- Ensure users are informed of this change, as commands requiring
sudowill no longer be permitted.