turbot/steampipe-mod-aws-compliance

Control: 5 SageMaker models should have network isolation enabled

Description

This control checks whether an Amazon SageMaker AI hosted model has network isolation enabled. The control fails if the EnableNetworkIsolation parameter for the hosted model is set to False.

SageMaker AI training and deployed inference containers are internet-enabled by default. If you don't want SageMaker AI to provide external network access to your training or inference containers, you can enable network isolation. If you enable network isolation, no inbound or outbound network calls can be made to or from the model container, including calls to or from other AWS services. Additionally, no AWS credentials are made available to the container runtime environment. Enabling network isolation helps prevent unintended access to your SageMaker AI resources from the internet.

Remediation

For more information about network isolation for SageMaker AI models, see Run training and inference containers in internet-free mode in the Amazon SageMaker AI Developer Guide. When you create a model, you can enable network isolation by setting the value for the EnableNetworkIsolation parameter to True.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.foundational_security_sagemaker_5

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.foundational_security_sagemaker_5 --share

SQL

This control uses a named query:

select
arn as resource,
case
when enable_network_isolation then 'ok'
else 'alarm'
end as status,
case
when enable_network_isolation then title || ' network isolation enabled.'
else title || ' network isolation disabled.'
end as reason
, region, account_id
from
aws_sagemaker_model;

Tags