SageMaker execution role is over-permissioned

Severity
High
Service
SageMaker
Check ID
SAGEMAKER_ROLE_OVERPERMISSIONED

What this check finds

An IAM role used by a SageMaker notebook or training job grants admin-equivalent permissions (for example full IAM, iam:PassRole on everything with a way to launch compute, or AdministratorAccess), or read access to every S3 bucket, that no explicit Deny in the role cancels. Code running on the notebook or in the training container can use all of it.

Passing looks like: SageMaker execution roles are scoped to what they use.

How to fix it

Replace the role's broad grants with the actions the workload uses: start from AmazonSageMaker role guidance, scope s3 to the buckets the job reads and writes, and remove IAM write and wildcard PassRole.

Compliance controls it is evidence for

A failing result counts against these controls in KloudLytics; a passing one is evidence towards them. How compliance mapping works

Compliance controls mapped to SageMaker execution role is over-permissioned
FrameworkControls
PCI-DSS v4.0.1
  • 7.2 Access to system components and data is appropriately defined and assigned
HIPAA Security Rule
  • 164.312(a)(1) Access Control — Unique User Identification
SOC 2 — Trust Services Criteria
  • CC6.2 Role-Based Access Control
NIST SP 800-53 Rev5 (Moderate)
  • AC-6 Least Privilege
NIST Cybersecurity Framework 2.0
  • PR.AA-05 Access permissions and authorizations are enforced with least privilege
ISO/IEC 27001:2022 Annex A
  • A.8.2 Privileged access rights

AI risk mappings

AI risk taxonomies mapped to SageMaker execution role is over-permissioned
FrameworkControls
MITRE ATLAS (Adversarial Threat Landscape for AI Systems)
  • AML.T0012 Valid Accounts

Checked on every scan

KloudLytics runs this check each time it scans a connected AWS account, through a read-only role, and lists every affected resource with its region. On Pro and Business a fix is written for the specific resource rather than the general case above. The exact access it needs

More SageMaker checks

All SageMaker checks

Find out what is actually exposed in your AWS environment.

Connect one AWS account and run your first security assessment.

No credit card · Agentless · Read-only