π‘οΈ AWS SageMaker Notebook Instance Root Access is not disabledπ’
- Contextual name: π‘οΈ Notebook Instance Root Access is not disabledπ’
- ID:
/ce/ca/aws/sagemaker/disable-notebook-instance-root-access - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
Descriptionβ
Descriptionβ
This policy identifies AWS SageMaker Notebook Instances that have Root Access enabled. When root access is enabled, notebook users are granted administrative privileges, allowing unrestricted access to the underlying operating system and file system.
Rationaleβ
By default, SageMaker notebook instances allow root access. While this can be convenient, it introduces increased security risk for the following reasons:
- Users can install unauthorized software or modify system-level configurations.
- If a notebook userβs credentials or session are compromised, an attacker could gain full administrative control over the instance.
- Root access can be used to bypass security controls or interfere with monitoring and logging mechanisms.
Disabling root access enforces the principle of least privilege, ensuring users have only the permissions required to perform their data science tasks.
Impactβ
When root access is disabled, users cannot execute commands that require
sudo. This may limit the ability to install system-level packages interactively. To address this, it is recommended to use Lifecycle Configurations to perform approved system setup and package installations in a controlled manner.... see more
Remediationβ
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 DisabledRestart 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.
... see more